Permalink
Browse files

Show anonymous user warning in data browser note view

  • Loading branch information...
1 parent 5ad4554 commit 16a0f14f4aa3cad2d38fe35d61afa1f6a236302b @tomhughes committed Feb 2, 2013
Showing with 10 additions and 0 deletions.
  1. +4 −0 app/assets/stylesheets/common.css.scss
  2. +6 −0 app/views/browse/note.html.erb
@@ -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;
}
@@ -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>

0 comments on commit 16a0f14

Please sign in to comment.