paste list layout
authorChristian Weiske <cweiske@cweiske.de>
Tue, 27 Mar 2012 19:56:43 +0000 (21:56 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 27 Mar 2012 19:56:43 +0000 (21:56 +0200)
data/templates/base.htm
data/templates/display.htm
data/templates/list.htm
www/phorkie.css

index aaf61da6745de79c5e333e6ecdd4eecbadfc6f00..bebc9099aa13e9e727094975e8b6a6fe086bc3ed 100644 (file)
@@ -2,7 +2,7 @@
 <html>
  <head>
   <link rel="stylesheet" href="{{css}}"/>
 <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>
   <title>{% block title %}{% endblock %} - Phorkie</title>
  </head>
  <body>
index cabff593b883e602ecba6d7abb0c50d54408687b..ef2dccff2f6b5a77bc8f40d9a01173a5c905e62c 100644 (file)
@@ -1,5 +1,11 @@
 {% extends "base.htm" %}
 {% 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>
 
 {% block content %}
 <h1>{{repo.getDescription}}</h1>
index ea71bd65fdea92686b201dfeb911d88ac326daf1..4e2e4a677f847d17440c431e0dfabc642b5853e1 100644 (file)
@@ -2,14 +2,17 @@
 {% block title %}List of all pastes{% endblock %}
 
 {% block content %}
 {% block title %}List of all pastes{% endblock %}
 
 {% block content %}
-<ul class="list">
+<ul class="nav nav-pills nav-stacked">
 {% for repo in repos %}
  <li>
 {% 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>
  </li>
 {% endfor %}
 </ul>
+
 <ul class="pager">
  {% if links.prev %}
  <li class="previous">
 <ul class="pager">
  {% if links.prev %}
  <li class="previous">
index fe41780e3720aedc535dccf2252aa851e41cf742..34ada5d11cf56ff532062a92ed97cc48c7fc255c 100644 (file)
@@ -41,4 +41,7 @@ a.anchorlink {
 }
 .file .code {
     margin-left: 2em;
 }
 .file .code {
     margin-left: 2em;
+}
+ul.pager {
+    margin-top: 2ex;
 }
\ No newline at end of file
 }
\ No newline at end of file