]> git.openstreetmap.org Git - rails.git/commitdiff
Mute hidden comment text in each table cell
authorAnton Khorev <tony29@yandex.ru>
Tue, 5 Sep 2023 08:50:58 +0000 (11:50 +0300)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Sep 2023 17:10:02 +0000 (18:10 +0100)
app/views/diary_entries/comments.html.erb

index e3a7ff23e12f8f8f5baf7012874d8745ff4d2724..0d6ddfb01c7c007aab216b1a05ceda51486d9334 100644 (file)
       </tr>
     </thead>
     <% @comments.each do |comment| -%>
-    <tr class="<%= "text-muted" unless comment.visible? %>">
-      <td width="25%"><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %></td>
-      <td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %></span></td>
-      <td width="50%" class="richtext text-break"><%= comment.body.to_html %></td>
+    <tr>
+      <td width="25%" class="<%= "text-muted" unless comment.visible? %>"><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %></td>
+      <td width="25%" class="<%= "text-muted" unless comment.visible? %>"><span title="<%= l comment.created_at, :format => :friendly %>"><%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %></span></td>
+      <td width="50%" class="richtext text-break<%= " text-muted" unless comment.visible? %>"><%= comment.body.to_html %></td>
     </tr>
     <% end -%>
   </table>