用户未登陆时首页不提示“该学校未开设任何课程”

This commit is contained in:
nwb 2014-07-07 09:37:45 +08:00
parent 5f18b1a38c
commit beeb707347
1 changed files with 5 additions and 3 deletions

View File

@ -87,9 +87,11 @@
<ul class="d-p-projectlist">
<h1></h1>
<% if User.current.logged? %>
<p id="errorExplanation">
该学校未开设任何课程,您可以查看其他学校课程
</p>
<% end %>
<h1></h1>
<% find_all_new_hot_course(9, @school_id).map do |course| %>