未登录时取消显示我的学校按钮

This commit is contained in:
sw 2014-07-11 13:41:05 +08:00
parent 4f2298fd22
commit 9472a7eb5c
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@
<p> <p>
<%= link_to "全部学校",school_index_path %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%= link_to "全部学校",school_index_path %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://course.trustie.net">我的学校</a> <% if User.current.logged? %>
<a href="http://course.trustie.net">我的学校</a>
<% end %>
</p> </p>
<ul> <ul>
<li style="width: 40%; float: left">请选择省份: <li style="width: 40%; float: left">请选择省份: