This commit is contained in:
wanglinchun 2014-06-07 11:15:58 +08:00
parent c3865ab319
commit 467f8f54e1
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class ContestnotificationsController < ApplicationController
# format.html { redirect_to contestnotifications_url }
# format.json { head :no_content }
# end
@contestnotifications.destroy
@contestnotification.destroy
redirect_to contest_contestnotifications_path(@contest)
end

View File

@ -5,8 +5,8 @@
edit_contest_contestnotification_path(@contestnotification),
:class => 'icon icon-edit',
:accesskey => accesskey(:edit),
:onclick => '$("#edit-contestnotifications").show(); return false;') if User.current.allowed_to?(:manage_contestnotifications, @contest) %>
<%= delete_link contest_contestnotification_path(@contestnotification) if User.current.allowed_to?(:manage_contestnotifications, @contest) %>
:onclick => '$("#edit-contestnotifications").show(); return false;') if User.current%>
<%= delete_link contest_contestnotification_path(@contestnotification) if User.current%>
</div>
<h3><strong><%=h @contestnotification.title %></strong></h3>