diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 46281a42b..cee8c4968 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -39,7 +39,7 @@ module PostSets end def pool_name - tag_string.match(/^pool:(\S+)$/).try(:[], 1) + tag_string.match(/^pool:(\S+)$/i).try(:[], 1) end def has_pool? diff --git a/app/views/posts/partials/index/_excerpt.html.erb b/app/views/posts/partials/index/_excerpt.html.erb index c5053108e..2cb93b36c 100644 --- a/app/views/posts/partials/index/_excerpt.html.erb +++ b/app/views/posts/partials/index/_excerpt.html.erb @@ -37,7 +37,7 @@ <% end %> -
Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.
+<%= link_to "View artist", artist_path(post_set.artist.id) %>
<% elsif post_set.has_wiki? %>Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.
+<%= link_to "View wiki page", wiki_page_path(post_set.wiki_page.id) %>
<%= link_to "View pool", pool_path(post_set.pool.id) %>
<% else %> <% if post_set.tag_string.present? %>There is currently no wiki page for the tag "<%= post_set.tag_string %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => post_set.tag_string}) %>.