隐藏项目ZIP下载

This commit is contained in:
daiao 2017-08-11 09:04:17 +08:00
parent 59548d0e55
commit 20dc90c93e
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@
<div class=" fl clearfix"> <div class=" fl clearfix">
<%= render :partial => 'navigation' %> <%= render :partial => 'navigation' %>
</div> </div>
<a href="<%= @zip_path %>" class="btn_zipdown fl ml10" onclick="">ZIP下载</a> <!-- <a href="<%#= @zip_path %>" class="btn_zipdown fl ml10" onclick="">ZIP下载</a>-->
<% if !@entries.blank? && User.current.member_of?(@project) && @project.is_public? %> <% if !@entries.blank? && User.current.member_of?(@project) && @project.is_public? %>
<% if quality_analysis(User.current.try(:login), @repository.id).nil? %> <% if quality_analysis(User.current.try(:login), @repository.id).nil? %>
<%= link_to "质量分析", quality_analysis_path(:id => @project.id, :repository_id => @repository.identifier, :rev => @rev, :default_branch => @g_default_branch, :type => "1"), :remote => true, :class => "btn_zipdown fl ml10" %> <%= link_to "质量分析", quality_analysis_path(:id => @project.id, :repository_id => @repository.identifier, :rev => @rev, :default_branch => @g_default_branch, :type => "1"), :remote => true, :class => "btn_zipdown fl ml10" %>

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20170802012507) do ActiveRecord::Schema.define(:version => 20170808033437) do
create_table "activities", :force => true do |t| create_table "activities", :force => true do |t|
t.integer "act_id", :null => false t.integer "act_id", :null => false
@ -1975,6 +1975,7 @@ ActiveRecord::Schema.define(:version => 20170802012507) do
t.text "actual_output" t.text "actual_output"
t.boolean "result" t.boolean "result"
t.boolean "is_public" t.boolean "is_public"
t.integer "query_index", :default => 1
end end
create_table "phone_app_versions", :force => true do |t| create_table "phone_app_versions", :force => true do |t|