@@ -1,5 +1,53 | |||||
1 | <% form_tag({:action => 'edit', :tab => 'repositories'}) do %> |
|
1 | <% form_tag({:action => 'edit', :tab => 'repositories'}) do %> | |
2 |
|
2 | |||
|
3 | <fieldset class="box tabular settings enabled_scm"> | |||
|
4 | <legend><%= l(:setting_enabled_scm) %></legend> | |||
|
5 | <table> | |||
|
6 | <tr> | |||
|
7 | <th></th> | |||
|
8 | <th></th> | |||
|
9 | <th></th> | |||
|
10 | <th><%= l(:text_scm_command) %></th> | |||
|
11 | <th><%= l(:text_scm_command_version) %></th> | |||
|
12 | </tr> | |||
|
13 | <% Redmine::Scm::Base.all.collect do |choice| %> | |||
|
14 | <% scm_class = "Repository::#{choice}".constantize %> | |||
|
15 | <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> | |||
|
16 | <% setting = :enabled_scm %> | |||
|
17 | <tr> | |||
|
18 | <td> | |||
|
19 | <%= | |||
|
20 | check_box_tag( | |||
|
21 | "settings[#{setting}][]", | |||
|
22 | value, | |||
|
23 | Setting.send(setting).include?(value)) | |||
|
24 | %> | |||
|
25 | </td> | |||
|
26 | <td class="scm_name"> | |||
|
27 | <%= text.to_s %> | |||
|
28 | </td> | |||
|
29 | <td> | |||
|
30 | <%= | |||
|
31 | image_tag( | |||
|
32 | (scm_class.scm_available ? 'true.png' : 'exclamation.png'), | |||
|
33 | :style => "vertical-align:bottom;" | |||
|
34 | ) | |||
|
35 | %> | |||
|
36 | </td> | |||
|
37 | <td> | |||
|
38 | <%= scm_class.scm_command %> | |||
|
39 | </td> | |||
|
40 | <td> | |||
|
41 | <%= scm_class.scm_version_string %> | |||
|
42 | </td> | |||
|
43 | </tr> | |||
|
44 | <% end %> | |||
|
45 | </table> | |||
|
46 | <p class="scm_config"> | |||
|
47 | <%= l(:text_scm_config) %> | |||
|
48 | </p> | |||
|
49 | </fieldset> | |||
|
50 | ||||
3 | <div class="box tabular settings"> |
|
51 | <div class="box tabular settings"> | |
4 | <p><%= setting_check_box :autofetch_changesets %></p> |
|
52 | <p><%= setting_check_box :autofetch_changesets %></p> | |
5 |
|
53 | |||
@@ -16,8 +64,6 | |||||
16 | "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %> |
|
64 | "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %> | |
17 | </p> |
|
65 | </p> | |
18 |
|
66 | |||
19 | <p><%= setting_multiselect(:enabled_scm, Redmine::Scm::Base.all) %></p> |
|
|||
20 |
|
||||
21 | <p><%= setting_text_field :repositories_encodings, :size => 60 %><br /> |
|
67 | <p><%= setting_text_field :repositories_encodings, :size => 60 %><br /> | |
22 | <em><%= l(:text_comma_separated) %></em></p> |
|
68 | <em><%= l(:text_comma_separated) %></em></p> | |
23 |
|
69 |
@@ -946,6 +946,7 en: | |||||
946 | text_mercurial_repository_note: "Local repository (e.g. /hgrepo, c:\hgrepo)" |
|
946 | text_mercurial_repository_note: "Local repository (e.g. /hgrepo, c:\hgrepo)" | |
947 | text_scm_command: Command |
|
947 | text_scm_command: Command | |
948 | text_scm_command_version: Version |
|
948 | text_scm_command_version: Version | |
|
949 | text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it. | |||
949 |
|
950 | |||
950 | default_role_manager: Manager |
|
951 | default_role_manager: Manager | |
951 | default_role_developer: Developer |
|
952 | default_role_developer: Developer |
@@ -434,6 +434,9 input#time_entry_comments { width: 90%;} | |||||
434 | .tabular.settings label{ margin-left: -300px; width: 295px; } |
|
434 | .tabular.settings label{ margin-left: -300px; width: 295px; } | |
435 | .tabular.settings textarea { width: 99%; } |
|
435 | .tabular.settings textarea { width: 99%; } | |
436 |
|
436 | |||
|
437 | .tabular.settings.enabled_scm td.scm_name{ font-weight: bold; } | |||
|
438 | .tabular.settings.enabled_scm p.scm_config{ padding-left: 8px; } | |||
|
439 | ||||
437 | fieldset.settings label { display: block; } |
|
440 | fieldset.settings label { display: block; } | |
438 | fieldset#notified_events .parent { padding-left: 20px; } |
|
441 | fieldset#notified_events .parent { padding-left: 20px; } | |
439 |
|
442 |
General Comments 0
You need to be logged in to leave comments.
Login now