From b70ec7a44e81b26ca7875a2403bb81481cd1c9df Mon Sep 17 00:00:00 2001 From: joshua stein Date: Sun, 3 Aug 2014 20:56:02 -0500 Subject: [PATCH] story list detail: put all media tags first, not just pdf --- app/views/stories/_listdetail.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>