|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
<% if User.current.login? %>
|
|
|
|
|
<tr colspan='3'>
|
|
|
|
|
<td valign="middle">
|
|
|
|
|
<span style="display:block; margin-left:20px; margin-bottom: 5px"><%= join_in_competition(@contest, User.current)%></span>
|
|
|
|
|
<!-- <span style="display:block; margin-left:20px; margin-bottom: 5px"><%= join_in_competition(@contest, User.current)%></span> -->
|
|
|
|
|
<span style="display:block; margin-left:20px;"><%= new_watcher_link(@contest, User.current) %></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -145,13 +145,13 @@
|
|
|
|
|
<div class="created_on_project">
|
|
|
|
|
<strong style="color: #068d9c"><%= l(:label_create_time) %>:</strong><%= format_time(@contest.created_on) %>
|
|
|
|
|
</div>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<!-- <% if User.current.logged? %>
|
|
|
|
|
<% if @contest.author.id == User.current.id %>
|
|
|
|
|
<div>
|
|
|
|
|
<%= link_to '删除', {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' } %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
</div>
|
|
|
|
|