summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/settings/_repository.rhtml8
-rw-r--r--config/locales/en.yml2
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/projects/settings/_repository.rhtml b/app/views/projects/settings/_repository.rhtml
index 864626809..113930b8b 100644
--- a/app/views/projects/settings/_repository.rhtml
+++ b/app/views/projects/settings/_repository.rhtml
@@ -8,10 +8,16 @@
<div class="box tabular">
<p>
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
+<% if @repository %>
+<br />
+<%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
+<%= l(:text_scm_command) -%>: <%= @repository.class.scm_command -%>,
+<%= l(:text_scm_version) -%>: <%= @repository.class.scm_version_string %>
+<% end %>
</p>
<% button_disabled = true %>
<% if @repository %>
-<% button_disabled = false %>
+<% button_disabled = ! @repository.class.scm_available %>
<%= repository_field_tags(f, @repository)%>
<% end %>
</div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f441b5bcd..57036f6ad 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -943,6 +943,8 @@ en:
text_scm_path_encoding_note: "Default: UTF-8"
text_git_repository_note: "Bare and local repository (e.g. /gitrepo, c:\gitrepo)"
text_mercurial_repository_note: "Local repository (e.g. /hgrepo, c:\hgrepo)"
+ text_scm_command: Command
+ text_scm_version: Version
default_role_manager: Manager
default_role_developer: Developer