Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make comments colored when there are comments

  • Loading branch information...
commit 722810dbccdc5217ec4bc818f4e67eb7ad8270ec 1 parent 283b6b6
@excid3 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/views/links/_link.html.erb
View
5 app/views/links/_link.html.erb
@@ -10,7 +10,10 @@
<% if user_signed_in? %>
<div class="pull-right hits"><span class="label"><%= pluralize link.link_hit.try(:count) || 0, "hit" %></span></div>
<% end %>
- <div class="pull-right hits"><span class="label"><%= link_to pluralize(link.comments.count, "comment"), link %></span></div>
+ <div class="pull-right hits">
+ <span class="label <%= "label-warning" if link.comments.count > 0 %>"><%= link_to link do %><i class="icon-comments"></i> <%= pluralize(link.comments.count, "comment") %><% end %>
+ </span>
+ </div>
<% if link.podcast %>
<br />
Please sign in to comment.
Something went wrong with that request. Please try again.