From 77f38be3625395a5502cab7403c8e010171ce3f8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 8 Feb 2012 17:06:21 -0600 Subject: Factor out requiredby details into a template This is similar to the previous commit doing the same for depends. We also add a '(staging)' text for use down the road. Signed-off-by: Dan McGee --- templates/packages/details.html | 8 +------- templates/packages/details_depend.html | 1 + templates/packages/details_requiredby.html | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 templates/packages/details_requiredby.html diff --git a/templates/packages/details.html b/templates/packages/details.html index fd7bea4..091e57e 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -185,13 +185,7 @@

Required By ({{rqdby|length}})

{% if rqdby %}{% endif %} {% endwith %} diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html index 0226dd2..8b6e85c 100644 --- a/templates/packages/details_depend.html +++ b/templates/packages/details_depend.html @@ -9,6 +9,7 @@ {% else %} {% pkg_details_link depend.pkg %}{{ depend.dep.depvcmp|default:"" }} {% if depend.pkg.repo.testing %} (testing){% endif %} +{% if depend.pkg.repo.staging %} (staging){% endif %} {% endifequal %} {% if depend.dep.optional %} (optional){% endif %} {% if depend.dep.description %}- {{ depend.dep.description }}{% endif %} diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html new file mode 100644 index 0000000..c769728 --- /dev/null +++ b/templates/packages/details_requiredby.html @@ -0,0 +1,7 @@ +{% load package_extras %} +
  • {% pkg_details_link req.pkg %} +{% if req.depname != pkg.pkgname %}(requires {{ req.depname }}){% endif %} +{% if req.pkg.repo.testing %}(testing){% endif %} +{% if req.pkg.repo.staging %}(staging){% endif %} +{% if req.optional %}(optional){% endif %} +
  • -- cgit v1.2.3-24-g4f1b