Skip to content

Commit 292f0b7

Browse files
author
root
committed
Add feature : #426
1 parent 65f1318 commit 292f0b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: app/views/repositories/_sidebar.html.haml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- @repositories.sort.each do |repo|
33
%li{ class: 'repository git' }
44
= link_to_repository(repo, @repository)
5+
= link_to "(#{l(:label_settings)})", edit_repository_path(repo) if User.current.allowed_to?(:manage_repository, @project)
56

67
- if @repository.is_a?(Repository::Xitolite) && RedmineGitHosting::Config.show_repositories_url?
78
.git_hosting_urls

Diff for: app/views/repositories/git_instructions.html.haml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
%ul{ class: 'repository git' }
4747
- @repositories.sort.each do |repo|
4848
%li{ class: 'repository git' }
49-
= link_to h(repo.name), {controller: 'repositories', action: 'show', id: @project, repository_id: repo.identifier_param, rev: nil, path: nil},
50-
class: 'repository' + (@repository.is_a?(Repository::Xitolite) ? ' git' : '') + (repo == @repository ? ' selected' : '')
49+
= link_to_repository(repo, @repository)
50+
= link_to "(#{l(:label_settings)})", edit_repository_path(repo) if User.current.allowed_to?(:manage_repository, @project)
5151

5252
- if @repository.is_a?(Repository::Xitolite) && @repository.urls_are_viewable?
5353
.git_hosting_urls

0 commit comments

Comments
 (0)