From 292f0b72e8c3f5510722ed49087ac4568cdcd7a7 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 May 2015 05:04:53 +0200 Subject: [PATCH] Add feature : https://github.com/jbox-web/redmine_git_hosting/issues/426 --- app/views/repositories/_sidebar.html.haml | 1 + app/views/repositories/git_instructions.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/_sidebar.html.haml b/app/views/repositories/_sidebar.html.haml index c587473cb50..164c302bdf6 100644 --- a/app/views/repositories/_sidebar.html.haml +++ b/app/views/repositories/_sidebar.html.haml @@ -2,6 +2,7 @@ - @repositories.sort.each do |repo| %li{ class: 'repository git' } = link_to_repository(repo, @repository) + = link_to "(#{l(:label_settings)})", edit_repository_path(repo) if User.current.allowed_to?(:manage_repository, @project) - if @repository.is_a?(Repository::Xitolite) && RedmineGitHosting::Config.show_repositories_url? .git_hosting_urls diff --git a/app/views/repositories/git_instructions.html.haml b/app/views/repositories/git_instructions.html.haml index b297b71db1d..feb7c8ecbff 100644 --- a/app/views/repositories/git_instructions.html.haml +++ b/app/views/repositories/git_instructions.html.haml @@ -46,8 +46,8 @@ %ul{ class: 'repository git' } - @repositories.sort.each do |repo| %li{ class: 'repository git' } - = link_to h(repo.name), {controller: 'repositories', action: 'show', id: @project, repository_id: repo.identifier_param, rev: nil, path: nil}, - class: 'repository' + (@repository.is_a?(Repository::Xitolite) ? ' git' : '') + (repo == @repository ? ' selected' : '') + = link_to_repository(repo, @repository) + = link_to "(#{l(:label_settings)})", edit_repository_path(repo) if User.current.allowed_to?(:manage_repository, @project) - if @repository.is_a?(Repository::Xitolite) && @repository.urls_are_viewable? .git_hosting_urls