]> git.openstreetmap.org Git - rails.git/commitdiff
Fix comment display in comment list view
authorSaman Bemel-Benrud <samanpwbb@gmail.com>
Tue, 25 Jun 2013 21:03:51 +0000 (17:03 -0400)
committerTom Hughes <tom@compton.nu>
Mon, 8 Jul 2013 08:03:18 +0000 (09:03 +0100)
app/assets/stylesheets/common.css.scss
app/views/diary_entry/comments.html.erb

index 5876c5db7f8727517d1df4d90bce70fab2fc010a..4fe47790042f4c146d05a17c8449c32c9b6545cc 100644 (file)
@@ -1361,6 +1361,11 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   tr th {
     padding: $lineheight/4;
   }
+  p:last-child,
+  h2:last-child,
+  h3:last-child {
+    margin-bottom:0;
+  }
   tr td {
     height: 30px;
     border-right: 1px solid $keyline;
index 971993a9b65ac4f6b800cad592600b1821366d46..fd90b75014d2708d43e0e7710f33368ad8ef7a51 100644 (file)
@@ -13,7 +13,7 @@
   <tr class="<%= cl %>">
     <td width="25%"><%= link_to comment.diary_entry.title, :action => :view, :display_name => comment.diary_entry.user.display_name, :id => comment.diary_entry.id %></td>
     <td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= t 'diary_entry.comments.ago', :ago => time_ago_in_words(comment.created_at) %></span></td>
-    <td width="50%" class="richtext"><%= comment.body %></td>
+    <td width="50%" class="richtext"><%= comment.body.to_html %></td>
   </tr>
   <% end -%>
 </table>