#1233 修复进入其他人动态首页时,项目连接报500错误

解决方案:和进入自己的动态首页同一方法处理
course_group
sw 11 years ago
parent d159b4324a
commit b5edc0a686

@ -101,7 +101,9 @@
<tr align="center" width="80px">
<!--关注人数-->
<td class="font_index">
<%=link_to "#{@contest.watcher_users.count}",show_project_contest_path(@contest) %>
<span id="watcher_count_span">
<%=link_to "#{@contest.watcher_users.count}",show_project_contest_path(@contest) %>
</span>
</td>
<!--参赛作品数量-->
<td class="font_index">
@ -156,13 +158,6 @@
<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 @contest.author.id == User.current.id %>
<div>
<%= link_to '删除', {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' } %>
</div>
<% end %>
<% end %> -->
</div>
<div class="user_underline"></div>
</div>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save