@ -36,24 +36,24 @@
<!--begin-->
<!--begin-->
<div class="contextual">
<div class="contextual">
<%= watcher_link(@contestnotification, User.current) %>
<%= watcher_link(@contestnotifications , User.current) %>
<%= link_to(l(:button_edit),
<%= link_to(l(:button_edit),
edit_news_path(@news),
edit_news_path(@news),
:class => 'icon icon-edit',
:class => 'icon icon-edit',
:accesskey => accesskey(:edit),
:accesskey => accesskey(:edit),
:onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_contestnotification, @contest) %>
:onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_contestnotification, @contest) %>
<%= delete_link news_path(@contestnotification) if User.current.allowed_to?(:manage_contestnotification, @contest) %>
<%= delete_link news_path(@contestnotifications ) if User.current.allowed_to?(:manage_contestnotification, @contest) %>
</div>
</div>
<h3><strong><%=h @contestnotification.title %></strong></h3>
<h3><strong><%=h @contestnotifications .title %></strong></h3>
<% if authorize_for('contestnotification', 'edit') %>
<% if authorize_for('contestnotifications ', 'edit') %>
<div id="edit-news" style="display:none;">
<div id="edit-news" style="display:none;">
<%= labelled_form_for :contestnotification, @contestnotification, :url => contestnotification_path(@contestnotification),
<%= labelled_form_for :contestnotifications , @contestnotifications , :url => contestnotifications _path(@contestnotifications ),
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<%= submit_tag l(:button_save) %>
<%= preview_link preview_contestnotification_path(:contest_id => @contest, :id => @contestnotification), 'news-form',target='preview',{:class => ''} %> |
<%= preview_link preview_contestnotifications _path(:contest_id => @contest, :id => @contestnotifications ), 'news-form',target='preview',{:class => ''} %> |
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;' %>
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;' %>
<% end %>
<% end %>
<div id="preview" class="wiki"></div>
<div id="preview" class="wiki"></div>
@ -63,16 +63,16 @@
<div id="comments" style="margin-bottom:16px;">
<div id="comments" style="margin-bottom:16px;">
<div style="margin:15px">
<div style="margin:15px">
<span class="font_description"> <%= textilizable(@contestnotification, :description) %> </span>
<span class="font_description"> <%= textilizable(@contestnotifications , :description) %> </span>
<br/>
<br/>
<%= link_to_attachments @contestnotification %>
<%= link_to_attachments @contestnotifications %>
<br/>
<br/>
<!--add comment-->
<!--add comment-->
<% if @contestnotification.commentable? %>
<% if @contestnotifications .commentable? %>
<p>
<p>
<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>
<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>
</p>
</p>
<%= form_tag({:controller => 'comments', :action => 'create', :id => @contestnotification}, :id => "add_comment_form", :style => "display:none;") do %>
<%= form_tag({:controller => 'comments', :action => 'create', :id => @contestnotifications }, :id => "add_comment_form", :style => "display:none;") do %>
<div class="box">
<div class="box">
<%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
<%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
<%= wikitoolbar_for 'comment_comments' %>
<%= wikitoolbar_for 'comment_comments' %>
@ -83,7 +83,7 @@
<% end %>
<% end %>
<% end %>
<% end %>
<% html_title @contestnotification.title -%>
<% html_title @contestnotifications .title -%>
<% content_for :header_tags do %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= stylesheet_link_tag 'scm' %>
@ -112,7 +112,7 @@
</tr>
</tr>
<tr>
<tr>
<td align="left"><span class="font_lighter"> <%= format_time(comment.created_on) %></span></td>
<td align="left"><span class="font_lighter"> <%= format_time(comment.created_on) %></span></td>
<td width="200" align="right" class="a"><%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @contestnotification, :comment_id => comment},
<td width="200" align="right" class="a"><%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @contestnotifications , :comment_id => comment},
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %></td>
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %></td>
</tr>
</tr>
</table></td>
</table></td>