Skip to content

Commit

Permalink
Slight UI changes (#4273).
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5960 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed May 29, 2011
1 parent a3df0f7 commit 3e3c233
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
5 changes: 2 additions & 3 deletions app/views/projects/settings/_repository.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
<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 %>
Expand Down
8 changes: 1 addition & 7 deletions app/views/settings/_repositories.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<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>
Expand All @@ -15,15 +13,13 @@
<% 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>
Expand All @@ -33,8 +29,6 @@
:style => "vertical-align:bottom;"
)
%>
</td>
<td>
<%= scm_class.scm_command %>
</td>
<td>
Expand Down
5 changes: 4 additions & 1 deletion public/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ input#time_entry_comments { width: 90%;}
.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; }
Expand Down Expand Up @@ -508,6 +509,8 @@ div.flash.warning {
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; }

Expand Down

0 comments on commit 3e3c233

Please sign in to comment.