From 56ea256123ddee86d517cc5904c6898a094cda5a Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Fri, 30 Jan 2009 17:43:07 -0500 Subject: [PATCH] Started layout work. --- cfbe.config | 1 + cfbe.py | 2 +- static/style/aal.css | 2 +- static/style/cfbe.css | 0 templates/base.html | 21 ++++++++++++++++++--- templates/list.html | 7 +++++++ 6 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 static/style/cfbe.css create mode 100644 templates/list.html diff --git a/cfbe.config b/cfbe.config index 608850b..3f12e00 100644 --- a/cfbe.config +++ b/cfbe.config @@ -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 6a9fec3..f8e1321 100755 --- 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) diff --git a/static/style/aal.css b/static/style/aal.css index a057c24..c89df72 100644 --- a/static/style/aal.css +++ b/static/style/aal.css @@ -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 index 0000000..e69de29 diff --git a/templates/base.html b/templates/base.html index 8d873f9..c496873 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,3 +1,18 @@ -{% for bug in bugs %} -

{{ bug.summary }}

-{% endfor %} \ No newline at end of file + + + + + Cherry Flavored Bugs Everywhere! + + + + + + + + {% block content %}{% endblock %} + + diff --git a/templates/list.html b/templates/list.html new file mode 100644 index 0000000..ecb7099 --- /dev/null +++ b/templates/list.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} + {% for bug in bugs %} +

{{ bug.summary }}

+ {% endfor %} +{% endblock %} \ No newline at end of file -- 2.26.2