Clean up excerpts
This commit is contained in:
@@ -39,7 +39,7 @@ module PostSets
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pool_name
|
def pool_name
|
||||||
tag_string.match(/^pool:(\S+)$/).try(:[], 1)
|
tag_string.match(/^pool:(\S+)$/i).try(:[], 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_pool?
|
def has_pool?
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</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>
|
</div>
|
||||||
<% elsif post_set.has_wiki? %>
|
<% elsif post_set.has_wiki? %>
|
||||||
<div class="prose">
|
<div class="prose">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<%= wiki_page_alias_and_implication_list(post_set.wiki_page) %>
|
<%= 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>
|
</div>
|
||||||
<% elsif post_set.has_pool? %>
|
<% elsif post_set.has_pool? %>
|
||||||
<h4>
|
<h4>
|
||||||
@@ -63,6 +63,8 @@
|
|||||||
<div id="description" class="prose">
|
<div id="description" class="prose">
|
||||||
<%= format_text(post_set.pool.description) %>
|
<%= format_text(post_set.pool.description) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p><%= link_to "View pool", pool_path(post_set.pool.id) %></p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if post_set.tag_string.present? %>
|
<% 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>
|
<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