Mute hidden comment text in each table cell
This commit is contained in:
parent
f5095fe3bd
commit
728ad161c4
1 changed files with 4 additions and 4 deletions
|
@ -16,10 +16,10 @@
|
|||
</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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue