This commit is contained in:
albert
2013-03-08 15:23:39 -05:00
parent d4334c9ac8
commit 35a51c0351
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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>