From 275c1bc36dfb1b248693d348db6ed27b6abe00c2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2015 18:34:08 +0200 Subject: [PATCH 1/2] Fix missing helper in UsersController --- lib/redmine_git_hosting/patches/users_controller_patch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/redmine_git_hosting/patches/users_controller_patch.rb b/lib/redmine_git_hosting/patches/users_controller_patch.rb index 03cd00e8245..f599f594ab5 100644 --- a/lib/redmine_git_hosting/patches/users_controller_patch.rb +++ b/lib/redmine_git_hosting/patches/users_controller_patch.rb @@ -14,6 +14,7 @@ def self.included(base) alias_method_chain :destroy, :git_hosting helper :gitolite_public_keys + helper :redmine_bootstrap_kit end end From fbd896d209c53ca47f7140498a15fdaf70560819 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2015 18:38:19 +0200 Subject: [PATCH 2/2] No need to flatten Git URLS --- app/views/common/_git_urls.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/common/_git_urls.html.haml b/app/views/common/_git_urls.html.haml index 3a20b06c948..1377c176a27 100644 --- a/app/views/common/_git_urls.html.haml +++ b/app/views/common/_git_urls.html.haml @@ -7,7 +7,7 @@ = javascript_include_tag 'application', plugin: 'redmine_git_hosting' - repositories = Array.wrap(repository) unless repositories -- if repositories.map(&:available_urls).flatten.reject { |m| m.blank? }.any? +- if repositories.map(&:available_urls).reject { |h| h.empty? }.any? - repositories.sort_by { |r| r.is_default ? 0 : 1 }.each do |repository| - next if repository.available_urls.empty? - present repository do |p|