用户navbar问题,注册对齐问题

This commit is contained in:
yanxd 2014-02-25 09:41:13 +08:00
parent abec725264
commit 8a3d1d033c
3 changed files with 8 additions and 2 deletions

View File

@ -234,4 +234,10 @@ module UsersHelper
false
end
# base user上面的navbar显示内容
def show_item_on_navbar params
displayed_item = %w|index|
displayed_item.include?(params['action'])
end
end

View File

@ -297,7 +297,7 @@
<p><%= f.text_field :mail, :required => true %></p>
<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 增加了身份、性别和地区-->

View File

@ -1,4 +1,4 @@
<% @nav_dispaly_user_label = 1 %>
<% @nav_dispaly_user_label = show_item_on_navbar(params) %>
<!DOCTYPE html>
<html lang="en">
<head>