]> source.dussan.org Git - redmine.git/commitdiff
scm: remove scm command and version on project setting (#4273).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 29 May 2011 10:56:49 +0000 (10:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 29 May 2011 10:56:49 +0000 (10:56 +0000)
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

app/views/projects/settings/_repository.rhtml
config/locales/en.yml

index 57406a8baccae9f927eb244f6c262a4c557e8fac..b91078645d90ffe1e1e9e0cf195178fc1588930b 100644 (file)
@@ -8,12 +8,10 @@
 <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 %>
index 64587aaae26e8a077b57323f51c447976668837b..401d608c8194890dd64d4b0ed5753c5b84ca4022 100644 (file)
@@ -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