Skip to content

Commit

Permalink
Display Rugged infos in Config test tab
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 6, 2015
1 parent bef8370 commit 87fe2eb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@
%td
%span{ class: 'label label-success' }= RedmineGitHosting::Config.gitolite_repository_count

%tr
%td= l(:label_gitolite_rugged_features)
%td
- RedmineGitHosting::Config.rugged_features.each do |feature|
%span{ class: 'label label-success' }= feature

%tr
%td= l(:label_gitolite_libgit2_version)
%td
%span{ class: 'label label-success' }= RedmineGitHosting::Config.libgit2_version

%p
%label= l(:label_gitolite_banner)

Expand Down
2 changes: 2 additions & 0 deletions config/locales/settings/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ en:
label_redmine_user: Redmine username
label_git_version: Git version
label_gitolite_repository_count: Count of physical repositories in Gitolite
label_gitolite_rugged_features: Rugged compiled features
label_gitolite_libgit2_version: libgit2 version

# Recycle Bin
label_tab_gitolite_recycle_bin: Recycle Bin
Expand Down
2 changes: 2 additions & 0 deletions config/locales/settings/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ fr:
label_redmine_user: Nom d'utilisateur Redmine
label_git_version: Version de Git
label_gitolite_repository_count: Nombre de dépôts physiques dans Gitolite
label_gitolite_rugged_features: Fonctionnalités compilées dans Rugged
label_gitolite_libgit2_version: Version de libgit2

# Recycle Bin
label_tab_gitolite_recycle_bin: Corbeille
Expand Down
10 changes: 10 additions & 0 deletions lib/redmine_git_hosting/config/gitolite_infos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ def included(receiver)

module ClassMethods

def rugged_features
Rugged.features
end


def libgit2_version
Rugged.libgit2_version.join('.')
end


def gitolite_infos
begin
RedmineGitHosting::Commands.gitolite_infos
Expand Down

0 comments on commit 87fe2eb

Please sign in to comment.