From: Christian Weiske Date: Tue, 27 Mar 2012 19:56:43 +0000 (+0200) Subject: paste list layout X-Git-Tag: v0.1.0~89 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/2df470b2376b79d67ab3f962ef6bd18adc653999 paste list layout --- 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 %} -