fix filters in ItemHandler, tweak id styling
authorTero Marttila <terom@paivola.fi>
Thu, 11 Oct 2012 01:28:27 +0300
changeset 11 d1e17bd498e7
parent 10 513eb70e54f2
child 12 7ffb92a57092
fix filters in ItemHandler, tweak id styling
pvl/verkko/hosts.py
static/style.css
--- a/pvl/verkko/hosts.py	Thu Oct 11 01:25:05 2012 +0300
+++ b/pvl/verkko/hosts.py	Thu Oct 11 01:28:27 2012 +0300
@@ -118,7 +118,11 @@
         )
 
         def url (**opts) :
-            args = dict(filters)
+            args = dict()
+
+            if filters :
+                args.update(filters)
+
             args.update(opts)
 
             return self.url(**args)
@@ -147,7 +151,7 @@
             ),
             html.tbody(
                 html.tr(class_=('alternate' if i % 2 else None), id=host.id)(
-                    html.td(class_='id')(
+                    html.th(
                         html.a(href=self.url(ItemHandler, id=host.id))(
                             '#' #host['rowid'])
                         )
--- a/static/style.css	Thu Oct 11 01:25:05 2012 +0300
+++ b/static/style.css	Thu Oct 11 01:28:27 2012 +0300
@@ -93,6 +93,7 @@
     background-color: #F5F3B8;
 }
 
+/* Cells */
 td, th
 {
     border: thin solid #ffffff;
@@ -106,6 +107,11 @@
     display: block;
 }
 
+th
+{
+    text-align: center;
+}
+
 td.row-header
 {
     text-align: right;