From 59b7f1533f4be93139afc340355a166dc0dbdbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Thu, 6 Jun 2013 11:35:03 +0200 Subject: [PATCH] Modified to respond to tyedye instead of app --- app.py | 28 ++++++++++++++-------------- views/layout.html | 12 ------------ views/player.html | 2 +- views/sidebar.html | 8 ++++---- views/statistics.html | 4 ++-- views/summary.html | 2 +- 6 files changed, 22 insertions(+), 34 deletions(-) diff --git a/app.py b/app.py index f2d9dcc..8248ca0 100644 --- a/app.py +++ b/app.py @@ -12,20 +12,20 @@ render = web.template.render('views/') db = web.database(dbn = 'sqlite', db = 'game.db') urls = ( - '/app', 'summary', - '/app/', 'summary', - '/app/stats', 'statistics', - '/app/stats/', 'statistics', - '/app/stats/add', 'stat_add', - '/app/stats/remove/(.+)', 'remove_stat', - '/app/stats/edit/(.+)', 'edit_stat', - '/app/register', 'register', - '/app/register/', 'register', - '/app/player/(.+)', 'player', - '/app/player_remove/(.+)', 'remove_player', - '/app/player_edit/(.+)', 'edit_player', - '/app/config', 'config', - '/app/config/', 'config', + '/tyedye', 'summary', + '/tyedye/', 'summary', + '/tyedye/stats', 'statistics', + '/tyedye/stats/', 'statistics', + '/tyedye/stats/add', 'stat_add', + '/tyedye/stats/remove/(.+)', 'remove_stat', + '/tyedye/stats/edit/(.+)', 'edit_stat', + '/tyedye/register', 'register', + '/tyedye/register/', 'register', + '/tyedye/player/(.+)', 'player', + '/tyedye/player_remove/(.+)', 'remove_player', + '/tyedye/player_edit/(.+)', 'edit_player', + '/tyedye/config', 'config', + '/tyedye/config/', 'config', '/query/(.+)', 'query', ) diff --git a/views/layout.html b/views/layout.html index 44f1e52..5a573de 100644 --- a/views/layout.html +++ b/views/layout.html @@ -85,18 +85,6 @@ $def with (main_block, sidebar_block, game_name) ================================================== --> - - - - - - - - - - - - diff --git a/views/player.html b/views/player.html index 91a147b..9497641 100644 --- a/views/player.html +++ b/views/player.html @@ -8,4 +8,4 @@ $for stat in stats:
  • $stat: $stats[stat]
  • $if edit_links: -

    [edit] [remove]

    +

    [edit] [remove]

    diff --git a/views/sidebar.html b/views/sidebar.html index 277a6a9..bda22dc 100644 --- a/views/sidebar.html +++ b/views/sidebar.html @@ -1,7 +1,7 @@ diff --git a/views/statistics.html b/views/statistics.html index 95a0b06..2d2860f 100644 --- a/views/statistics.html +++ b/views/statistics.html @@ -4,8 +4,8 @@ $for stat in stats:
    $stat.name
    (default: $stat.default_value)
    - - + +
    diff --git a/views/summary.html b/views/summary.html index ddbc2dc..2262a3c 100644 --- a/views/summary.html +++ b/views/summary.html @@ -5,5 +5,5 @@ $def with (game_name, player_num, stats_num, player_list)

    Player list: