创建课程、加入课程、创建作业数的显示
This commit is contained in:
parent
793f477f1c
commit
bed46c050f
|
@ -171,11 +171,11 @@
|
|||
|
||||
<div class="leftbox">
|
||||
<ul class="leftbox_ul_left">
|
||||
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
|
||||
<% if(get_create_course_count(@user)) == 0 %>
|
||||
<% if @user.user_extensions && @user.user_extensions.identity == 0 %>
|
||||
<% if(get_create_course_count(@user)) != 0 %>
|
||||
<li>创建课程 :</li>
|
||||
<% end %>
|
||||
<% if(get_homework_commons_count(@user)) == 0 %>
|
||||
<% if(get_homework_commons_count(@user)) != 0 %>
|
||||
<li>发布作业 :</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -202,11 +202,11 @@
|
|||
<% 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 %>
|
||||
<% if @user.user_extensions && @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 %>
|
||||
<% if(get_homework_commons_count(@user)) != 0 %>
|
||||
<li><%= get_homework_commons_count(@user) %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue