add a menu to pages

This commit is contained in:
boyska 2014-03-27 13:26:54 +01:00
parent be56c206b4
commit 2bd2f5813b
4 changed files with 20 additions and 2 deletions

View file

@ -2,8 +2,8 @@ HOST = 'localhost'
PORT = '8000'
WSGI_SERVER = 'wsgiref'
WSGI_SERVER_OPTIONS = {}
#WSGI_SERVER = 'gunicorn'
#WSGI_SERVER_OPTIONS = {'workers': 4, 'worker_class': 'eventlet'}
WSGI_SERVER = 'gunicorn'
WSGI_SERVER_OPTIONS = {'workers': 4 }
DEBUG = True
DB_URI = 'sqlite:///techrec.db'

View file

@ -19,6 +19,14 @@
<body class="pure-skin-porpora">
<div class="pure-menu pure-menu-open pure-menu-horizontal">
<a href="#" class="pure-menu-heading">TechRec</a>
<ul>
<li class="pure-menu-selected"><a href="new.html">Diretta</a></li>
<li><a href="old.html">Vecchie</a></li>
</ul>
</div>
<div id="rec-inizia" class="centerscreen-container"> <!-- responsive grid -->
<div class="centerscreen-inner">
<button class="pure-button pure-button-primary pure-button-enorme add-new-rec">

View file

@ -19,6 +19,15 @@
</head>
<body class="pure-skin-porpora">
<div class="pure-menu pure-menu-open pure-menu-horizontal">
<a href="#" class="pure-menu-heading">TechRec</a>
<ul>
<li><a href="new.html">Diretta</a></li>
<li class="pure-menu-selected"><a href="old.html">Vecchie</a></li>
</ul>
</div>
<div id="main">
<h1>Scarica registrazione passata</h1>
<div id="rec-normal" class="pure-g-r">

View file

@ -6,6 +6,7 @@ logger = logging.getLogger('server')
from functools import partial
from bottle import Bottle, request, static_file, redirect, abort, response
botlog = logging.getLogger('bottle')
botlog.setLevel(logging.INFO)
botlog.addHandler(logging.StreamHandler(sys.stdout))