Skip to content

Commit

Permalink
Add feature : #426
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 7, 2015
1 parent 65f1318 commit 292f0b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/repositories/_sidebar.html.haml
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/views/repositories/git_instructions.html.haml
Expand Up @@ -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
Expand Down

0 comments on commit 292f0b7

Please sign in to comment.