show the tag description as the tag link title

This commit is contained in:
joshua stein 2013-03-23 21:09:41 -05:00
parent f585d07aa8
commit 4cae9d38ae

View file

@ -29,7 +29,8 @@ class="story <%= story.vote == 1 ? "upvoted" : (story.vote == -1 ?
<% story.taggings.sort_by{|t| t.tag.tag }.sort_by{|t|
t.tag.tag == "pdf" ? -1 : 0 }.each do |tagging| %>
<a href="<%= tag_url(tagging.tag.tag) %>" class="tag tag_<%=
tagging.tag.tag %>"><%= tagging.tag.tag %></a>
tagging.tag.tag %>" title="<%= tagging.tag.description %>"><%=
tagging.tag.tag %></a>
<% end %>
</span>
<span class="domain"><%= story.domain %></span>