个人主页

This commit is contained in:
yutao 2015-07-18 12:59:25 +08:00
parent f4b88dce70
commit 0ef09fee8a
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<% hidden_non_project = Setting.find_by_name("hidden_non_project")
visiable = hidden_non_project && hidden_non_project.value == "0"%>
<% if @show_course == 1 && !visiable %>
<% if User.current.user_extensions && [UserExtensions::TEACHER, UserExtensions::STUDENT].include?(User.current.user_extensions.identity) -%>
<%# if User.current.user_extensions && [UserExtensions::TEACHER, UserExtensions::STUDENT].include?(User.current.user_extensions.identity) -%>
<% hasCourse=false %>
<% User.current.courses.each do |course| %>
<% if !course_endTime_timeout?(course) %>
@ -34,7 +34,7 @@
</ul>
</li>
<% end %>
<% end -%>
<%# end -%>
<% end %>
<% if User.current.projects.count>0 %>