* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-06-27 22:52 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-06-27 22:52 UTC (permalink / raw
To: gentoo-commits
commit: 831768cfc24a4180df12676952a8721bd5924159
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Wed Jun 27 17:31:28 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Wed Jun 27 17:31:28 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=831768cf
Move paginator
---
gpackages/templates/ebuilds.html | 1 +
gpackages/templates/maintainers.html | 16 +---------------
gpackages/templates/paginator.html | 17 +++++++++++++++++
3 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/gpackages/templates/ebuilds.html b/gpackages/templates/ebuilds.html
index 19e8feb..81ca0b8 100644
--- a/gpackages/templates/ebuilds.html
+++ b/gpackages/templates/ebuilds.html
@@ -52,4 +52,5 @@
</table>
</div>
{% endfor %}
+{% include 'paginator.html' %}
{% endblock content %}
diff --git a/gpackages/templates/maintainers.html b/gpackages/templates/maintainers.html
index 2467b60..5646c99 100644
--- a/gpackages/templates/maintainers.html
+++ b/gpackages/templates/maintainers.html
@@ -24,19 +24,5 @@
{% endfor %}
</tbody>
</table>
-
-{% if is_paginated %}
-<div class="pagination pagination-centered">
- <ul>
- {% if page_obj.has_previous %}
- <li><a href="?page={{ page_obj.previous_page_number }}">← Prev</a></li>
- {% endif %}
- <li class="active"> <a href="#">{{ page_obj.number }}</a></li>
- {% if page_obj.has_next %}
- <li><a href="?page={{ page_obj.next_page_number }}">Next →</a></li>
- {% endif %}
- </ul>
-</div>
-{% endif %}
-
+{% include 'paginator.html' %}
{% endblock content %}
diff --git a/gpackages/templates/paginator.html b/gpackages/templates/paginator.html
new file mode 100644
index 0000000..b957cf9
--- /dev/null
+++ b/gpackages/templates/paginator.html
@@ -0,0 +1,17 @@
+{% if is_paginated %}
+<div class="pagination pagination-centered">
+ <ul>
+ {% if page_obj.has_previous %}
+ <li>
+ <a href="?page={{ page_obj.previous_page_number }}">← Prev</a>
+ </li>
+ {% endif %}
+ <li class="active"> <a href="#">{{ page_obj.number }}</a></li>
+ {% if page_obj.has_next %}
+ <li>
+ <a href="?page={{ page_obj.next_page_number }}">Next →</a>
+ </li>
+ {% endif %}
+ </ul>
+</div>
+{% endif %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-06-27 22:52 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-06-27 22:52 UTC (permalink / raw
To: gentoo-commits
commit: fc846626ac34c4df42734f73bed9677d8d9fcf7c
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Wed Jun 27 08:58:36 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Wed Jun 27 08:58:36 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=fc846626
Automaticle set languages.
---
gpackages/templates/base.html | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gpackages/templates/base.html b/gpackages/templates/base.html
index ecec6a8..292ef90 100644
--- a/gpackages/templates/base.html
+++ b/gpackages/templates/base.html
@@ -71,9 +71,10 @@
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
- <li><a class="language" lang="en" href="{% url 'setlang' %}">English</a></li>
- <li><a class="language" lang="ru" href="{% url 'setlang' %}">Russian</a></li>
- <li><a class="language" lang="uk" href="{% url 'setlang' %}">Ukranian</a></li>
+ {% get_language_info_list for LANGUAGES as languages %}
+ {% for language in languages %}
+ <li><a class="language" lang="{{ language.code }}" href="{% url 'setlang' %}">{{ language.name_local }} ({{ language.code }})</a></li>
+ {% endfor %}
</ul>
</li>
<li>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-06-30 21:02 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-06-30 21:02 UTC (permalink / raw
To: gentoo-commits
commit: da806b9c0e61ab7eb7ddd44e410b7de20ce1d16c
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Sat Jun 30 13:58:35 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Sat Jun 30 13:58:35 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=da806b9c
Add spaceless
---
gpackages/templates/keywords_table.html | 2 ++
gpackages/templates/paginator.html | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gpackages/templates/keywords_table.html b/gpackages/templates/keywords_table.html
index dcef1a2..63c4be1 100644
--- a/gpackages/templates/keywords_table.html
+++ b/gpackages/templates/keywords_table.html
@@ -1,4 +1,5 @@
{% load url from future %}
+{% spaceless %}
<table class="keywords table table-bordered table-condensed">
<colgroup>
<col class="span2">
@@ -26,3 +27,4 @@
{% endfor %}
</tbody>
</table>
+{% endspaceless %}
diff --git a/gpackages/templates/paginator.html b/gpackages/templates/paginator.html
index 61aa0c3..8d8e309 100644
--- a/gpackages/templates/paginator.html
+++ b/gpackages/templates/paginator.html
@@ -1,3 +1,4 @@
+{% spaceless %}
{% if is_paginated %}
<div class="pagination pagination-centered" id="paginator">
<ul>
@@ -29,3 +30,4 @@
</ul>
</div>
{% endif %}
+{% endspaceless %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-06 23:09 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-06 23:09 UTC (permalink / raw
To: gentoo-commits
commit: 8ca91b5eb0efb09291170347a8e22a679f0fc5fb
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Fri Jul 6 21:07:47 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Fri Jul 6 21:07:47 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=8ca91b5e
Add link in ebuilds view
---
gpackages/templates/ebuild_object.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gpackages/templates/ebuild_object.html b/gpackages/templates/ebuild_object.html
index f75b427..7ef6b9f 100644
--- a/gpackages/templates/ebuild_object.html
+++ b/gpackages/templates/ebuild_object.html
@@ -1,7 +1,7 @@
{% load packages %}
<div class="well package-well">
<div class="package-name">
- <span>{{ ebuild.cpv }}</span>
+ <span><a href="{{ ebuild.package.get_absolute_url }}">{{ ebuild.cpv }}</a></span>
<span class="package_update_datetime">{{ ebuild.updated_datetime }}</span>
</div>
<div style="padding-bottom: 10px; margin 10px;">{{ ebuild.description }}</div>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-06 23:09 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-06 23:09 UTC (permalink / raw
To: gentoo-commits
commit: 5eb1de5787b01e87ad50bd0fa94f8f0ea6b36c3d
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Fri Jul 6 22:06:17 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Fri Jul 6 22:06:17 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=5eb1de57
Deleted unused layout.
---
gpackages/templates/first.html | 486 ----------------------------------------
1 files changed, 0 insertions(+), 486 deletions(-)
diff --git a/gpackages/templates/first.html b/gpackages/templates/first.html
deleted file mode 100644
index 3e835ef..0000000
--- a/gpackages/templates/first.html
+++ /dev/null
@@ -1,486 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Gentoo Packages</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- Le styles -->
- <link href="{{ STATIC_URL }}/css/style.css" rel="stylesheet">
- <style>
- .well {
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
- border-bottom-left-radius: 10px;
- }
- .package-well {
- padding: 10px 10px 0px 10px;
- }
-
- .package-name {
- border-radius: 6px 6px 6px 6px;
- padding: 8px 10px 8px 10px;
- margin: 0px 0px 20px 0px;
- background-color: #CCC;
- }
- .keywords th,
- .keywords td {
- text-align: center;
- }
-
- </style>
- <link href="{{ STATIC_URL }}/css/bootstrap-responsive.css" rel="stylesheet">
-
- <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- </head>
-
- <body>
-
- <div class="navbar navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">Gentoo Packages</a>
- <div class="nav-collapse">
- <ul class="nav">
- <li class="active"><a href="#">Home</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#contact">Contact</a></li>
- </ul>
- <ul class="nav pull-right">
- <li>
- <form action="" class="navbar-search pull-right">
- <input type="text" class="search-query" placeholder="Search" />
- </form>
- </li>
- </ul>
-
-
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container">
- <div class="row">
- <ul class="breadcrumb">
- <li class="active">Main page</li>
- </ul>
- </div>
- <div class="row-fluid">
- <div class="span9">
-
- <div class="well package-well">
- <div class="package-name">
- <span>Test/java</span>
- </div>
- <table class="table table-bordered keywords table-condensed">
- <thead>
- <tr class="">
- <th class=""></th>
- <th class="">alpha</th>
- <th class="">amd64</th>
- <th class="">arm</th>
- <th class="">hppa</th>
- <th class="">ia64</th>
- <th class="">ppc</th>
- <th class="">ppc64</th>
- <th class="">sparc</th>
- <th class="">x86</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </tbody>
- </table>
- </div>
-
-
- <div class="well package-well">
- <div class="package-name">
- <span>www-client/firefox</span>
- </div>
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well package-well">
- <div class="package-name">
- <span>www-client/firefox</span>
- </div>
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well package-well">
- <div class="package-name">
- <span>www-client/firefox</span>
- </div>
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well package-well">
- <div class="package-name">
- <span>www-client/firefox</span>
- </div>
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well package-well">
- <div class="package-name">
- <span>www-client/firefox</span>
- </div>
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">0.10.3</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well">
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">7.15.3</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well">
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">7.15.3</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well">
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">7.15.3</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
- <div class="well">
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">7.15.3</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- </tr>
- </table>
- </div>
-
- <table class="table table-bordered keywords">
- <tr class="">
- <td class=""></td>
- <td class="">alpha</td>
- <td class="">amd64</td>
- <td class="">arm</td>
- <td class="">hppa</td>
- <td class="">ia64</td>
- <td class="">ppc</td>
- <td class="">ppc64</td>
- <td class="">sparc</td>
- <td class="">x86</td>
- </tr>
- <tr>
- <td class="ebuild">3.6.0</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- <td class="blank"></td>
- <td class="stable">+</td>
- </tr>
- <tr>
- <td class="ebuild">3.6.1</td>
- <td class="blank"></td>
- <td class="unstable">~</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="hardmask">-</td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="blank"></td>
- <td class="hardmask">-</td>
- </tr>
- </table>
-
- <div class="pagination" style="text-align: center;">
- <ul>
- <li class="disabled"><a href="#">«</a></li>
- <li class="active"><a href="#">1</a></li>
- <li><a href="#">2</a></li>
- <li><a href="#">3</a></li>
- <li><a href="#">4</a></li>
- <li><a href="#">»</a></li>
- </ul>
- </div>
- </div>
- <div class="span3">
- <div class="well">
- <div id="rightcontent">
- <div>
- <span class="label label-info" style="display: block"> Last update</span>11 Jun 2012<br/> 10:47 UTC
- </div><br/>
- <div>
- <span class="left-legend label label-info" style="display: block;">Legend</span>
- <ul class="legend left-bar-list">
- <li><span class="stable">+</span> - stable</li>
- <li><span class="unstable">~</span> - unstable</li>
- <li><span class="hardmask">M</span> - hardmask</li>
- </ul>
- </div>
- <ul class="nav nav-list" id="tab">
-
- </ul>
- </div>
- </div> <!-- /well -->
- <div class="well">
- <ul class="nav nav-list">
- <li class="nav-header">Navigation</li>
- <li><a href="#">Categories</a></li>
- <li><a href="#">Ebuilds</a></li>
- <li><a href="#">Packages</a></li>
- </ul>
- </div>
- </div>
-
- <div class="row-fluid">
- <div class="span12">
- <hr>
- <footer class="footer">
- <p class="pull-right">Copyright 2007-2012 Gentoo Foundation, Inc.</p>
- </footer>
- </div>
- </div>
-
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="{{ STATIC_URL }}js/jquery.js"></script>
- <script src="{{ STATIC_URL }}js/bootstrap.js"></script>
-
- </body>
-</html>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-08 19:54 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-08 19:54 UTC (permalink / raw
To: gentoo-commits
commit: 8a48b3315725aab9b88d3f5d03ea1b39d2fa6eb2
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Sun Jul 8 17:20:13 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Sun Jul 8 17:20:13 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=8a48b331
Change in recent ebuilds template
---
gpackages/templates/recent_ebuilds.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gpackages/templates/recent_ebuilds.html b/gpackages/templates/recent_ebuilds.html
index 563b10f..b7a2746 100644
--- a/gpackages/templates/recent_ebuilds.html
+++ b/gpackages/templates/recent_ebuilds.html
@@ -4,7 +4,7 @@
{% for ebuild in ebuilds %}
<li>
<a href="{{ ebuild.package.get_absolute_url }}">
- {{ ebuild.cpvr }}
+ {{ ebuild.cpv_or_cpvr }}
</a>
</li>
{% endfor %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-12 22:16 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-12 22:16 UTC (permalink / raw
To: gentoo-commits
commit: 12f715eabbf972c03434ae03dfce6c1a48deb45a
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Thu Jul 12 17:04:14 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Thu Jul 12 17:04:14 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=12f715ea
Add link to repository owner email
---
gpackages/templates/repository.html | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/gpackages/templates/repository.html b/gpackages/templates/repository.html
index 3c22d99..52ac7e6 100644
--- a/gpackages/templates/repository.html
+++ b/gpackages/templates/repository.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load url from future %}
+{% load packages %}
{% block content %}
<h2>{{ repository.name|title }}</h2>
@@ -29,7 +30,7 @@
{% endif %}
<tr>
<td class="nowrap">Owner email</td>
- <td>{{ repository.owner_email }}</td>
+ <td><a href="{{ 'mailto:'|add:repository.owner_email|obfuscate }}">{{ repository.owner_email|obfuscate }}</a></td>
</tr>
<tr>
<td>Homepage</td>
@@ -43,6 +44,14 @@
<td>Official</td>
<td>{% if repository.official %}<span class="bool-ok">✔ Yes</span>{% else %}<span class="bool-no">✕ No</span>{% endif %}</td>
</tr>
+ <tr>
+ <td>Last Updated</td>
+ <td>{{ repository.updated_datetime }}</td>
+ </tr>
+ <tr>
+ <td>Created in database</td>
+ <td>{{ repository.created_datetime }}</td>
+ </tr>
</tbody>
</table>
</div>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-12 22:16 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-12 22:16 UTC (permalink / raw
To: gentoo-commits
commit: da2860c13d921b488af0e1ac6dc2bcf49775ffdb
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Thu Jul 12 21:02:33 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Thu Jul 12 21:02:33 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=da2860c1
Add control-group to arches_choice
---
gpackages/templates/arch_choice.html | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/gpackages/templates/arch_choice.html b/gpackages/templates/arch_choice.html
index 0ebad07..ea83223 100644
--- a/gpackages/templates/arch_choice.html
+++ b/gpackages/templates/arch_choice.html
@@ -7,12 +7,16 @@
</script>
<div class="arches">
<form action="./" method="post" enctype="multipart/form-data">{% csrf_token %}
- {% if form.arches.errors %}
- <div class="alert alert-error">
- {{ form.arches.errors }}
- </div>
- {% endif %}
- {{ form.arches }} <br />
+<fieldset>
+ <div class="control-group">
+ {% if form.arches.errors %}
+ <div class="alert alert-error">
+ {{ form.arches.errors }}
+ </div>
+ {% endif %}
+ {{ form.arches }}
+ </div>
+</fieldset>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-12 22:16 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-12 22:16 UTC (permalink / raw
To: gentoo-commits
commit: 2b95f9a5d776a8e8b6ee5e8126f1b0846fe0518b
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Thu Jul 12 22:05:47 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Thu Jul 12 22:05:47 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=2b95f9a5
Show link to RepoDetailView in RepoListView
---
gpackages/templates/repositories.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gpackages/templates/repositories.html b/gpackages/templates/repositories.html
index 591141f..cee34a2 100644
--- a/gpackages/templates/repositories.html
+++ b/gpackages/templates/repositories.html
@@ -19,7 +19,7 @@
<tbody>
{% for repository in repositories %}
<tr>
- <td class="nowrap"><a href="{% url 'packages' repo=repository.name %}">{{ repository.name }}</a></td>
+ <td class="nowrap"><a href="{{ repository.get_absolute_url }}">{{ repository.name }}</a></td>
<td>{{ repository.description|default_if_none:"" }}</td>
<td>{{ repository.updated_datetime|date:"d m Y H:i:s" }}</td>
</tr>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-31 14:22 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-31 14:22 UTC (permalink / raw
To: gentoo-commits
commit: dde00b9622167e740ba3232eb9678aad47a19f03
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Tue Jul 31 14:18:40 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Tue Jul 31 14:18:40 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=dde00b96
Add simple cache
---
gpackages/templates/categories.html | 4 +++-
gpackages/templates/global_use.html | 5 +++--
gpackages/templates/herds.html | 4 ++++
gpackages/templates/license_groups.html | 6 ++++--
4 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/gpackages/templates/categories.html b/gpackages/templates/categories.html
index 52cfd1f..ebd2116 100644
--- a/gpackages/templates/categories.html
+++ b/gpackages/templates/categories.html
@@ -1,8 +1,9 @@
{% extends "base.html" %}
{% load url from future %}
+{% load cache %}
{% block content %}
-
+{% cache 3600 categories_table %}
<table class='table table-striped table-hover'>
<colgroup>
<col class="span1" >
@@ -23,5 +24,6 @@
{% endfor %}
</tbody>
</table>
+{% endcache %}
{% endblock content %}
diff --git a/gpackages/templates/global_use.html b/gpackages/templates/global_use.html
index fce42fb..bc7354d 100644
--- a/gpackages/templates/global_use.html
+++ b/gpackages/templates/global_use.html
@@ -1,8 +1,9 @@
{% extends "base.html" %}
{% load url from future %}
+{% load cache %}
{% block content %}
-
+{% cache 1800 global_use_table %}
<table class='table table-striped table-hover'>
<colgroup>
<col class="span1" >
@@ -23,5 +24,5 @@
{% endfor %}
</tbody>
</table>
-
+{% endcache %}
{% endblock content %}
diff --git a/gpackages/templates/herds.html b/gpackages/templates/herds.html
index b767967..45814ab 100644
--- a/gpackages/templates/herds.html
+++ b/gpackages/templates/herds.html
@@ -1,8 +1,11 @@
{% extends "base.html" %}
{% load packages %}
{% load url from future %}
+{% load cache %}
+
{% block content %}
+{% cache 1800 herds_table %}
<table class='table table-striped table-hover'>
<colgroup>
<col class="span1" >
@@ -27,5 +30,6 @@
{% endfor %}
</tbody>
</table>
+{% endcache %}
{% endblock content %}
diff --git a/gpackages/templates/license_groups.html b/gpackages/templates/license_groups.html
index 985c670..080c7fc 100644
--- a/gpackages/templates/license_groups.html
+++ b/gpackages/templates/license_groups.html
@@ -1,7 +1,9 @@
{% extends "base.html" %}
{% load url from future %}
-{% block content %}
+{% load cache %}
+{% block content %}
+{% cache 3600 license_groups %}
<table class='table table-striped table-hover'>
<colgroup>
<col class="span1" >
@@ -22,5 +24,5 @@
{% endfor %}
</tbody>
</table>
-
+{% endcache %}
{% endblock content %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-07-31 23:20 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-07-31 23:20 UTC (permalink / raw
To: gentoo-commits
commit: cd616c2cf849622c5baf6c6695efb4ae615b2ac2
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Tue Jul 31 23:12:10 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Tue Jul 31 23:12:10 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=cd616c2c
Minor changes in template
---
gpackages/templates/last_updated.html | 2 +-
gpackages/templates/package_object.html | 12 ++++++++++++
gpackages/templates/packages_use_flag.html | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/gpackages/templates/last_updated.html b/gpackages/templates/last_updated.html
index 83e9d44..9921f10 100644
--- a/gpackages/templates/last_updated.html
+++ b/gpackages/templates/last_updated.html
@@ -1 +1 @@
-{{ last_updated|date:"d M Y" }} <br /> {{ last_updated|date:"H:i:s" }}
+{{ last_updated|date:"d M Y" }} <br /> {{ last_updated|date:"H:i:s" }} ({{ last_updated|timesince }})
diff --git a/gpackages/templates/package_object.html b/gpackages/templates/package_object.html
index bf84e19..fa0d612 100644
--- a/gpackages/templates/package_object.html
+++ b/gpackages/templates/package_object.html
@@ -54,6 +54,18 @@
</td>
</tr>
{% endif %}
+ {% if package.doc %}
+ <tr>
+ <td>Doc</td>
+ <td><a href="{{ package.doc }}">{{ package.doc }}</a></td>
+ </tr>
+ {% endif %}
+ {% if package.changelog_url %}
+ <tr>
+ <td>Changelog url</td>
+ <td><a href="{{ package.changelog_url }}">{{ package.changelog_url }}</a></td>
+ </tr>
+ {% endif %}
</tbody>
</table>
</div>
diff --git a/gpackages/templates/packages_use_flag.html b/gpackages/templates/packages_use_flag.html
index 103e51a..18a40a2 100644
--- a/gpackages/templates/packages_use_flag.html
+++ b/gpackages/templates/packages_use_flag.html
@@ -13,7 +13,7 @@
<tbody>
{% for use_flag in use_flags %}
<tr>
- <td><a href="{% url 'packages' use=use_flag.name %}">{{ use_flag.name }}</a></td>
+ <td class="nowrap"><a href="{% url 'packages' use=use_flag.name %}">{{ use_flag.name }}</a></td>
<td>{{ use_flag.descr|urlize }}</td>
</tr>
{% endfor %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-08-02 22:44 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-08-02 22:44 UTC (permalink / raw
To: gentoo-commits
commit: c615749cc97395d9804d84614212463e339d51a5
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Thu Aug 2 13:19:45 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Thu Aug 2 13:19:45 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=c615749c
Cache repositories table
---
gpackages/templates/repositories.html | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gpackages/templates/repositories.html b/gpackages/templates/repositories.html
index cee34a2..575be00 100644
--- a/gpackages/templates/repositories.html
+++ b/gpackages/templates/repositories.html
@@ -1,8 +1,9 @@
{% extends "base.html" %}
{% load url from future %}
+{% load cache %}
{% block content %}
-
+{% cache 300 repositories_table %}
<table class='table table-striped table-hover'>
<colgroup>
<col class="span1" >
@@ -20,11 +21,11 @@
{% for repository in repositories %}
<tr>
<td class="nowrap"><a href="{{ repository.get_absolute_url }}">{{ repository.name }}</a></td>
- <td>{{ repository.description|default_if_none:"" }}</td>
+ <td>{{ repository.description|default_if_none:""|urlize }}</td>
<td>{{ repository.updated_datetime|date:"d m Y H:i:s" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
-
+{% endcache %}
{% endblock content %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-08-07 0:10 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-08-07 0:10 UTC (permalink / raw
To: gentoo-commits
commit: 2a6f88df0dd026487d4efea0eb63591014e654e0
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Mon Aug 6 23:11:10 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Mon Aug 6 23:11:10 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=2a6f88df
Update package and ebuild template
---
gpackages/templates/ebuild.html | 3 +-
gpackages/templates/ebuild_table.html | 37 +++++++++++++++++++++++++++++++++
gpackages/templates/package.html | 21 +-----------------
3 files changed, 40 insertions(+), 21 deletions(-)
diff --git a/gpackages/templates/ebuild.html b/gpackages/templates/ebuild.html
index 2b7198a..20df4cf 100644
--- a/gpackages/templates/ebuild.html
+++ b/gpackages/templates/ebuild.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% block content %}
-{% include 'ebuild_object.html' %}
+ {% include 'ebuild_object.html' %}
+ {% include 'ebuild_table.html' with ebuild=ebuild package=None only %}
{% endblock content %}
diff --git a/gpackages/templates/ebuild_table.html b/gpackages/templates/ebuild_table.html
new file mode 100644
index 0000000..b695649
--- /dev/null
+++ b/gpackages/templates/ebuild_table.html
@@ -0,0 +1,37 @@
+{% load packages %}
+<div class="tabbable">
+ <ul class="nav nav-tabs">
+ {% if package %}
+ <li class="active"><a href="#tab1" data-toggle="tab">Changelog</a></li>
+ {% endif %}
+ <li{% if not package %} class="active"{% endif %}><a href="#tab2" data-toggle="tab">Use flags</a></li>
+ {% if ebuild.license %}
+ <li><a href="#tab3" data-toggle="tab">Licenses</a></li>
+ {% endif %}
+ <li><a href="#tab4" data-toggle="tab">Dependences</a></li>
+ </ul>
+ <div class="tab-content">
+ {% if package %}
+ <div class="tab-pane active" id="tab1">
+ {{ package.highlighted_changelog }}
+ </div>
+ {% endif %}
+ <div class="tab-pane{% if not package %} active{% endif %}" id="tab2">
+ {% use_flag_table ebuild %}
+ </div>
+ <div class="tab-pane" id="tab3">
+ {{ ebuild.license|license_urlize }}
+ </div>
+ <div class="tab-pane" id="tab4">
+ <pre>
+ {{ ebuild.depend }}
+ </pre>
+ <pre>
+ {{ ebuild.rdepend }}
+ </pre>
+ <pre>
+ {{ ebuild.pdepend }}
+ </pre>
+ </div>
+ </div>
+</div>
diff --git a/gpackages/templates/package.html b/gpackages/templates/package.html
index 992629a..1a17ef3 100644
--- a/gpackages/templates/package.html
+++ b/gpackages/templates/package.html
@@ -3,24 +3,5 @@
{% block content %}
{% include 'package_object.html' %}
- <div class="tabbable">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#tab1" data-toggle="tab">Changelog</a></li>
- <li><a href="#tab2" data-toggle="tab">Use flags</a></li>
- {% if package.latest_ebuild.license %}
- <li><a href="#tab3" data-toggle="tab">Licenses</a></li>
- {% endif %}
- </ul>
- <div class="tab-content">
- <div class="tab-pane active" id="tab1">
- {{ package.highlighted_changelog }}
- </div>
- <div class="tab-pane" id="tab2">
- {% use_flag_table package.latest_ebuild %}
- </div>
- <div class="tab-pane" id="tab3">
- {{ package.latest_ebuild.license|license_urlize }}
- </div>
- </div>
- </div>
+ {% include 'ebuild_table.html' with ebuild=package.latest_ebuild package=package only %}
{% endblock content %}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
@ 2012-08-20 22:40 Slava Bacherikov
0 siblings, 0 replies; 14+ messages in thread
From: Slava Bacherikov @ 2012-08-20 22:40 UTC (permalink / raw
To: gentoo-commits
commit: 4dc865fd7c228082224a1b5c0cd90836f5d23876
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Mon Aug 20 22:40:16 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Mon Aug 20 22:40:16 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=4dc865fd
Add herds_count to repository template
---
gpackages/templates/repository.html | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gpackages/templates/repository.html b/gpackages/templates/repository.html
index 11f7dde..bbe6b0b 100644
--- a/gpackages/templates/repository.html
+++ b/gpackages/templates/repository.html
@@ -80,6 +80,10 @@
<td>{{ repository.maintainers_count }}</td>
</tr>
<tr>
+ <td class="nowrap">Herds Count</td>
+ <td>{{ repository.herds_count }}</td>
+ </tr>
+ <tr>
<td class="nowrap">Packages Count</td>
<td>{{ repository.packages_count }}</td>
</tr>
^ permalink raw reply related [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-08-20 22:41 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27 22:52 [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/ Slava Bacherikov
-- strict thread matches above, loose matches on Subject: below --
2012-08-20 22:40 Slava Bacherikov
2012-08-07 0:10 Slava Bacherikov
2012-08-02 22:44 Slava Bacherikov
2012-07-31 23:20 Slava Bacherikov
2012-07-31 14:22 Slava Bacherikov
2012-07-12 22:16 Slava Bacherikov
2012-07-12 22:16 Slava Bacherikov
2012-07-12 22:16 Slava Bacherikov
2012-07-08 19:54 Slava Bacherikov
2012-07-06 23:09 Slava Bacherikov
2012-07-06 23:09 Slava Bacherikov
2012-06-30 21:02 Slava Bacherikov
2012-06-27 22:52 Slava Bacherikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox