+
+ 参赛步骤:
-
-
-
+
+
+
+
+
+
+
<% end %>
@@ -106,74 +180,62 @@
<% if @contest.id == 2 or @contest.id == 3 or @contest.id == 6 %>
- <% @contesting_project.each do |c_project|%>
- <% if c_project.project %>
-
-
-
- 参赛作品: |
-
- <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
- |
-
-
-
-
- 简介: |
-
- <%= c_project.project.description.truncate(90, omission: '...') %>
- |
-
-
-
-
- 发布时间: |
-
- <%= format_time c_project.created_at%>
- |
-
-
-
-
- <% end %>
-
- <% end %>
+<% @contesting_project.each do |c_project|%>
+<% if c_project.project %>
+
+
+
+ 参赛作品: |
+ <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %> |
+
+
+
+
+ 简介: |
+ <%= c_project.project.description.truncate(90, omission: '...') %> |
+
+
+
+
+ 发布时间: |
+ <%= format_time c_project.created_at%> |
+
+
+
+
+<% end %>
+
+<% end %>
<% else %>
- <% @contesting_softapplication.each do |c_softapplication|%>
- <% if c_softapplication.softapplication %>
-
-
-
- 参赛作品: |
-
- <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %>
- |
-
-
-
-
- 简介: |
-
- <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %>
- |
-
-
-
-
- 发布时间: |
-
- <%=format_time c_softapplication.created_at %>
- |
-
-
-
-
- <% end %>
-
- <% end %>
+<% @contesting_softapplication.each do |c_softapplication|%>
+<% if c_softapplication.softapplication %>
+
+
+
+ 参赛作品: |
+ <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> |
+
+
+
+
+ 简介: |
+ <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> |
+
+
+
+
+ 发布时间: |
+ <%= format_time c_softapplication.created_at %> |
+
+
+
+
+<% end %>
+
+<% end %>
<% end %>
-
-
-
+
diff --git a/lib/redmine.rb b/lib/redmine.rb
index d22feb9fc..3d3565430 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -279,8 +279,8 @@ end
###new add by linchun
Redmine::MenuManager.map :contest_menu do |menu|
menu.push :respond, :show_contest_contest_path, :caption => :label_user_response
- #menu.push :project, :show_project_contest_path, :caption => :label_contest_project
- #menu.push :application, :show_softapplication_contest_path, :caption => :label_contest_application
+ menu.push :project, :show_project_contest_path, :caption => :label_contest_project
+ menu.push :application, :show_softapplication_contest_path, :caption => :label_contest_application
menu.push :attendingcontest, {:controller => 'contests', :action => 'show_attendingcontest'}, :caption => :label_attending_contest
# menu.push :attendingcontest, :show_attendingcontest_contest_path, :caption => :label_attendin,g_contest
# menu.push :result, { :controller => 'bids', :action => 'show_results' },