From fd8c61d7e89bc35e3f6b700c71b9d3b02da75be4 Mon Sep 17 00:00:00 2001 From: volpino Date: Fri, 27 Jul 2012 12:28:53 +0200 Subject: [PATCH] euscanwww: Added some "truncatechars" filters Signed-off-by: volpino --- euscanwww/djeuscan/templates/euscan/_packages.html | 2 +- euscanwww/djeuscan/templates/euscan/category.html | 4 +++- euscanwww/djeuscan/templates/euscan/herd.html | 4 +++- euscanwww/djeuscan/templates/euscan/maintainer.html | 2 +- euscanwww/djeuscan/templates/euscan/package.html | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/euscanwww/djeuscan/templates/euscan/_packages.html b/euscanwww/djeuscan/templates/euscan/_packages.html index f14072b..dd71210 100644 --- a/euscanwww/djeuscan/templates/euscan/_packages.html +++ b/euscanwww/djeuscan/templates/euscan/_packages.html @@ -33,7 +33,7 @@ {% endif %} {% endwith %} - {{ package.last_version_gentoo.version }} + {{ package.last_version_gentoo.version|truncatechars:15 }} {{ package.last_version_overlay.version }} {{ package.last_version_upstream.version }} diff --git a/euscanwww/djeuscan/templates/euscan/category.html b/euscanwww/djeuscan/templates/euscan/category.html index 17f117b..98101c5 100644 --- a/euscanwww/djeuscan/templates/euscan/category.html +++ b/euscanwww/djeuscan/templates/euscan/category.html @@ -11,7 +11,9 @@ {{ block.super }}
  • feed - {{ category }} + + {{ category|truncatechars:15 }} +
  • {% endblock %} diff --git a/euscanwww/djeuscan/templates/euscan/herd.html b/euscanwww/djeuscan/templates/euscan/herd.html index ee6ccd1..feaa926 100644 --- a/euscanwww/djeuscan/templates/euscan/herd.html +++ b/euscanwww/djeuscan/templates/euscan/herd.html @@ -11,7 +11,9 @@ {{ block.super }}
  • feed - {{ herd.herd }} + + {{ herd.herd|truncatechars:15 }} +
  • {% endblock %} diff --git a/euscanwww/djeuscan/templates/euscan/maintainer.html b/euscanwww/djeuscan/templates/euscan/maintainer.html index 227a1d3..00ac687 100644 --- a/euscanwww/djeuscan/templates/euscan/maintainer.html +++ b/euscanwww/djeuscan/templates/euscan/maintainer.html @@ -12,7 +12,7 @@
  • feed - {{ maintainer.name }} + {{ maintainer.name|truncatechars:15 }}
  • {% endblock %} diff --git a/euscanwww/djeuscan/templates/euscan/package.html b/euscanwww/djeuscan/templates/euscan/package.html index d0381a9..39dc3c6 100644 --- a/euscanwww/djeuscan/templates/euscan/package.html +++ b/euscanwww/djeuscan/templates/euscan/package.html @@ -14,7 +14,7 @@
  • feed - {{ package }} + {{ package|truncatechars:15 }}
  • {% endblock %}