From: Toshi MARUYAMA Date: Sun, 29 May 2011 10:56:49 +0000 (+0000) Subject: scm: remove scm command and version on project setting (#4273). X-Git-Tag: 1.3.0~1901 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3720d7f6f22967c59576a7b2a709e709cb148f99;p=redmine.git scm: remove scm command and version on project setting (#4273). 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 --- 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