<div class="note">
<h2><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></h2>
+ <% if (note.comments.some(function (comment) { return !comment.user })) { %>
+ <small class="warning"><%- I18n.t('javascripts.notes.show.anonymous_warning') %></small>
+ <% } %>
<% note.comments.forEach(function (comment) { %>
<div>
<small class="deemphasize">
/* Rules for the notes interface */
.note {
+ h2 {
+ margin-bottom: 10px;
+ }
+
+ .warning {
+ display: block;
+ background-color: #ff7070;
+ padding: 4px 6px;
+ margin-bottom: 10px;
+ }
+
.comment_body {
margin-top: 4px;
margin-bottom: 4px;
add: Add Note
show:
title: Note %{id}
+ anonymous_warning: This note includes comments from anonymous users which should be independently verified.
opened_by: "created by <a href='%{user_url}'>%{user}</a> at %{time}"
opened_by_anonymous: "created by anonymous at %{time}"
commented_by: "comment from <a href='%{user_url}'>%{user}</a> at %{time}"