From 15c88df72d2cd07c15703009edf5df3b6a55a803 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Thu, 12 Jun 2014 11:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=8F=91=E5=B8=83=E7=AB=9E=E8=B5=9B?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/contestnotifications/index.html.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/views/contestnotifications/index.html.erb b/app/views/contestnotifications/index.html.erb index 434b71ce8..c71c9703d 100644 --- a/app/views/contestnotifications/index.html.erb +++ b/app/views/contestnotifications/index.html.erb @@ -2,16 +2,11 @@ <%= l(:label_notification) %> -<% if User.current.logged? %> +<% if User.current.logged? && User.current == @contest.author %> <%= link_to(l(:bale_news_notice), new_contest_contestnotification_path(@contest), :class => 'icon icon-add', :onclick => 'showAndScrollTo("add-contestnotifications", "contestnotifications_title"); return false;') %> -<% else %> - - <%= l(:label_user_login_attending_contest) %> - <%= link_to l(:label_user_login_new), signin_path %> - <% end %>