fixes #790
This commit is contained in:
@@ -18,7 +18,7 @@ module PostSets
|
|||||||
end
|
end
|
||||||
|
|
||||||
def has_wiki?
|
def has_wiki?
|
||||||
tag_array.any? && ::WikiPage.titled(tag_string).exists?
|
tag_array.size == 1 && ::WikiPage.titled(tag_string).exists?
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki_page
|
def wiki_page
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<menu id="post-sections">
|
<menu id="post-sections">
|
||||||
<li class="active"><a href="#posts" id="show-posts-link">Posts</a></li>
|
<li class="active"><a href="#posts" id="show-posts-link">Posts</a></li>
|
||||||
|
|
||||||
<% if params[:tags].present? %>
|
<% if @post_set.has_wiki? %>
|
||||||
<li><a href="#wiki-except" id="show-wiki-excerpt-link">Wiki</a></li>
|
<li><a href="#wiki-except" id="show-wiki-excerpt-link">Wiki</a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</menu>
|
</menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user