diff --git a/app/views/layouts/base_users_new.html.erb b/app/views/layouts/base_users_new.html.erb
index bbfe9a1ea..4b6bd2887 100644
--- a/app/views/layouts/base_users_new.html.erb
+++ b/app/views/layouts/base_users_new.html.erb
@@ -149,29 +149,65 @@
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
- - 创建课程 :
- - 发布作业 :
+ <% if(get_create_course_count(@user)) == 0 %>
+ - 创建课程 :
+ <% end %>
+ <% if(get_homework_commons_count(@user)) == 0 %>
+ - 发布作业 :
+ <% end %>
+ <% end %>
+ <% if (get_join_course_count(@user) != 0) %>
+ - 加入课程 :
+ <% end %>
+ <% if @user.user_extensions.identity == 0 %>
+ - 参加匿评 :
+ <% end %>
+ <% if (get_projectandcourse_attachment_count(@user) != 0) %>
+ - 发布资源 :
+ <% end %>
+ <% if (get_create_project_count(@user) != 0) %>
+ - 创建项目 :
+ <% end %>
+ <% if (get_join_project_count(@user) != 0) %>
+ - 加入项目 :
+ <% end %>
+ <% if (get_create_issue_count(@user) != 0) %>
+ - 发布缺陷 :
+ <% end %>
+ <% if (get_resolve_issue_count(@user) != 0) %>
+ - 解决缺陷 :
<% end %>
- - 加入课程 :
- - 参加匿评 :
- - 发布资源 :
- - 创建项目 :
- - 加入项目 :
- - 发布缺陷 :
- - 解决缺陷 :
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
- - <%= get_create_course_count(@user) %>
- - <%= get_homework_commons_count(@user) %>
+ <% if(get_create_course_count(@user)) == 0 %>
+ - <%= get_create_course_count(@user) %>
+ <% end %>
+ <% if(get_homework_commons_count(@user)) == 0 %>
+ - <%= get_homework_commons_count(@user) %>
+ <% end %>
+ <% end %>
+ <% if (get_join_course_count(@user) != 0) %>
+ - <%= get_join_course_count(@user) %>
+ <% end %>
+ <% if @user.user_extensions.identity == 0 %>
+ - <%= get_anonymous_evaluation_count(@user) %>
+ <% end %>
+ <% if (get_projectandcourse_attachment_count(@user) != 0) %>
+ - <%= get_projectandcourse_attachment_count(@user) %>
+ <% end %>
+ <% if (get_create_project_count(@user) != 0) %>
+ - <%= get_create_project_count(@user) %>
+ <% end %>
+ <% if (get_join_project_count(@user) != 0) %>
+ - <%= get_join_project_count(@user) %>
+ <% end %>
+ <% if (get_create_issue_count(@user) != 0) %>
+ - <%= get_create_issue_count(@user) %>
+ <% end %>
+ <% if (get_resolve_issue_count(@user) != 0) %>
+ - <%= get_resolve_issue_count(@user) %>
<% end %>
- - <%= get_join_course_count(@user) %>
- - <%= get_anonymous_evaluation_count(@user) %>
- - <%= get_projectandcourse_attachment_count(@user) %>
- - <%= get_create_project_count(@user) %>
- - <%= get_join_project_count(@user) %>
- - <%= get_create_issue_count(@user) %>
- - <%= get_resolve_issue_count(@user) %>
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 57c3712f9..c23266afd 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -540,7 +540,6 @@
$('#my_account_form_btn').click();
});
$('#my_password_form_link').click(function(){
- alert("密码修改成功,请重新登录!");
$('#my_password_form_btn').click();
});
});