fix truncation of thread titles

This commit is contained in:
jomo
2014-09-22 06:21:29 +02:00
parent c0507bdfdf
commit ed4096949f
2 changed files with 3 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
</div>
<div class="items bold">
<div class="item <%= "#{"locked" if thread.locked}#{"sticky" if thread.sticky}" %>">
<%= link_to thread.title, forumthread_path(thread) %>
<%= link_to truncate(thread.title, length: 60, omission: " …"), 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>.