为发布竞赛通知添加权限
This commit is contained in:
parent
d76eec27cc
commit
15c88df72d
|
@ -2,16 +2,11 @@
|
|||
<%= l(:label_notification) %>
|
||||
</span>
|
||||
|
||||
<% 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 %>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue