show a message only if scm command is not available.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5955
e93f8b46-1217-0410-a6f0-
8f06a7374b81
<div class="box tabular">
<p>
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
-<% if @repository %>
+<% if @repository && ! @repository.class.scm_available %>
<br />
<%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
-<%= l(:text_scm_command) -%>: <%= @repository.class.scm_command %>
-|
-<%= l(:text_scm_command_version) -%>: <%= @repository.class.scm_version_string %>
+<%= l(:text_scm_command_not_available) %>
<% end %>
</p>
<% button_disabled = true %>
text_scm_command: Command
text_scm_command_version: Version
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
default_role_manager: Manager
default_role_developer: Developer