This commit is contained in:
wanglinchun 2014-06-05 11:58:59 +08:00
parent 982bf17ebc
commit f17c01010f
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
class Contestnotification < ActiveRecord::Base class Contestnotification < ActiveRecord::Base
attr_accessible :author_id, :notificationcomments_count, :contest_id, :description, :summary, :title #attr_accessible :author_id, :notificationcomments_count, :contest_id, :description, :summary, :title
include Redmine::SafeAttributes include Redmine::SafeAttributes
belongs_to :contest belongs_to :contest

View File

@ -48,7 +48,7 @@
<tr> <tr>
<td align="left"><span class="font_lighter"> <%= l :label_update_time %> <td align="left"><span class="font_lighter"> <%= l :label_update_time %>
&nbsp;<%= format_time(contestnotifications.created_at) %></span></td> &nbsp;<%= format_time(contestnotifications.created_at) %></span></td>
<td width="350" align="right" class="a"><%= link_to l(:label_project_newother), contest_contestnotification_path(@contest, contestnotifications) %><%= "(#{l(:label_x_comments, :count => contestnotifications.notificationcomments.count)})" if(contestnotifications.notificationcomments.count >= 0)%></td> <td width="350" align="right" class="a"><%= link_to l(:label_project_newother), contest_contestnotification_path(@contest, contestnotifications) %><%= "(#{l(:label_x_comments, :count => contestnotifications.notificationcomments_count)})" if(contestnotifications.notificationcomments_count >= 0)%></td>
</tr> </tr>
</table> </table>
</td> </td>

View File

@ -64,7 +64,7 @@
<tr> <tr>
<td align="left"><span class="font_lighter"> <%= l :label_update_time %> <td align="left"><span class="font_lighter"> <%= l :label_update_time %>
&nbsp;<%= format_time(news.created_on) %></span></td> &nbsp;<%= format_time(news.created_on) %></span></td>
<td width="350" align="right" class="a"><%= link_to l(:label_project_newother), news_path(news) %><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count >= 0 %></td>
</tr> </tr>
</table> </table>
</td> </td>