From ed71a3faa169d9aeb28a7ac056505f87eac0b706 Mon Sep 17 00:00:00 2001
From: wanglinchun
Date: Fri, 25 Apr 2014 11:10:13 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=A0=E9=99=A4=E7=AB=9E?=
=?UTF-8?q?=E8=B5=9B=E7=9A=84=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F=E5=8F=8A?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/contests/settings.html.erb | 13 ++++++++++++-
app/views/layouts/base_newcontest.html.erb | 6 +++---
config/locales/zh.yml | 2 ++
3 files changed, 17 insertions(+), 4 deletions(-)
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 %>
+
+