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