fix broken sticky/locked class

This commit is contained in:
jomo
2014-05-10 02:05:26 +02:00
parent ee4234e730
commit df030f4d2d

View File

@@ -16,8 +16,8 @@
<div class="clear-right"></div>
</div>
<div class="items bold">
<div class="item">
<%= link_to thread.title, forumthread_path(thread), class: "#{"locked" if thread.locked}#{"sticky" if thread.sticky}" %>
<div class="item <%= "#{"locked" if thread.locked}#{"sticky" if thread.sticky}" %>">
<%= link_to thread.title, forumthread_path(thread) %>
<div class="item-info">
<% if rpl = thread.replies.last %>
<%= rpl.author.name %> <%= link_to "replied", forumthread_path(thread) + "#reply-#{rpl.id}" %> <time title="<%= rpl.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= rpl.created_at.to_datetime.rfc3339 %>"><%= rpl.created_at.strftime("%e %b %Y, %H:%M") %></time>.