tweak layout slightly
authorTero Marttila <terom@fixme.fi>
Mon, 09 Feb 2009 06:04:27 +0200
changeset 56 69494e4a5ecc
parent 55 5667d2bbdc50
child 57 e123721e4b34
tweak layout slightly
handlers.py
static/irclogs.css
templates/channel.tmpl
templates/channel_date.tmpl
templates/channel_view.tmpl
--- a/handlers.py	Mon Feb 09 05:44:29 2009 +0200
+++ b/handlers.py	Mon Feb 09 06:04:27 2009 +0200
@@ -64,6 +64,9 @@
 #        return http.Response('\n'.join(str(channel.source.get_latest(count))), 'text/plain')
          pass
 
+    elif format == 'html' :
+        pass
+
     else :
         raise http.ResponseError("Unknown filetype %r" % format)
 
--- a/static/irclogs.css	Mon Feb 09 05:44:29 2009 +0200
+++ b/static/irclogs.css	Mon Feb 09 06:04:27 2009 +0200
@@ -46,6 +46,10 @@
     font-weight: bold;
 }
 
+#menu li.join-left {
+    border-left: none;
+}
+
 #menu li a,
 #menu li form {
     height: 1.5em;
@@ -128,6 +132,12 @@
 /*
  * General
  */
+/* Channel view */
+div#title {
+    text-align: center;
+    text-size: xx-large;
+    font-weight: bold;
+}
 
 /* Calendar */
 table.calendar {
--- a/templates/channel.tmpl	Mon Feb 09 05:44:29 2009 +0200
+++ b/templates/channel.tmpl	Mon Feb 09 06:04:27 2009 +0200
@@ -5,9 +5,9 @@
     <li><a href="${urls.index.build(req)}">Home</a></li>
 
     <li>
+        <a href="${urls.channel_view.build(req, channel=channel)}">Channel:</a>
+    </li><li class="join-left">
         <form action="${urls.channel_select.build(req)}" method="GET">
-            <label for="channel">Channel:</label>
-
             <select name="channel">
             % for ch in channel_list :
                 <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
@@ -17,9 +17,9 @@
     </li>
 
     <li>
+        <a href="${urls.channel_view.build(req, channel=channel, count=count)}">View last:</a>
+    </li><li class="join-left">
         <form action="" method="GET">
-            View last
-
             <select name="count">
             % for cc in (10, 20, 50, 100, 'all') :
                 <option${' selected="selected"' if cc == count else ''}>${cc}</option>
--- a/templates/channel_date.tmpl	Mon Feb 09 05:44:29 2009 +0200
+++ b/templates/channel_date.tmpl	Mon Feb 09 06:04:27 2009 +0200
@@ -1,6 +1,6 @@
 <%inherit file="channel.tmpl" />
 
-<h1>${channel.title} &raquo; Logs for ${h.fmt_date(date)}</h1>
+<div id="title">${channel.title} :: Logs for ${h.fmt_date(date)}</div>
 
 % for line in lines :
 ${line}\
--- a/templates/channel_view.tmpl	Mon Feb 09 05:44:29 2009 +0200
+++ b/templates/channel_view.tmpl	Mon Feb 09 06:04:27 2009 +0200
@@ -1,6 +1,6 @@
 <%inherit file="channel.tmpl" />
 
-<h1>${channel.title} &raquo; Last ${count} lines</h1>
+<div id="title">${channel.title} :: Last ${count} lines</div>
 
 % for line in lines :
 ${line}