From cbf70d83cb2fb381123fb80f816ddbf9e3c8f75b Mon Sep 17 00:00:00 2001 From: huang Date: Sat, 30 Sep 2017 16:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E5=AE=9E=E8=AE=AD=E6=88=90?= =?UTF-8?q?=E5=91=98=E7=BC=96=E8=BE=91=E5=AE=9E=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/_link_to_functions.html.erb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/repositories/_link_to_functions.html.erb b/app/views/repositories/_link_to_functions.html.erb index 96fd56e5c..8e92cb14f 100644 --- a/app/views/repositories/_link_to_functions.html.erb +++ b/app/views/repositories/_link_to_functions.html.erb @@ -25,12 +25,10 @@ <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> <% end %> <% else %> - <% if @shixun.try(:status).to_i < 2 %> - <% if params[:controller] == "shixuns" && params[:action] == "entry_edit" %> - 保存 - <% elsif params[:action] == "shixun_entry" || params[:action] == "entry_update" %> - <%= link_to "编辑", entry_edit_shixun_path(@shixun, :path => @path, :rev => @rev), :class => "fl mr5", :remote => true %> - <% end %> + <% if params[:controller] == "shixuns" && params[:action] == "entry_edit" %> + 保存 + <% elsif params[:action] == "shixun_entry" || params[:action] == "entry_update" %> + <%= link_to "编辑", entry_edit_shixun_path(@shixun, :path => @path, :rev => @rev), :class => "fl mr5", :remote => true %> <% end %> <% end %>