]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_comment.html.erb
Rework the generation of descriptions in the notes RSS feed
[rails.git] / app / views / notes / _comment.html.erb
diff --git a/app/views/notes/_comment.html.erb b/app/views/notes/_comment.html.erb
new file mode 100644 (file)
index 0000000..4fe7b59
--- /dev/null
@@ -0,0 +1,8 @@
+<div class="note-comment" style="margin-top: 5px">
+  <% if comment.author.nil? -%>
+  <div class="note-comment-description" style="font-size: smaller; color: #999999"><%= t "note.description.#{comment.event}_at", :when => friendly_date(comment.created_at) %></div>
+  <% else -%>
+  <div class="note-comment-description" style="font-size: smaller; color: #999999"><%= t "note.description.#{comment.event}_at_by", :when => friendly_date(comment.created_at), :user => note_author(comment.author, :only_path => false) %></div>
+  <% end -%>
+  <div class="note-comment-text"><%= comment.body %></div>
+</div>