From c78fbde643d46f8ed9acbb36ab091234581fb2e0 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 3 Apr 2018 17:22:31 +1200 Subject: [PATCH] rrs: support new source structure in recipe detail In the rrs branch we used to just store SRC_URI in a field, however we now have a proper model to store sources, so use that in the RRS recipe detail page. Signed-off-by: Paul Eggleton --- templates/rrs/recipedetail.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html index 473b3c7..a91703d 100644 --- a/templates/rrs/recipedetail.html +++ b/templates/rrs/recipedetail.html @@ -147,9 +147,15 @@
{{ recipe.bugtracker }}
{% endif %} - {% if recipe.src_uri %} -
Source URI
-
{{ recipe.src_uri }}
+ {% if recipe.source_set.exists %} +
Sources
+
+
    + {% for source in recipe.source_set.all %} +
  • {{ source.url }}
  • + {% endfor %} +
+
{% endif %} {% if recipe_provides %}