Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Correctly show newly colored labels everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Sep 26, 2014
1 parent b425bbd commit 7dbb0ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/labelings/_labeling.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<li class="radius label" data-labeling-id="<%= labeling.id %>">
<li style="background: <%= labeling.label.color %>" class="radius label" data-labeling-id="<%= labeling.id %>">
<%= labeling.label.name %>
<%= link_to labeling_path(labeling), method: :delete, remote: true do %>
<span class="fa-times fa" style="color: #eee"></span>
Expand Down
1 change: 1 addition & 0 deletions app/views/labels/_label.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span style="background: <%= label.color %>" class="radius label"><%= label.name %></span>
4 changes: 2 additions & 2 deletions app/views/tickets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</td>
<td class="text-secondary table-nowrap">
<% ticket.labels.viewable_by(current_user).each do |label| %>
<span class="radius label"><%= label.name %></span>
<%= render label %>
<% end %>
<% if !ticket.subject.nil? %>
<a href="<%= ticket_url(ticket) %>">
Expand Down Expand Up @@ -84,7 +84,7 @@
<% if !ticket.subject.nil? %>
<a href="<%= ticket_url(ticket) %>">
<% ticket.labels.viewable_by(current_user).each do |label| %>
<span class="radius label"><%= label.name %></span>
<%= render label %>
<% end %>
<% if ticket.replies.size > 0 %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tickets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<dd>
<ul class="inline-list">
<% @ticket.labels.viewable_by(current_user).each do |label| %>
<li class="radius label"><%= label.name %></li>
<li><%= render label %></li>
<% end %>
</ul>
</dd>
Expand Down

0 comments on commit 7dbb0ec

Please sign in to comment.