修改首页显示部分数据

This commit is contained in:
wanglinchun 2014-04-19 10:56:18 +08:00
parent 8f6d9fc6a5
commit 3d02cb7ce0
4 changed files with 6 additions and 9 deletions

View File

@ -1,8 +1,7 @@
class Softapplication < ActiveRecord::Base
attr_accessible :android_min_version_available, :app_type_id, :app_type_name, :description, :name, :user_id, :contest_id, :application_developers
acts_as_attachable
seems_rateable :allow_update => true, :dimensions => :quality
seems_rateable_rater
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
has_many :contesting_softapplications, :dependent => :destroy
belongs_to :user

View File

@ -10,7 +10,7 @@
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= seems_rateable_stylesheet %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>

View File

@ -34,10 +34,7 @@
</td>
<td>开发人员:<%= @softapplication.application_developers %></td>
</tr>
<tr>
<td>rate: <%=rating_for @softapplication, :dimension => :qulity %></td>
<td></td>
</tr>
</table>
</td>

View File

@ -154,8 +154,9 @@
</div><br />
<div style="padding-left: 36px; clear: left;">
<span class="font_lighter"><%= l(:label_contest_project, :count => contest.contesting_projects.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_projects.count, show_project_contest_path(contest)) %></span></strong>)</span>
<span class="font_lighter"><%= l(:label_contest_softapplication, :count => contest.contesting_softapplications.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_softapplications.count, show_softapplication_contest_path(contest)) %></span></strong>)</span>
<!-- <span class="font_lighter"><%= l(:label_contest_project, :count => contest.contesting_projects.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_projects.count, show_project_contest_path(contest)) %></span></strong>)</span>
<span class="font_lighter"><%= l(:label_contest_softapplication, :count => contest.contesting_softapplications.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_softapplications.count, show_softapplication_contest_path(contest)) %></span></strong>)</span> -->
<span class="font_lighter">发布时间:<%=format_time contest.created_on %></span>
</div>
</li>