From: Tom Hughes Date: Sat, 2 Feb 2013 16:34:49 +0000 (+0000) Subject: Show anonymous user warning in data browser note view X-Git-Tag: live~5096^2~41 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/16a0f14f4aa3cad2d38fe35d61afa1f6a236302b?ds=sidebyside Show anonymous user warning in data browser note view --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 8c339189c..5eeab68a0 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -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; } diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index a89ad07e5..740646efb 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -15,6 +15,12 @@
+ <% if @note.comments.find { |comment| comment.author.nil? } -%> +
+ <%= t "javascripts.notes.show.anonymous_warning" %> +
+ <% end -%> +

<%= t "browse.note.opened" %>