fixes #917
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<li><%= link_to "Search", search_forum_posts_path %></li>
|
||||
<li><%= link_to "Mark all as read", mark_all_as_read_forum_topics_path, :method => :post %></li>
|
||||
<li><%= link_to "Help", wiki_pages_path(:title => "help:forum") %></li>
|
||||
<% if @forum_topic %>
|
||||
<% if @forum_topic && !@forum_topic.new_record? %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Reply", new_forum_post_path(:topic_id => @forum_topic.id) %></li>
|
||||
<% if !@forum_topic.new_record? && @forum_topic.editable_by?(CurrentUser.user) %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<li><%= link_to "Sign up", new_user_path %></li>
|
||||
<% end %>
|
||||
<% if @user && !CurrentUser.is_anonymous? %>
|
||||
<% if @user && !@user.new_record? && !CurrentUser.is_anonymous? %>
|
||||
<li>|</li>
|
||||
<% if @user.id == CurrentUser.id %>
|
||||
<li><%= link_to "Settings", edit_user_path(CurrentUser.user) %></li>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<li><%= link_to "Search", search_wiki_pages_path %></li>
|
||||
<li><%= link_to "New", new_wiki_page_path %></li>
|
||||
<li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:wiki"}) %></li>
|
||||
<% if @wiki_page %>
|
||||
<% if @wiki_page && !@wiki_page.new_record? %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %></li>
|
||||
<li><%= link_to "History", wiki_page_versions_path(:search => {:wiki_page_id => @wiki_page.id}) %></li>
|
||||
|
||||
Reference in New Issue
Block a user