Show anonymous user warning in data browser note view

This commit is contained in:
Tom Hughes 2013-02-02 16:34:49 +00:00
parent 5ad45549e1
commit 16a0f14f4a
2 changed files with 10 additions and 0 deletions

View file

@ -934,6 +934,10 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
&:first-child {
margin-top: 0;
}
&.warning {
color: #ff7070;
font-weight: bold;
}
h4, p {
margin-bottom: 5px;
}

View file

@ -15,6 +15,12 @@
<div class='column-1'>
<% if @note.comments.find { |comment| comment.author.nil? } -%>
<div class='browse-section common warning'>
<%= t "javascripts.notes.show.anonymous_warning" %>
</div>
<% end -%>
<div class='browse-section common'>
<div>
<h4><%= t "browse.note.opened" %></h4>