socialforge/app/views/contests/_mamager_setting.html.erb

22 lines
1.4 KiB
Plaintext

<div class="homepagePostSetting mt10 mr5" >
<ul>
<li class="homepagePostSettingIcon">
<ul class="homepagePostSettiongText">
<li><a href="javascript:void(0);" class="postOptionLink" onclick="delete_confirm_box('<%=private_or_public_contest_path(@contest) %>', '您确定要设置为<%= !@contest.is_public ? '公开' : '私有'%>吗')"><%= !@contest.is_public ? '设为公开' : '设为私有'%></a></li>
<% if @contest.invite_code_halt == 0 %>
<li><a href="javascript:void(0);" class="postOptionLink" onclick="alert_halt_code();">暂停加入</a></li>
<% elsif @contest.invite_code_halt == 1 %>
<li><a href="<%=set_invite_code_halt_contest_path(@contest) %>" data-remote="true" class="postOptionLink">放开加入</a></li>
<% end %>
<li><%= link_to "配置", {:controller => 'contests', :action => 'settings', :id => @contest}, :class => "postOptionLink" %></li>
<li>
<% if !@contest.is_delete %>
<a href="javascript:void(0);" class="postOptionLink" onclick="delete_confirm_box_2('<%=contest_path(@contest) %>', '您确定要删除该竞赛吗?<br/>删除后可联系系统管理员进行恢复')">删除</a>
<% else %>
<%=link_to "恢复竞赛", renew_contest_path(@contest), :class => "postOptionLink" %>
<% end %>
</li>
</ul>
</li>
</ul>
</div>