RPAC: Remove one formatting row from results
authorDan Scott <dscott@laurentian.ca>
Mon, 12 Dec 2011 05:29:47 +0000 (00:29 -0500)
committerDan Scott <dscott@laurentian.ca>
Mon, 12 Dec 2011 05:29:47 +0000 (00:29 -0500)
One of the table rows was being inserted into every result simply to
provide a border that is better handled via CSS on the existing useful
elements. Begone.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/web/css/skin/default/opac/style.css

index 07c7ae9..ce786fd 100644 (file)
@@ -25,8 +25,8 @@
                     [%  FOR rec IN ctx.records;
                             attrs = {marc_xml => rec.marc_xml};
                             PROCESS get_marc_attrs args=attrs %]
-                        <tr>
-                            <td class='result_table_row' align='left' width='100%'>
+                        <tr class="result_table_row">
+                            <td class="result_table_row" align='left' width='100%'>
                                 <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
                                     <tbody class='result_table_subtbody'>
                                         <tr name='counts_row'>
                                             </td>
                                         </tr>
                                         [%- END %]
-                                        <tr><td colspan="5"><div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div></td></tr>
                                     </tbody>
                                 </table>
                             </td>
index 965fc0c..cf1bcd2 100644 (file)
@@ -702,11 +702,18 @@ div.format_icon {
        margin-top: 1em;
 }
 
+tr.result_table_row td.result_table_row {
+    border-bottom:1px solid #d4d4d4;
+}
+
 .result_numbers {
        font-size: 11px; padding-left:15px; white-space: nowrap; width: 320px;
 }
 
-.result_table_subtable { width: 100%; border-collapse: collapse; border: 0; }
+.result_table_subtable {
+    width: 100%;
+    padding-top: 1em;
+}