diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-03-27 21:56:43 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-03-27 21:56:43 +0200 |
| commit | 2df470b2376b79d67ab3f962ef6bd18adc653999 (patch) | |
| tree | 298c883c8cc9eb3d65f49e77e39db4aead58bec0 | |
| parent | 271df87bc8c768167889902c455d3c7dfc0f155b (diff) | |
| download | phorkie-2df470b2376b79d67ab3f962ef6bd18adc653999.tar.gz phorkie-2df470b2376b79d67ab3f962ef6bd18adc653999.zip | |
paste list layout
| -rw-r--r-- | data/templates/base.htm | 2 | ||||
| -rw-r--r-- | data/templates/display.htm | 8 | ||||
| -rw-r--r-- | data/templates/list.htm | 9 | ||||
| -rw-r--r-- | www/phorkie.css | 3 |
4 files changed, 17 insertions, 5 deletions
diff --git a/data/templates/base.htm b/data/templates/base.htm index aaf61da..bebc909 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -2,7 +2,7 @@ <html> <head> <link rel="stylesheet" href="{{css}}"/> - <link rel="stylesheet" href="phorkie.css" /> + <link rel="stylesheet" href="/phorkie.css" /> <title>{% block title %}{% endblock %} - Phorkie</title> </head> <body> diff --git a/data/templates/display.htm b/data/templates/display.htm index cabff59..ef2dccf 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -1,5 +1,11 @@ {% extends "base.htm" %} -{% block title %}{{description}}{% endblock %} +{% block title %} + {%if repo.getDescription %} + {{repo.getDescription}} + {%else%} + {{repo.id}} + {%endif%} +{% endblock %} {% block content %} <h1>{{repo.getDescription}}</h1> diff --git a/data/templates/list.htm b/data/templates/list.htm index ea71bd6..4e2e4a6 100644 --- a/data/templates/list.htm +++ b/data/templates/list.htm @@ -2,14 +2,17 @@ {% block title %}List of all pastes{% endblock %} {% block content %} -<ul class="list"> +<ul class="nav nav-pills nav-stacked"> {% for repo in repos %} <li> - <h2><a href="{{repo.getLink('display')}}">{{repo.id}}</a></h2> - <p>{{repo.getDescription}}</p> + <a href="{{repo.getLink('display')}}"> + {{repo.id}} + {{repo.getDescription}} + </a> </li> {% endfor %} </ul> + <ul class="pager"> {% if links.prev %} <li class="previous"> diff --git a/www/phorkie.css b/www/phorkie.css index fe41780..34ada5d 100644 --- a/www/phorkie.css +++ b/www/phorkie.css @@ -41,4 +41,7 @@ a.anchorlink { } .file .code { margin-left: 2em; +} +ul.pager { + margin-top: 2ex; }
\ No newline at end of file |
