个人主页:如图值为0时,这些字段不要显示
This commit is contained in:
parent
7f8f957a71
commit
6b3882aff8
|
@ -149,29 +149,65 @@
|
|||
<div class="leftbox mt10">
|
||||
<ul class="leftbox_ul_left">
|
||||
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
|
||||
<% if(get_create_course_count(@user)) == 0 %>
|
||||
<li>创建课程 :</li>
|
||||
<% end %>
|
||||
<% if(get_homework_commons_count(@user)) == 0 %>
|
||||
<li>发布作业 :</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if (get_join_course_count(@user) != 0) %>
|
||||
<li>加入课程 :</li>
|
||||
<% end %>
|
||||
<% if @user.user_extensions.identity == 0 %>
|
||||
<li>参加匿评 :</li>
|
||||
<% end %>
|
||||
<% if (get_projectandcourse_attachment_count(@user) != 0) %>
|
||||
<li>发布资源 :</li>
|
||||
<% end %>
|
||||
<% if (get_create_project_count(@user) != 0) %>
|
||||
<li>创建项目 :</li>
|
||||
<% end %>
|
||||
<% if (get_join_project_count(@user) != 0) %>
|
||||
<li>加入项目 :</li>
|
||||
<% end %>
|
||||
<% if (get_create_issue_count(@user) != 0) %>
|
||||
<li>发布缺陷 :</li>
|
||||
<% end %>
|
||||
<% if (get_resolve_issue_count(@user) != 0) %>
|
||||
<li>解决缺陷 :</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<ul class="leftbox_ul_right c_dgrey">
|
||||
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
|
||||
<% if(get_create_course_count(@user)) == 0 %>
|
||||
<li><%= get_create_course_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if(get_homework_commons_count(@user)) == 0 %>
|
||||
<li><%= get_homework_commons_count(@user) %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if (get_join_course_count(@user) != 0) %>
|
||||
<li><%= get_join_course_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if @user.user_extensions.identity == 0 %>
|
||||
<li><%= get_anonymous_evaluation_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if (get_projectandcourse_attachment_count(@user) != 0) %>
|
||||
<li><%= get_projectandcourse_attachment_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if (get_create_project_count(@user) != 0) %>
|
||||
<li><%= get_create_project_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if (get_join_project_count(@user) != 0) %>
|
||||
<li><%= get_join_project_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if (get_create_issue_count(@user) != 0) %>
|
||||
<li><%= get_create_issue_count(@user) %></li>
|
||||
<% end %>
|
||||
<% if (get_resolve_issue_count(@user) != 0) %>
|
||||
<li><%= get_resolve_issue_count(@user) %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
|
|
|
@ -540,7 +540,6 @@
|
|||
$('#my_account_form_btn').click();
|
||||
});
|
||||
$('#my_password_form_link').click(function(){
|
||||
alert("密码修改成功,请重新登录!");
|
||||
$('#my_password_form_btn').click();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue