<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>
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