From d76eec27cce25671b0be7b81c99d475dfe59c954 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Thu, 12 Jun 2014 11:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E7=AB=9E=E8=B5=9B=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E6=B7=BB=E5=8A=A0=E7=99=BB=E5=BD=95=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/contestnotifications/index.html.erb | 9 +++++++++ app/views/contestnotifications/show.html.erb | 12 +++++++++--- config/locales/en.yml | 1 + config/locales/zh.yml | 1 + 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app/views/contestnotifications/index.html.erb b/app/views/contestnotifications/index.html.erb index a9ab5b775..434b71ce8 100644 --- a/app/views/contestnotifications/index.html.erb +++ b/app/views/contestnotifications/index.html.erb @@ -2,10 +2,19 @@ <%= l(:label_notification) %> +<% if User.current.logged? %> <%= 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 %> + + <% if @contest && User.current.allowed_to?(:manage_contestnotifications, @contest) %>