public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Slava Bacherikov" <slava@bacherikov.org.ua>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/
Date: Tue, 31 Jul 2012 14:22:53 +0000 (UTC)	[thread overview]
Message-ID: <1343744320.dde00b9622167e740ba3232eb9678aad47a19f03.bacher09@gentoo> (raw)

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 %}


             reply	other threads:[~2012-07-31 14:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 14:22 Slava Bacherikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-20 22:40 [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/templates/ 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-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
2012-06-27 22:52 Slava Bacherikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343744320.dde00b9622167e740ba3232eb9678aad47a19f03.bacher09@gentoo \
    --to=slava@bacherikov.org.ua \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox