diff --git a/app/views/stories/_listdetail.html.erb b/app/views/stories/_listdetail.html.erb index 3c5ae75..607b2cd 100644 --- a/app/views/stories/_listdetail.html.erb +++ b/app/views/stories/_listdetail.html.erb @@ -24,7 +24,7 @@ class="story <%= story.vote == 1 ? "upvoted" : "" %> <%= story.vote == -1 ? <% if story.can_be_seen_by_user?(@user) %> <% story.taggings.sort_by{|t| t.tag.tag }.sort_by{|t| - t.tag.tag == "pdf" ? -1 : 0 }.each do |tagging| %> + t.tag.is_media?? -1 : 0 }.each do |tagging| %> <%= tagging.tag.tag %>