用户navbar问题,注册对齐问题
This commit is contained in:
parent
abec725264
commit
8a3d1d033c
|
@ -234,4 +234,10 @@ module UsersHelper
|
||||||
|
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# base user上面的navbar显示内容
|
||||||
|
def show_item_on_navbar params
|
||||||
|
displayed_item = %w|index|
|
||||||
|
displayed_item.include?(params['action'])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -297,7 +297,7 @@
|
||||||
<p><%= f.text_field :mail, :required => true %></p>
|
<p><%= f.text_field :mail, :required => true %></p>
|
||||||
<p>
|
<p>
|
||||||
<em class="info"><%="#{l(:label_mail_attention)} "%></em></p>
|
<em class="info"><%="#{l(:label_mail_attention)} "%></em></p>
|
||||||
<p><%= f.select :language, lang_options_for_select %></p>
|
<p><%= f.select :language, lang_options_for_select , :required => true %></p>
|
||||||
|
|
||||||
<!-- added by bai 增加了身份、性别和地区-->
|
<!-- added by bai 增加了身份、性别和地区-->
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<% @nav_dispaly_user_label = 1 %>
|
<% @nav_dispaly_user_label = show_item_on_navbar(params) %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
Loading…
Reference in New Issue