为竞赛通知评论添加登录权限
This commit is contained in:
parent
60bdff86a1
commit
d76eec27cc
|
@ -2,10 +2,19 @@
|
|||
<%= l(:label_notification) %>
|
||||
</span>
|
||||
|
||||
<% 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) %>
|
||||
<div id="add-contestnotifications" class="add_frame" style="display:none;">
|
||||
|
|
|
@ -31,9 +31,15 @@
|
|||
<br/>
|
||||
<!--add comment-->
|
||||
|
||||
<p>
|
||||
<%= toggle_link l(:label_comment_add), "add_notificationcomment_form", :focus => "notificationcomment_notificationcomments" %>
|
||||
</p>
|
||||
<% if User.current.logged? %>
|
||||
<p>
|
||||
<%= toggle_link l(:label_comment_add), "add_notificationcomment_form", :focus => "notificationcomment_notificationcomments" %>
|
||||
</p>
|
||||
<% else %>
|
||||
<%= l(:label_user_login_notificationcomment) %>
|
||||
<%= link_to l(:label_user_login_new), signin_path %>
|
||||
<% end %>
|
||||
|
||||
<%= form_tag( contest_contestnotification_notificationcomments_path(@contest, @contestnotification) , :id => "add_notificationcomment_form", :style => "display:none;") do %>
|
||||
<div class="box">
|
||||
<%= text_area 'notificationcomment', 'notificationcomments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
|
||||
|
|
|
@ -1734,6 +1734,7 @@ en:
|
|||
label_contest_innovate_community: Competition community
|
||||
|
||||
label_user_login_score_and_comment: You are not logged in, please log in and then score and comment the work!
|
||||
label_user_login_notificationcomment: You are not logged in, please log in and then comment the notification!
|
||||
label_contest_work_list: Competition work list
|
||||
|
||||
|
||||
|
|
|
@ -563,6 +563,7 @@ zh:
|
|||
label_user_login_project_board: 您还没有登录,请登录后参与项目讨论
|
||||
label_user_login_attending_contest: 您还没有登录,请登录后参赛
|
||||
label_user_login_score_and_comment: 您还没有登录,请登录后对作品进行打分评价
|
||||
label_user_login_notificationcomment: 您还没有登录,请登录后参加评论
|
||||
#end
|
||||
#by huang # modified by bai
|
||||
label_college: 高校进入
|
||||
|
|
Loading…
Reference in New Issue