个人主页

dev_cxt2
yutao 10 years ago
parent f4b88dce70
commit 0ef09fee8a

@ -15,7 +15,7 @@
<% hidden_non_project = Setting.find_by_name("hidden_non_project") <% hidden_non_project = Setting.find_by_name("hidden_non_project")
visiable = hidden_non_project && hidden_non_project.value == "0"%> visiable = hidden_non_project && hidden_non_project.value == "0"%>
<% if @show_course == 1 && !visiable %> <% 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 %> <% hasCourse=false %>
<% User.current.courses.each do |course| %> <% User.current.courses.each do |course| %>
<% if !course_endTime_timeout?(course) %> <% if !course_endTime_timeout?(course) %>
@ -34,7 +34,7 @@
</ul> </ul>
</li> </li>
<% end %> <% end %>
<% end -%> <%# end -%>
<% end %> <% end %>
<% if User.current.projects.count>0 %> <% if User.current.projects.count>0 %>

Loading…
Cancel
Save