layerindex-web/templates/layerindex/recipedetail.html
Paul Eggleton 73656432b2 Track SRCREV for each recipe
For the purposes of the branch comparison function I'm about to add it
would be useful to track the value of SRCREV, so we can see if it has
changed even if PV hasn't.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-21 10:47:01 +13:00

271 lines
12 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% comment %}
layerindex-web - recipe detail page template
Copyright (C) 2013 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% autoescape on %}
{% block title_append %} - {{ recipe.pn }}{% endblock %}
{% endautoescape %}
-->
{% block content %}
{% autoescape on %}
<ul class="breadcrumb">
<li><a href="{% url 'layer_list' recipe.layerbranch.branch.name %}">{{ recipe.layerbranch.branch.name }}</a></li>
<li><a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a></li>
<li class="active">{{ recipe.name }}</li>
</ul>
<div class="container-fluid">
<div class="row">
{% block page_heading %}
<div class="page-header">
<h1>{{ recipe.name }} {{ recipe.pv }} {% if recipe.blacklisted %} <span class="label label-inverse valign-middle">blacklisted</span> {% endif %}</h1>
</div>
{% endblock %}
{% if recipe.blacklisted %}
<div class="alert alert-warning">
<div class="row">
<p>This recipe is <strong>blacklisted</strong> by the <a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> layer. The reason provided is:</p>
<blockquote class="col-md-7 warn">
<p>{{ recipe.blacklisted }}</p>
</blockquote>
</div>
</div>
{% endif %}
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>Name</th>
<td>{{ recipe.name }}</td>
</tr>
<tr>
<th>Version</th>
<td>{{ recipe.pv }}{% if recipe.srcrev %} ({{ recipe.srcrev }}){% endif %}</td>
</tr>
<tr>
<th>Summary</th>
<td>{{ recipe.summary }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ recipe.description }}</td>
</tr>
<tr>
<th>Section</th>
<td>{{ recipe.section }}</td>
</tr>
<tr>
<th>License</th>
<td>{{ recipe.license }}</td>
</tr>
<tr>
<th>Homepage</th>
<td>
{% if recipe.homepage_url_only %}
<a href="{{ recipe.homepage }}">{{ recipe.homepage }}</a>
{% elif recipe.homepage %}
{{ recipe.homepage }}
{% endif %}
</td>
</tr>
{% if recipe.bugtracker %}
<tr>
<th>Bug tracker</th>
<td><a href="{{ recipe.bugtracker }}">{{ recipe.bugtracker }}</a></td>
</tr>
{% endif %}
<tr>
<th>Recipe file</th>
<td>
{% if recipe.vcs_web_url %}
<a href="{{ recipe.vcs_web_url }}">{{ recipe.full_path }}</a>
{% else %}
{{ recipe.full_path }}
{% endif %}
{% for include in recipe.adjacent_includes %}
{% if include.vcs_web_url %}
<br><a href="{{ include.vcs_web_url }}">{{ include.filepath }}</a>
{% else %}
<br>{{ include.filepath }}
{% endif %}
{% endfor %}
</td>
</tr>
<tr>
<th>Layer</th>
<td><a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> ({{ recipe.layerbranch.branch.name}} branch)</td>
</tr>
<tr>
<th>Inherits</th>
<td>
{% if recipe.inherits %}
<ul class="list-unstyled">
{% for recipe in recipe.inherits.split %}
<li>{{ recipe }}</li>
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
<tr>
<th>Dependencies <i class="glyphicon glyphicon-exclamation-sign" data-toggle="tooltip" title="NOTE: Dependencies may vary based on configuration" aria-hidden="true"></i></th>
<td>
{% if staticdependencies %}
<ul class="list-unstyled">
{% for dep in staticdependencies %}
<li> {{dep.name}} </li>
{% endfor %}
</ul>
{% endif %}
{% if packageconfigs %}
<ul class="list-unstyled">
{% for pc in packageconfigs %}
{% for dep in pc.dynamicbuilddep_set.all %}
<li> {{dep.name}} <i class="glyphicon glyphicon-cog" data-toggle="tooltip" title="If &quot;{{pc.feature}}&quot; is set in PACKAGECONFIG" aria-hidden="true"></i></li>
{% endfor %}
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
<tr>
<th>PACKAGECONFIG options</th>
<td>
{% if packageconfigs %}
<ul class="list-unstyled">
{% for pc in packageconfigs %}
<li> {{ pc.feature }} </li>
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
</tbody>
</table>
<h2>Sources</h2>
{% if recipe.source_set.exists %}
<table class="table table-striped table-bordered">
<tbody>
{% for source in recipe.source_set.all %}
<tr>
<td>{% if source.web_url %}<a href="{{ source.web_url }}">{% endif %}{{ source.url }}{% if source.web_url %}</a>{% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>None</p>
{% endif %}
<h2>Patches</h2>
{% if recipe.patch_set.exists %}
<table class="table table-striped table-bordered">
<thead>
<tr>
<th class="col-md-6">Patch</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for patch in recipe.patch_set.all %}
<tr>
<td><a href="{{ patch.vcs_web_url }}">{{ patch.src_path }}</a></td>
<td>{{ patch.get_status_display }} {{ patch.status_extra | urlize }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>None</p>
{% endif %}
{% if appends %}
<h2>bbappends</h2>
<p>This recipe is appended by:</p>
<table class="table table-bordered">
{% for append in verappends %}
<tr>
<td>
<a href="{% url 'layer_item' append.layerbranch.branch.name append.layerbranch.layer.name %}">{{ append.layerbranch.layer.name }}</a>
</td>
<td>
<a href="{{ append.vcs_web_url }}">{{ append.filename }}</a>
</td>
</tr>
{% endfor %}
{% for append in appends %}
{% if not append in verappends %}
<tr>
<td>
<a href="{% url 'layer_item' append.layerbranch.branch.name append.layerbranch.layer.name %}" class="text-muted">{{ append.layerbranch.layer.name }}</a>
</td>
<td>
<a href="{{ append.vcs_web_url }}" class="text-muted">{{ append.filename }}</a>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% endif %}
{% if otherbranch_recipes %}
<h2>Other branches</h2>
<p>This recipe in other branches of {{ recipe.layerbranch.layer.name }}:</p>
<table class="table table-bordered">
<thead>
<tr>
<th class="col-md-4">Branch</th>
<th>Recipe</th>
</tr>
</thead>
{% for other in otherbranch_recipes %}
<tr>
<td>
{{ other.layerbranch.branch }}
</td>
<td>
{% if other == recipe %}
{{ other.pn }} {{ other.pv }} (this recipe)
{% else %}
<a href="{% url 'recipe' other.id %}">{{ other.pn }} {{ other.pv }}</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
</div>
{% block content_extra %}
{% endblock %}
{% endautoescape %}
{% endblock %}
{% block scripts %}
<script>
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
});
</script>
{% block scripts_extra %}
{% endblock %}
{% endblock %}