werew
This commit is contained in:
parent
982bf17ebc
commit
f17c01010f
|
@ -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
|
||||||
|
|
|
@ -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 %>
|
||||||
<%= format_time(contestnotifications.created_at) %></span></td>
|
<%= 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>
|
||||||
|
|
|
@ -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 %>
|
||||||
: <%= format_time(news.created_on) %></span></td>
|
: <%= 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>
|
||||||
|
|
Loading…
Reference in New Issue