Added labes for sticky and locked topics
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<div class="right controls"><%= link_to "Back to Forum", forum_path(@topic.forum) %></div>
|
||||
<div class="module">
|
||||
<div class="module_header">
|
||||
<% if @topic.sticky %>
|
||||
<span class="label label-info">Sticky</span>
|
||||
<% end %>
|
||||
<% if @topic.locked %>
|
||||
<span class="label label-important">Locked</span>
|
||||
<% end %>
|
||||
<%= @topic.title %>
|
||||
<span class="right controls">
|
||||
<%= link_to "Edit", edit_topic_path(@topic) if can? :manage, @topic %>
|
||||
|
||||
Reference in New Issue
Block a user