diff options
-rw-r--r-- | cfbe.config | 1 | ||||
-rwxr-xr-x | cfbe.py | 2 | ||||
-rw-r--r-- | static/style/aal.css | 2 | ||||
-rw-r--r-- | static/style/cfbe.css | 0 | ||||
-rw-r--r-- | templates/base.html | 21 | ||||
-rw-r--r-- | templates/list.html | 7 |
6 files changed, 28 insertions, 5 deletions
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" @@ -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 --- /dev/null +++ b/static/style/cfbe.css 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 %} - <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 index 0000000..ecb7099 --- /dev/null +++ b/templates/list.html @@ -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 |