[global]
+server.socket_port = 8080
server.thread_pool = 10
tools.sessions.on = True
tools.staticdir.root = "/Users/sjl/Documents/cherryflavoredbugseverywhere/static"
@cherrypy.expose
def index(self):
- template = env.get_template('base.html')
+ template = env.get_template('list.html')
return template.render(bugs=bd)
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;}
-{% 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>
--- /dev/null
+{% extends "base.html" %}
+
+{% block content %}
+ {% for bug in bugs %}
+ <p>{{ bug.summary }}</p>
+ {% endfor %}
+{% endblock %}
\ No newline at end of file