]> source.dussan.org Git - redmine.git/commitdiff
Remove some inline styling and some depreciated table cell attributes and replace...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Mar 2012 00:02:49 +0000 (00:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Mar 2012 00:02:49 +0000 (00:02 +0000)
Contributed by Andrew Smith.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9252 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/queries/_columns.html.erb
public/stylesheets/application.css

index a996aa34c5ecdf76e8ea0949620e89bab3b5d487..7c1f8d5ab5f586b2eeb4e9300d02156134c41967 100644 (file)
@@ -1,4 +1,4 @@
-<table style="border-collapse: collapse; border:0;">
+<table class="query-columns">
   <tr>
     <td style="padding-left:0">
       <%= label_tag "available_columns", l(:description_available_columns) %>
@@ -8,7 +8,7 @@
               :multiple => true, :size => 10, :style => "width:150px",
               :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %>
     </td>
-    <td align="center" valign="middle">
+    <td class="buttons">
       <input type="button" value="&#8594;"
        onclick="moveOptions(this.form.available_columns, this.form.selected_columns);" /><br />
       <input type="button" value="&#8592;"
@@ -22,7 +22,7 @@
               :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px",
               :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);" %>
     </td>
-    <td align="center" valign="middle">
+    <td class="buttons">
       <input type="button" value="&#8593;" onclick="moveOptionUp(this.form.selected_columns);" /><br />
       <input type="button" value="&#8595;" onclick="moveOptionDown(this.form.selected_columns);" />
     </td>
index f73cbc666ca00866bae1ac36a3abbaf9f329c217..937a69a831791dd0d266c1c6faec649afd754e50 100644 (file)
@@ -239,6 +239,16 @@ table.attributes td { vertical-align: top; }
 
 table.boards a.board, h3.comments { background: url(../images/comment.png) no-repeat 0% 50%; padding-left: 20px; }
 
+table.query-columns {
+    border-collapse: collapse;
+    border: 0;
+}
+
+table.query-columns td.buttons {
+    vertical-align: middle;
+    text-align: center;
+}
+
 td.center {text-align:center;}
 
 h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; }