Gentoo Archives: gentoo-commits

From: Slava Bacherikov <slava@××××××××××××××.ua>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
Date: Wed, 27 Jun 2012 22:53:17
Message-Id: 1340818288.831768cfc24a4180df12676952a8721bd5924159.bacher09@gentoo
1 commit: 831768cfc24a4180df12676952a8721bd5924159
2 Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
3 AuthorDate: Wed Jun 27 17:31:28 2012 +0000
4 Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
5 CommitDate: Wed Jun 27 17:31:28 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=831768cf
7
8 Move paginator
9
10 ---
11 gpackages/templates/ebuilds.html | 1 +
12 gpackages/templates/maintainers.html | 16 +---------------
13 gpackages/templates/paginator.html | 17 +++++++++++++++++
14 3 files changed, 19 insertions(+), 15 deletions(-)
15
16 diff --git a/gpackages/templates/ebuilds.html b/gpackages/templates/ebuilds.html
17 index 19e8feb..81ca0b8 100644
18 --- a/gpackages/templates/ebuilds.html
19 +++ b/gpackages/templates/ebuilds.html
20 @@ -52,4 +52,5 @@
21 </table>
22 </div>
23 {% endfor %}
24 +{% include 'paginator.html' %}
25 {% endblock content %}
26
27 diff --git a/gpackages/templates/maintainers.html b/gpackages/templates/maintainers.html
28 index 2467b60..5646c99 100644
29 --- a/gpackages/templates/maintainers.html
30 +++ b/gpackages/templates/maintainers.html
31 @@ -24,19 +24,5 @@
32 {% endfor %}
33 </tbody>
34 </table>
35 -
36 -{% if is_paginated %}
37 -<div class="pagination pagination-centered">
38 - <ul>
39 - {% if page_obj.has_previous %}
40 - <li><a href="?page={{ page_obj.previous_page_number }}">&larr; Prev</a></li>
41 - {% endif %}
42 - <li class="active"> <a href="#">{{ page_obj.number }}</a></li>
43 - {% if page_obj.has_next %}
44 - <li><a href="?page={{ page_obj.next_page_number }}">Next &rarr;</a></li>
45 - {% endif %}
46 - </ul>
47 -</div>
48 -{% endif %}
49 -
50 +{% include 'paginator.html' %}
51 {% endblock content %}
52
53 diff --git a/gpackages/templates/paginator.html b/gpackages/templates/paginator.html
54 new file mode 100644
55 index 0000000..b957cf9
56 --- /dev/null
57 +++ b/gpackages/templates/paginator.html
58 @@ -0,0 +1,17 @@
59 +{% if is_paginated %}
60 +<div class="pagination pagination-centered">
61 + <ul>
62 + {% if page_obj.has_previous %}
63 + <li>
64 + <a href="?page={{ page_obj.previous_page_number }}">&larr; Prev</a>
65 + </li>
66 + {% endif %}
67 + <li class="active"> <a href="#">{{ page_obj.number }}</a></li>
68 + {% if page_obj.has_next %}
69 + <li>
70 + <a href="?page={{ page_obj.next_page_number }}">Next &rarr;</a>
71 + </li>
72 + {% endif %}
73 + </ul>
74 +</div>
75 +{% endif %}