diff --git a/app/views/contestnotifications/show.html.erb b/app/views/contestnotifications/show.html.erb index 2a2123867..0a0d6ce67 100644 --- a/app/views/contestnotifications/show.html.erb +++ b/app/views/contestnotifications/show.html.erb @@ -1,23 +1,21 @@
- <%#= watcher_link(@contestnotification, User.current) %> <%= link_to(l(:button_edit), - edit_contest_contestnotification_path(@contestnotification), + edit_contest_contestnotification_path(@contest, @contestnotification), :class => 'icon icon-edit', :accesskey => accesskey(:edit), - :onclick => '$("#edit-contestnotifications").show(); return false;') if User.current%> - <%= delete_link contest_contestnotification_path(@contest, @contestnotification) if User.current%> + :onclick => '$("#edit-contestnotifications").show(); return true;') if User.current %> + <%= delete_link contest_contestnotification_path(@contest, @contestnotification) if User.current %>

<%=h @contestnotification.title %>

<% if authorize_for_contest('contestnotifications', 'edit') %>