From a5b688399440d2b5665b771f69d912070ffba46c Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Mon, 9 Jun 2014 17:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=BE=91=E7=AB=9E?= =?UTF-8?q?=E8=B5=9B=E9=80=9A=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/contestnotifications/show.html.erb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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') %>