diff --git a/app/views/contests/settings.html.erb b/app/views/contests/settings.html.erb index def1c7f5..8e25bb6a 100644 --- a/app/views/contests/settings.html.erb +++ b/app/views/contests/settings.html.erb @@ -1,5 +1,16 @@ -

<%=l(:label_settings)%>

+

+ <%=l(:label_contest_settings)%>    + + <% if User.current.logged? %> + <% if @contest.author.id == User.current.id %> + + <%= link_to '删除竞赛', {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' } %> + + <% end %> + <% end %> +

+