From 6b481c8961251585393de5a6941fe5e38358ee5e Mon Sep 17 00:00:00 2001 From: houxiang Date: Tue, 24 Nov 2015 10:12:21 +0800 Subject: [PATCH] mute the fork function by hx --- app/controllers/repositories_controller.rb | 1 + app/views/repositories/show.html.erb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 7f7b24a34..2bd54954a 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -315,6 +315,7 @@ update #Modified by young # (show_error_not_found; return) unless @entries g = Gitlab.client + # count = 0 # (0..100).each do |page| # if g.commits(@project.gpid,:page => page).count == 0 diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 7aac3af1d..960455e2e 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -25,7 +25,8 @@
ZIP
-
<%= link_to "Fork", :controller => 'repositories', :action => 'forked' %> 0
+
Fork 0
+
<% if @changesets && !@changesets.empty? %>