用户本身能够看到与我相关,其他用户则看不到该项!
This commit is contained in:
parent
e3be481bac
commit
f4fc3d9dbe
|
@ -92,6 +92,7 @@
|
|||
<!--fans-->
|
||||
<div class="user_fans">
|
||||
<div class="font_title_left">
|
||||
<strong><%= l(:label_user_fans) %></strong>
|
||||
</div>
|
||||
<div class="left_wf">
|
||||
<table>
|
||||
|
@ -110,7 +111,11 @@
|
|||
|
||||
<div id="content" style="padding-top: 0px;">
|
||||
<div class="tabs_new">
|
||||
<% if @user == User.current %>
|
||||
<%= render_menu :user_menu_self %>
|
||||
<%else%>
|
||||
<%= render_menu :user_menu %>
|
||||
<%end%>
|
||||
</div>
|
||||
<%= yield %>
|
||||
<%= call_hook :view_layouts_base_content %>
|
||||
|
|
|
@ -266,6 +266,13 @@ end
|
|||
#end
|
||||
#added by young
|
||||
Redmine::MenuManager.map :user_menu do |menu|
|
||||
menu.push :activity, {:controller => 'users', :action => 'show' }
|
||||
menu.push :project, {:controller => 'users', :action => 'user_projects'}
|
||||
menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids'}
|
||||
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback'}
|
||||
|
||||
end
|
||||
Redmine::MenuManager.map :user_menu_self do |menu|
|
||||
menu.push :activity, {:controller => 'users', :action => 'show' }
|
||||
menu.push :user_information, {:controller => 'users', :action => 'info'}
|
||||
menu.push :project, {:controller => 'users', :action => 'user_projects'}
|
||||
|
|
Loading…
Reference in New Issue