当用户未登陆的时候,隐藏掉了“软件众包”中的“选为作业”
当用户未登陆的时候,隐藏掉了“项目托管”、“创新竞赛”以及“软件众包” 关注 前的星号
This commit is contained in:
parent
80f40cd1c0
commit
fdcb68bd69
|
@ -68,13 +68,15 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<% if ( !(User.current.member_of? @project) && User.current.login?) %>
|
||||
<tr>
|
||||
<td align="center"> <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"> <span style="margin-right:10px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -59,13 +59,15 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
||||
<tr colspan='3'>
|
||||
<td valign="middle">
|
||||
<span style="display:block; margin-left:20px;"><%= join_in_contest(@bid, User.current)%></span>
|
||||
<span style="display:block; margin-left:20px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<!-- added by bai 增加了竞赛的配置 -->
|
||||
<% if User.current.logged? %>
|
||||
|
|
|
@ -57,8 +57,9 @@
|
|||
<div class="info-course">
|
||||
<%= @project.name %>
|
||||
</div>
|
||||
<div style="margin-left: 20px;">
|
||||
<% unless User.current.member_of? @project %>
|
||||
<div style="margin-left: 20px;">
|
||||
|
||||
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
||||
<span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue