]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/builds/comments.html
Drop dependency on textile
[people/jschlag/pbs.git] / src / templates / builds / comments.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Build comments") }}{% end block %}
4
5 {% block body %}
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li>
12 <a href="/builds">{{ _("Builds") }}</a>
13 <span class="divider">/</span>
14 </li>
15 {% if user %}
16 <li>
17 <a href="/builds/comments">{{ _("Comments") }}</a>
18 <span class="divider">/</span>
19 </li>
20 <li class="active">
21 <a href="/builds/comments/{{ user.name }}">{{ user.realname }}</a>
22 </li>
23 {% else %}
24 <li class="active">
25 <a href="/builds/comments">{{ _("Comments") }}</a>
26 </li>
27 {% end %}
28 </ul>
29
30 {% if user %}
31 <ul class="nav nav-pills pull-right">
32 <li>
33 <a href="/builds/comments">{{ _("Show all comments") }}</a>
34 </li>
35 </ul>
36 {% end %}
37
38 <div class="page-header">
39 {% if user %}
40 <h2>{{ _("%s's latest comments") % user.firstname }}</h2>
41 {% else %}
42 <h2>{{ _("Build comments") }}</h2>
43 {% end %}
44 </div>
45
46 {% if comments %}
47 <p>
48 {% if user %}
49 {{ _("This page shows %s's latest comments.") % user.firstname }}
50 {% else %}
51 {{ _("This page shows the latest comments on builds.") }}
52 {% end %}
53 {{ _("The Pakfire Build Service is all about social development and so, communicating with eath others is important. Please join.") }}
54 </p>
55
56 {% module Log(comments, show_build=True) %}
57
58 <ul class="pager">
59 {% if have_prev %}
60 <li class="previous">
61 <a href="?offset={{ offset - limit }}&limit={{ limit }}">&larr; {{ _("Newer") }}</a>
62 </li>
63 {% else %}
64 <li class="previous disabled">
65 <a href="#">&larr; {{ _("Newer") }}</a>
66 </li>
67 {% end %}
68
69 {% if have_next %}
70 <li class="next">
71 <a href="?offset={{ offset + limit }}&limit={{ limit }}">{{ _("Older") }} &rarr;</a>
72 </li>
73 {% else %}
74 <li class="next disabled">
75 <a href="#">{{ _("Older") }} &rarr;</a>
76 </li>
77 {% end %}
78 </ul>
79 {% elif not comments and user %}
80 <p class="muted">
81 {{ _("%s did not comment on anything, yet.") % user.firstname }}
82 </p>
83 {% end %}
84 {% end block %}