修改了删除“我的账号”后的小问题
This commit is contained in:
parent
b617f3d42f
commit
5fb0bc945c
|
@ -2,7 +2,9 @@
|
||||||
<div class="welcome_logo">
|
<div class="welcome_logo">
|
||||||
<%=link_to image_tag("/images/logo.png",weight:"36px", height: "36px"), home_path %>
|
<%=link_to image_tag("/images/logo.png",weight:"36px", height: "36px"), home_path %>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="account">
|
||||||
|
<%= render_menu :account_menu -%>
|
||||||
|
</div>
|
||||||
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||||
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
<div id="top-menu" style="background-color: #15bccf;height:40px;margin-top: 10px;margin-bottom: 10px;">
|
<div id="top-menu" style="background-color: #15bccf;height:40px;margin-top: 10px;margin-bottom: 10px;">
|
||||||
<div class="welcome_logo">
|
<div class="welcome_logo">
|
||||||
<%=link_to image_tag("/images/logo.png",weight:"36px", height: "36px"), home_path %>
|
<%=link_to image_tag("/images/logo.png",weight:"36px", height: "36px"), home_path %>
|
||||||
|
</div>
|
||||||
|
<div id="account">
|
||||||
|
<%= render_menu :account_menu -%>
|
||||||
</div>
|
</div>
|
||||||
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ end
|
||||||
Redmine::MenuManager.map :account_menu do |menu|
|
Redmine::MenuManager.map :account_menu do |menu|
|
||||||
menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? }
|
menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? }
|
||||||
menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
|
menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
|
||||||
menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
|
# menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
|
||||||
menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
|
menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
|
||||||
end
|
end
|
||||||
########fq
|
########fq
|
||||||
|
|
Loading…
Reference in New Issue