Fix #3398: Show "(deleted)" next to topics in forum searches.
This commit is contained in:
@@ -64,7 +64,7 @@ div#c-forum-topics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
span.locked-topic {
|
span.locked-topic {
|
||||||
color: #666;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.level-topic {
|
span.level-topic {
|
||||||
@@ -76,3 +76,11 @@ div#c-forum-topics {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#c-forum-posts #a-index {
|
||||||
|
tr[data-topic-is-deleted="true"] .forum-post-topic-title::after,
|
||||||
|
tr[data-is-deleted="true"] .forum-post-excerpt::after {
|
||||||
|
content: " (deleted)";
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,13 +12,10 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<% @forum_posts.each do |forum_post| %>
|
<% @forum_posts.each do |forum_post| %>
|
||||||
<% if CurrentUser.is_moderator? || !forum_post.is_deleted? %>
|
<% if CurrentUser.is_moderator? || !forum_post.is_deleted? %>
|
||||||
<tr>
|
<tr id="forum-post-<%= forum_post.id %>" data-topic-is-deleted="<%= forum_post.topic.is_deleted? %>" data-is-deleted="<%= forum_post.is_deleted? %>">
|
||||||
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
|
<td class="forum-post-topic-title"><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
|
||||||
<td>
|
<td class="forum-post-excerpt">
|
||||||
<%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %>
|
<%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %>
|
||||||
<% if forum_post.is_deleted? %>
|
|
||||||
(deleted)
|
|
||||||
<% end %>
|
|
||||||
</td>
|
</td>
|
||||||
<td><%= link_to_user forum_post.creator %></td>
|
<td><%= link_to_user forum_post.creator %></td>
|
||||||
<td><%= time_ago_in_words_tagged forum_post.created_at %></td>
|
<td><%= time_ago_in_words_tagged forum_post.created_at %></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user