diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-04-03 17:22:31 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:53 +1200 |
commit | c78fbde643d46f8ed9acbb36ab091234581fb2e0 (patch) | |
tree | 68660522d1c71d4eaf94c95f8d0e9ea9ed031fa8 | |
parent | ebceecb7fd91714e8925c4fbcc05ccdf8012181d (diff) | |
download | openembedded-core-contrib-c78fbde643d46f8ed9acbb36ab091234581fb2e0.tar.gz |
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 <paul.eggleton@linux.intel.com>
-rw-r--r-- | templates/rrs/recipedetail.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html index 473b3c7499..a91703d671 100644 --- a/templates/rrs/recipedetail.html +++ b/templates/rrs/recipedetail.html @@ -147,9 +147,15 @@ <dd><a href="{{ recipe.bugtracker }}">{{ recipe.bugtracker }}</a></dd> {% endif %} - {% if recipe.src_uri %} - <dt>Source URI</dt> - <dd><a href="{{ recipe.src_uri }}">{{ recipe.src_uri }}</a></dd> + {% if recipe.source_set.exists %} + <dt>Sources</dt> + <dd> + <ul class="unstyled"> + {% for source in recipe.source_set.all %} + <li><a href="{{ source.url }}">{{ source.url }}</a></li> + {% endfor %} + </ul> + </dd> {% endif %} {% if recipe_provides %} |