add basic support for labels

This commit is contained in:
jomo
2014-11-21 00:39:38 +01:00
parent f6c4c78752
commit 39fceedf56
8 changed files with 68 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
<%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%=truncate(@thread.title, length: 60, omission: " …") %>
<h1><%= title @thread.title %></h1>
<h1><%= render partial: "labels/label", locals: {label: @thread.label} %><%= title @thread.title %></h1>
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">
<div class="header">