Clean up excerpts
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<p>Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.</p>
|
||||
<p><%= link_to "View artist", artist_path(post_set.artist.id) %></p>
|
||||
</div>
|
||||
<% elsif post_set.has_wiki? %>
|
||||
<div class="prose">
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<%= wiki_page_alias_and_implication_list(post_set.wiki_page) %>
|
||||
|
||||
<p>Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.</p>
|
||||
<p><%= link_to "View wiki page", wiki_page_path(post_set.wiki_page.id) %></p>
|
||||
</div>
|
||||
<% elsif post_set.has_pool? %>
|
||||
<h4>
|
||||
@@ -63,6 +63,8 @@
|
||||
<div id="description" class="prose">
|
||||
<%= format_text(post_set.pool.description) %>
|
||||
</div>
|
||||
|
||||
<p><%= link_to "View pool", pool_path(post_set.pool.id) %></p>
|
||||
<% else %>
|
||||
<% if post_set.tag_string.present? %>
|
||||
<p>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}) %>.</p>
|
||||
|
||||
Reference in New Issue
Block a user