From bb6be3ed8a75b12c58ec3206d6324fe73922f11c Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 31 Jul 2014 11:35:16 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9html=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/issue_overdue.rb | 2 +- app/views/contests/index.html.erb | 14 +++++------ .../contests/show_attendingcontest.html.erb | 2 +- db/schema.rb | 24 +++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/models/issue_overdue.rb b/app/models/issue_overdue.rb index 342790f55..5caec94c9 100644 --- a/app/models/issue_overdue.rb +++ b/app/models/issue_overdue.rb @@ -18,7 +18,7 @@ class IssueOverdue < ActiveRecord::Base sleep 5 else #发邮件 - puts "11" + issue.id.to_s + #puts "11" + issue.id.to_s #Mailer.issue_expire(issue).deliver Mailer.issue_add(issue).deliver break diff --git a/app/views/contests/index.html.erb b/app/views/contests/index.html.erb index 8c999f941..6f8430ca0 100644 --- a/app/views/contests/index.html.erb +++ b/app/views/contests/index.html.erb @@ -6,17 +6,17 @@ <%= l(:label_user_location) %> : <% if User.current.logged? %> - <% unless User.current.user_extensions.identity == 1 %> - <%= link_to(l(:label_newtype_contest), {:controller => 'contests', :action => 'new_contest'}, :class => 'icon icon-add', :target => "_blank") %> - <% end %> - <% end %> + <% unless User.current.user_extensions.identity == 1 %> + <%= link_to(l(:label_newtype_contest), {:controller => 'contests', :action => 'new_contest'}, :class => 'icon icon-add', :target => "_blank") %> + <% end %> + <% end %> - - diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb index 415897492..96fac7677 100644 --- a/app/views/contests/show_attendingcontest.html.erb +++ b/app/views/contests/show_attendingcontest.html.erb @@ -276,7 +276,7 @@ <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %> -
+
<%= toggle_link '评奖', c_softapplication.id.to_s %>