sdf
This commit is contained in:
parent
c3865ab319
commit
467f8f54e1
|
@ -158,7 +158,7 @@ class ContestnotificationsController < ApplicationController
|
||||||
# format.html { redirect_to contestnotifications_url }
|
# format.html { redirect_to contestnotifications_url }
|
||||||
# format.json { head :no_content }
|
# format.json { head :no_content }
|
||||||
# end
|
# end
|
||||||
@contestnotifications.destroy
|
@contestnotification.destroy
|
||||||
redirect_to contest_contestnotifications_path(@contest)
|
redirect_to contest_contestnotifications_path(@contest)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
edit_contest_contestnotification_path(@contestnotification),
|
edit_contest_contestnotification_path(@contestnotification),
|
||||||
:class => 'icon icon-edit',
|
:class => 'icon icon-edit',
|
||||||
:accesskey => accesskey(:edit),
|
:accesskey => accesskey(:edit),
|
||||||
:onclick => '$("#edit-contestnotifications").show(); return false;') 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.allowed_to?(:manage_contestnotifications, @contest) %>
|
<%= delete_link contest_contestnotification_path(@contestnotification) if User.current%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3><strong><%=h @contestnotification.title %></strong></h3>
|
<h3><strong><%=h @contestnotification.title %></strong></h3>
|
||||||
|
|
Loading…
Reference in New Issue