From e09b4fb27a330546995193dcbe48d17433a50ba6 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 9 Jul 2013 14:01:22 -0400 Subject: [PATCH] Clean up excerpts --- app/logical/post_sets/post.rb | 2 +- app/views/posts/partials/index/_excerpt.html.erb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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? %>
@@ -49,7 +49,7 @@ <%= wiki_page_alias_and_implication_list(post_set.wiki_page) %> -

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) %>

<% elsif post_set.has_pool? %>

@@ -63,6 +63,8 @@
<%= format_text(post_set.pool.description) %>
+ +

<%= 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}) %>.