diff --git a/oyster/templates/base.html b/oyster/templates/base.html index 5a402af..dd17f28 100644 --- a/oyster/templates/base.html +++ b/oyster/templates/base.html @@ -13,6 +13,7 @@ table { border-spacing: 0px; margin-top: 20px; } th { border-bottom: 2px solid black; } a.button { padding: 0.5em 1em 0.5em 1em; border: 2px solid black; font-weight: bold; } + tbody tr.error td { background-color: #ff99a9 } /* div.heading { border-bottom: 3px solid white; } */ diff --git a/oyster/templates/logs.html b/oyster/templates/logs.html index f8d7eaf..e3c2cbe 100644 --- a/oyster/templates/logs.html +++ b/oyster/templates/logs.html @@ -6,8 +6,8 @@ Oyster Logs {% block body %} -
-{% if prev_offset %} +
+{% if offset %} « Prev {% endif %}   @@ -22,17 +22,17 @@ Oyster Logs
- + {% for log in logs %} - - + + {% endfor %}
    action description timestamp 
{% if log.error %}{{log.error}}{% endif %}{{log.action}} {{log.url}} {{log.timestamp}}{% if log.error %}{{log.error}}{% endif %}
diff --git a/oyster/web.py b/oyster/web.py index f46d754..12c0ffb 100644 --- a/oyster/web.py +++ b/oyster/web.py @@ -39,7 +39,8 @@ def log_view(): logs = client.db.logs.find().sort('$natural', -1).skip(offset).limit(size) return flask.render_template('logs.html', logs=logs, prev_offset=prev_offset, - next_offset=next_offset) + next_offset=next_offset, + offset=offset) @app.route('/tracked/')