Commit a14b5f6abcae3989259ec8ecea2e186053168740
- static/css/style.css 2 --
- templates/show_entries.html 4 --++
- Diff rendering mode:
- inline
- side by side
static/css/style.css
6 | 6 | ||
---|---|---|---|
7 | .page { margin: 2em auto; width: 35em; border: 5px solid #ccc; | 7 | .page { margin: 2em auto; width: 35em; border: 5px solid #ccc; |
8 | padding: 0.8em; background: white; } | 8 | padding: 0.8em; background: white; } |
9 | |||
10 | .entries li { margin: 0.8em 1.2em; word-wrap: break-word; } | 9 | .entries li { margin: 0.8em 1.2em; word-wrap: break-word; } |
11 | |||
12 | .add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; } | 10 | .add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; } |
13 | .add-entry dl { font-weight: bold; } | 11 | .add-entry dl { font-weight: bold; } |
14 | .metanav { text-align: right; font-size: 0.8em; padding: 0.3em; | 12 | .metanav { text-align: right; font-size: 0.8em; padding: 0.3em; |
templates/show_entries.html
1 | {% extends "layout.html" %} | 1 | {% extends "layout.html" %} |
---|---|---|---|
2 | {% block body %} | 2 | {% block body %} |
3 | 3 | <ul class="entries unstyled"> | |
4 | {% if entries|len > 0 %} | 4 | {% if entries|len > 0 %} |
5 | {% for entry in entries %} | 5 | {% for entry in entries %} |
6 | {% if entry.who %} | 6 | {% if entry.who %} |
… | … | ||
8 | @<b>{{ entry.who }}</b> | 8 | @<b>{{ entry.who }}</b> |
9 | <b>#{{ entry.what }}</b> /{{ entry.where }} {{ entry.how|safe }} | 9 | <b>#{{ entry.what }}</b> /{{ entry.where }} {{ entry.how|safe }} |
10 | {% if entry.created|len > 0 %} | 10 | {% if entry.created|len > 0 %} |
11 | 11 | <small>created: {{entry.created }} UTC</small> | |
12 | {% endif %} | 12 | {% endif %} |
13 | <a class="pull-right" href={{ "/posts/" + entry.id }}> | 13 | <a class="pull-right" href={{ "/posts/" + entry.id }}> |
14 | <i class="icon-share-alt"></i> | 14 | <i class="icon-share-alt"></i> |