]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_description.html.erb
Merge remote-tracking branch 'osmlab/id-editor-embed'
[rails.git] / app / views / notes / _description.html.erb
index 435f263c691f7f84881dcbfab11fb70b49115e8a..4f03a1d59aadf32973468a5dc53d37109483199c 100644 (file)
@@ -1,12 +1,3 @@
 <div>
 <div>
-  <% description.comments.each do |comment| -%>
-  <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>
-  <% end -%>
+  <%= render :partial => "comment", :collection => description.comments %>
 </div>
 </div>