<p>
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
<% if @repository && ! @repository.class.scm_available %>
-<br />
-<%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
-<%= l(:text_scm_command_not_available) %>
+ <br />
+ <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em>
<% end %>
</p>
<% button_disabled = true %>
<legend><%= l(:setting_enabled_scm) %></legend>
<table>
<tr>
- <th></th>
- <th></th>
<th></th>
<th><%= l(:text_scm_command) %></th>
<th><%= l(:text_scm_command_version) %></th>
<% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
<% setting = :enabled_scm %>
<tr>
- <td>
+ <td class="scm_name">
<%=
check_box_tag(
"settings[#{setting}][]",
value,
Setting.send(setting).include?(value))
%>
- </td>
- <td class="scm_name">
<%= text.to_s %>
</td>
<td>
:style => "vertical-align:bottom;"
)
%>
- </td>
- <td>
<%= scm_class.scm_command %>
</td>
<td>
.tabular.settings label{ margin-left: -300px; width: 295px; }
.tabular.settings textarea { width: 99%; }
+.tabular.settings.enabled_scm table {width:100%}
.tabular.settings.enabled_scm td.scm_name{ font-weight: bold; }
-.tabular.settings.enabled_scm p.scm_config{ padding-left: 8px; }
+.tabular.settings.enabled_scm p.scm_config{ padding-left: 8px; font-style:italic;}
fieldset.settings label { display: block; }
fieldset#notified_events .parent { padding-left: 20px; }
color: #A6750C;
}
+span.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;}
+
#errorExplanation ul { font-size: 0.9em;}
#errorExplanation h2, #errorExplanation p { display: none; }