diff options
Diffstat (limited to 'app/views/boards/show.html.erb')
-rw-r--r-- | app/views/boards/show.html.erb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index b2aff9a53..2fd6c6005 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -38,10 +38,12 @@ <tbody> <% @topics.each do |topic| %> <tr id="message-<%= topic.id %>" class="message <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"> - <td class="subject icon <%= 'icon-sticky' if topic.sticky? %> <%= 'icon-locked' if topic.locked? %>"> - <%= sprite_icon "arrow-right" if topic.sticky? %> - <%= sprite_icon "lock" if topic.locked? %> - <%= link_to topic.subject, board_message_path(@board, topic) %> + <td class="subject"> + <span class="<%= 'icon' if topic.sticky? || topic.locked? %>"> + <%= sprite_icon "arrow-right" if topic.sticky? %> + <%= sprite_icon "lock" if topic.locked? %> + <%= link_to topic.subject, board_message_path(@board, topic) %> + </span> </td> <td class="author"><%= link_to_user(topic.author) %></td> <td class="created_on"><%= format_time(topic.created_on) %></td> |