fixes #790
This commit is contained in:
@@ -18,7 +18,7 @@ module PostSets
|
||||
end
|
||||
|
||||
def has_wiki?
|
||||
tag_array.any? && ::WikiPage.titled(tag_string).exists?
|
||||
tag_array.size == 1 && ::WikiPage.titled(tag_string).exists?
|
||||
end
|
||||
|
||||
def wiki_page
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<menu id="post-sections">
|
||||
<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>
|
||||
<% end %>
|
||||
</menu>
|
||||
|
||||
Reference in New Issue
Block a user