aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-03-27 21:56:43 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-03-27 21:56:43 +0200
commit2df470b2376b79d67ab3f962ef6bd18adc653999 (patch)
tree298c883c8cc9eb3d65f49e77e39db4aead58bec0 /data
parent271df87bc8c768167889902c455d3c7dfc0f155b (diff)
downloadphorkie-2df470b2376b79d67ab3f962ef6bd18adc653999.tar.gz
phorkie-2df470b2376b79d67ab3f962ef6bd18adc653999.zip
paste list layout
Diffstat (limited to 'data')
-rw-r--r--data/templates/base.htm2
-rw-r--r--data/templates/display.htm8
-rw-r--r--data/templates/list.htm9
3 files changed, 14 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">