diff --git a/app/views/projects/settings/_repository.rhtml b/app/views/projects/settings/_repository.rhtml index 57406a8ba..b91078645 100644 --- a/app/views/projects/settings/_repository.rhtml +++ b/app/views/projects/settings/_repository.rhtml @@ -8,12 +8,10 @@

<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> -<% if @repository %> +<% if @repository && ! @repository.class.scm_available %>
<%= 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 %>

<% button_disabled = true %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 64587aaae..401d608c8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -947,6 +947,7 @@ en: 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