From 2df470b2376b79d67ab3f962ef6bd18adc653999 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 27 Mar 2012 21:56:43 +0200 Subject: [PATCH] paste list layout --- data/templates/base.htm | 2 +- data/templates/display.htm | 8 +++++++- data/templates/list.htm | 9 ++++++--- 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 @@ - + {% block title %}{% endblock %} - Phorkie 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 %}

{{repo.getDescription}}

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 %} -