]> source.dussan.org Git - redmine.git/commitdiff
Slight UI changes (#4273).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 May 2011 11:59:16 +0000 (11:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 May 2011 11:59:16 +0000 (11:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5960 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/settings/_repository.rhtml
app/views/settings/_repositories.rhtml
public/stylesheets/application.css

index b91078645d90ffe1e1e9e0cf195178fc1588930b..3bd3b4338455433d807d9da8c8d722af6b74beb4 100644 (file)
@@ -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 %>
index 4406d2c2ad83c46a056eb3e946eef20faa719904..b3c252f1680a401c811a673f9c67ba35f2420072 100644 (file)
@@ -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>
     <% 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>
@@ -33,8 +29,6 @@
               :style => "vertical-align:bottom;"
            )
            %>
-       </td>
-       <td>
           <%= scm_class.scm_command %>
        </td>
        <td>
index 0b6cc755e1c41f6a250b6b56735a9497d068ef1d..d74cba136ab8a7ba4be7c41d45dfc0375396540f 100644 (file)
@@ -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; }
@@ -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; }