Started layout work.
authorSteve Losh <steve@stevelosh.com>
Fri, 30 Jan 2009 22:43:07 +0000 (17:43 -0500)
committerSteve Losh <steve@stevelosh.com>
Fri, 30 Jan 2009 22:43:07 +0000 (17:43 -0500)
cfbe.config
cfbe.py
static/style/aal.css
static/style/cfbe.css [new file with mode: 0644]
templates/base.html
templates/list.html [new file with mode: 0644]

index 608850b23e2a52561c1110bb903f09d542daf5bb..3f12e008292c15559bfc9e46527d279cf501a703 100644 (file)
@@ -1,4 +1,5 @@
 [global]
+server.socket_port = 8080
 server.thread_pool = 10
 tools.sessions.on = True
 tools.staticdir.root = "/Users/sjl/Documents/cherryflavoredbugseverywhere/static"
diff --git a/cfbe.py b/cfbe.py
index 6a9fec3793ab72240a67f53104c250b49a96393c..f8e132113b7054161311b045c405698b05aafeb6 100755 (executable)
--- a/cfbe.py
+++ b/cfbe.py
@@ -16,7 +16,7 @@ class WebInterface:
     
     @cherrypy.expose
     def index(self):
-        template = env.get_template('base.html')
+        template = env.get_template('list.html')
         return template.render(bugs=bd)
     
 
index a057c2468c97d1e58cf8af432c0ed552a2e52c23..c89df72d6004b0bd9e41b8e58c7288b4c8133cff 100644 (file)
@@ -25,7 +25,7 @@ blockquote:before,blockquote:after,q:before,q:after {content: ''; content: none;
 header, nav, section, article, aside, footer {display: block;}
 
 /* Basic styles */
-body {background: #fff; color: #000; font: .75em/1.5em Helvetica, Arial, "Liberation Sans", "Bitstream Vera Sans", sans-serif;}
+body {background: #fff; color: #000; font: .75em/1.5em "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Bitstream Vera Sans", sans-serif;}
 html>body {font-size: 14px;}
 
 img {display: inline-block; vertical-align: bottom;}
diff --git a/static/style/cfbe.css b/static/style/cfbe.css
new file mode 100644 (file)
index 0000000..e69de29
index 8d873f9f20c353594caf4fd7ab9df9e2de015e0f..c496873c2b4e7f204ff2e1bf83dfe7b2aae45e97 100644 (file)
@@ -1,3 +1,18 @@
-{% for bug in bugs %}
-    <p>{{ bug.summary }}</p>
-{% endfor %}
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html>
+    <head>
+        <title>Cherry Flavored Bugs Everywhere!</title>
+        <link rel="stylesheet" type="text/css" media="screen" 
+              href="/static/style/aal.css" />
+        <link rel="stylesheet" type="text/css" media="screen"
+              href="/static/style/cfbe.css" />
+    </head>
+    
+    <body>
+        <div id="logo"><p>Cherry Flavored Bugs Everywhere!</p></div>
+        <div id="header"><h1>stevelosh</h1></div>
+        {% block content %}{% endblock %}
+    </body>
+</html>
diff --git a/templates/list.html b/templates/list.html
new file mode 100644 (file)
index 0000000..ecb7099
--- /dev/null
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+
+{% block content %}
+    {% for bug in bugs %}
+        <p>{{ bug.summary }}</p>
+    {% endfor %}
+{% endblock %}
\ No newline at end of file