#1712点击打开某竞赛作品,网页名显示为托管项目的名称
This commit is contained in:
parent
9080ff79a0
commit
cf2810f1c6
|
@ -48,7 +48,7 @@ class SoftapplicationsController < ApplicationController
|
|||
|
||||
def show
|
||||
@softapplication = Softapplication.find(params[:id])
|
||||
@project = @softapplication.project
|
||||
#@project = @softapplication.project
|
||||
# 打分统计
|
||||
stars_reates = @softapplication.
|
||||
rates(:quality)
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
<%=link_to l(:field_homepage), home_path %> >
|
||||
<a><%= l(:label_contest_innovate) %></a>
|
||||
<span>
|
||||
<% contest = @softapplication.contests.first %><%= contest ? link_to(contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%>
|
||||
<% contest = @softapplication.contests.first %>
|
||||
<%= contest ? link_to(">" + contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<%= render :partial => 'layouts/base_softapplication_top_content' %>
|
||||
<% html_title(@softapplication.name) -%>
|
||||
<div style="height: auto; padding-bottom: 10px" class="softapplications-div">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" width="320">
|
||||
|
@ -47,8 +48,9 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 40px">
|
||||
<% if @project %>
|
||||
<%=l(:label_attendingcontestwork_deposit_project)%>:<%= link_to "#@project", project_path(@project) %>
|
||||
<% if @softapplication.project %>
|
||||
<%=l(:label_attendingcontestwork_deposit_project)%>:
|
||||
<%= link_to "#{@softapplication.project}", project_path(@softapplication.project) %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue