From 16a0f14f4aa3cad2d38fe35d61afa1f6a236302b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 2 Feb 2013 16:34:49 +0000 Subject: [PATCH] Show anonymous user warning in data browser note view --- app/assets/stylesheets/common.css.scss | 4 ++++ app/views/browse/note.html.erb | 6 ++++++ 2 files changed, 10 insertions(+) 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" %>

-- 2.43.2