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>
This commit is contained in:
Paul Eggleton 2018-04-03 17:22:31 +12:00
parent ebceecb7fd
commit c78fbde643

View File

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