当用户未登陆的时候,隐藏掉了“软件众包”中的“选为作业”

当用户未登陆的时候,隐藏掉了“项目托管”、“创新竞赛”以及“软件众包” 关注 前的星号
This commit is contained in:
wanglinchun 2013-12-31 11:12:39 +08:00
parent 80f40cd1c0
commit fdcb68bd69
3 changed files with 9 additions and 4 deletions

View File

@ -69,12 +69,14 @@
<tr> <tr>
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td> <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> <tr>
<td align="center"> <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %></td> <td align="center"> <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %></td>
</tr> </tr>
<tr> <tr>
<td align="center"> <span style="margin-right:10px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span></td> <td align="center"> <span style="margin-right:10px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span></td>
</tr> </tr>
<% end %>
</table></td> </table></td>
</tr> </tr>
</table> </table>

View File

@ -60,12 +60,14 @@
<tr> <tr>
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td> <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'> <tr colspan='3'>
<td valign="middle"> <td valign="middle">
<span style="display:block; margin-left:20px;"><%= join_in_contest(@bid, User.current)%></span> <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> <span style="display:block; margin-left:20px;"><span class="icon-fav icon"></span><%= watcher_link(@bid, User.current) %></span>
</td> </td>
</tr> </tr>
<% end %>
</table> </table>
<!-- added by bai 增加了竞赛的配置 --> <!-- added by bai 增加了竞赛的配置 -->
<% if User.current.logged? %> <% if User.current.logged? %>

View File

@ -58,7 +58,8 @@
<%= @project.name %> <%= @project.name %>
</div> </div>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
<% unless User.current.member_of? @project %>
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
<span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %> <span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %>
<% end %> <% end %>
</div> </div>