add favgroup excerpt

This commit is contained in:
Toks
2015-06-29 15:44:21 -04:00
parent d811aa0b8a
commit 6829a370b2
4 changed files with 35 additions and 1 deletions

View File

@@ -25,6 +25,8 @@
<li><%= link_to "Wiki", wiki_page_path(@post_set.wiki_page), :id => "show-excerpt-link" %></li>
<% elsif @post_set.has_pool? %>
<li><%= link_to "Pool", pool_path(@post_set.pool), :id => "show-excerpt-link" %></li>
<% elsif @post_set.has_favgroup? %>
<li><%= link_to "Favorite Group", favorite_group_path(@post_set.favgroup), :id => "show-excerpt-link" %></li>
<% end %>
</menu>

View File

@@ -69,6 +69,12 @@
</div>
<p><%= link_to "View pool", pool_path(post_set.pool.id) %></p>
<% elsif post_set.has_favgroup? %>
<h4>
Favorite Group:
<%= link_to post_set.favgroup.pretty_name, favorite_group_path(post_set.favgroup) %>
</h4>
Creator: <%= link_to_user post_set.favgroup.creator %>
<% 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>