forum: use icons to indicate sticky/locked/deleted/restricted status.
This commit is contained in:
@@ -1,11 +1,31 @@
|
||||
<%= table_for forum_topics, width: "100%" do |t| %>
|
||||
<% t.column "Title" do |topic| %>
|
||||
<% if topic.is_sticky? %>
|
||||
<span class="sticky">Sticky:</span>
|
||||
<span class="topic-status icon stickied">
|
||||
<i class="fas fa-thumbtack" title="Stickied"></i>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<% if topic.is_locked? %>
|
||||
<span class="topic-status icon locked">
|
||||
<i class="fas fa-lock" title="Locked"></i>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<% if topic.is_deleted? %>
|
||||
<span class="topic-status icon deleted">
|
||||
<i class="fas fa-trash-alt" title="Deleted"></i>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<% if topic.min_level > 0 %>
|
||||
<span class="topic-status icon restricted">
|
||||
<i class="fas fa-hand-paper" title="<%= User.level_string(topic.min_level) %> only"></i>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<% if !topic.is_read? %>
|
||||
<span class="new">NEW</span>
|
||||
<span class="topic-status label new">New</span>
|
||||
<% end %>
|
||||
|
||||
<%= link_to topic.title, forum_topic_path(topic), class: "forum-post-link" %>
|
||||
@@ -13,14 +33,6 @@
|
||||
<% if topic.response_count > Danbooru.config.posts_per_page %>
|
||||
<%= link_to "page #{topic.last_page}", forum_topic_path(topic, :page => topic.last_page), :class => "last-page" %>
|
||||
<% end %>
|
||||
|
||||
<% if topic.is_locked? %>
|
||||
<span class="locked-topic">(locked)</span>
|
||||
<% end %>
|
||||
|
||||
<% if topic.min_level > 0 %>
|
||||
<span class="level-topic">(<%= User.level_string(topic.min_level).downcase %> only)</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% t.column "BURs", width: "20%" do |topic| %>
|
||||
<%= bulk_update_request_counts(topic) %>
|
||||
|
||||
Reference in New Issue
Block a user