From 9ac53e5a0bf3ccf66199e0e8cb3c34bda467caf5 Mon Sep 17 00:00:00 2001 From: zhanghaitao <562681745@qq.com> Date: Thu, 14 Aug 2014 15:58:32 +0800 Subject: [PATCH 01/20] =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E5=87=BA=E5=BC=82=E5=B8=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_tag_name.html.erb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/views/tags/_tag_name.html.erb b/app/views/tags/_tag_name.html.erb index 531ed6966..5713e9a2e 100644 --- a/app/views/tags/_tag_name.html.erb +++ b/app/views/tags/_tag_name.html.erb @@ -72,11 +72,12 @@ <% end %> <% when '6' %> - <% if (User.current.logged? && + <%# if (User.current.logged? && User.current.admin? # && (@project && User.current.member_of?(@project)) ) %> + <% if obj.author_id == User.current.id || User.current.admin?%> <%= link_to 'x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag, :taggable_id => obj.id, :taggable_type => object_flag %> <% end %> @@ -94,14 +95,8 @@ :taggable_id => obj.id, :taggable_type => object_flag %> <% end %> <% end %> - - From 20f183799f5e0bcb5ee530513d2e4facc9437ebd Mon Sep 17 00:00:00 2001 From: zhanghaitao <562681745@qq.com> Date: Thu, 14 Aug 2014 16:19:40 +0800 Subject: [PATCH 02/20] =?UTF-8?q?#828=20=E5=88=A0=E9=99=A4=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84=E6=96=87=E4=BB=B6=E4=B8=8D=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/_links.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index cdd1fdd2f..b9d91d5b5 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -30,7 +30,7 @@ :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :class => 'delete', - :remote => true, + #:remote => true, #:id => "attachments_" + attachment.id.to_s, :title => l(:button_delete) %> <% end %> From 4a0f11dfcef8dde0657932cb0b2d7ba459defa2b Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 14 Aug 2014 16:33:43 +0800 Subject: [PATCH 03/20] =?UTF-8?q?#1130=20=E9=A1=B9=E7=9B=AE=E8=AE=A8?= =?UTF-8?q?=E8=AE=BA=E5=8C=BA=E5=9B=9E=E5=A4=8D=E5=AF=B9=E9=9D=9E=E6=B1=89?= =?UTF-8?q?=E5=AD=97=E8=87=AA=E5=8A=A8=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/messages/_project_show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index 0bae1a761..0c0c21b91 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -160,7 +160,7 @@
<%= l(:label_class_period) %> * - <%= text_field_tag :class_period, @course.class_period, :placeholder => "在此输入课时" %> <%= l(:label_class_hour)%> + <%= text_field_tag :class_period, @course.class_period, :placeholder => "在此输入课时",:maxlength=>5 %> <%= l(:label_class_hour)%> |
<%= l(:label_class_period) %> * - <%= text_field_tag :class_period, nil, :placeholder => "在此输入课时" %><%= l(:label_class_hour)%> + <%= text_field_tag :class_period, nil, :placeholder => "在此输入课时",:maxlength=>5 %><%= l(:label_class_hour)%> |
<%= l(:label_bids_reward_method) %><%= @contest.budget%>
-