layerindex-web/templates/rrs/recipedetail.html
Aníbal Limón 0013db9bc7 rrs: Add support for display Can't be updated recipe upstream status.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:51 +12:00

175 lines
6.2 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% load staticfiles %}
{% comment %}
rrs-web - recipe detail page template
Copyright (C) 2015 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
{% autoescape on %}
{% block title_append %} - {{ recipe.pn }}{% endblock %}
{% endautoescape %}
{% block topfunctions %}
{% endblock %}
{% block content %}
<link rel="stylesheet" href="{% static "css/rrs-additional.css" %}" />
{% autoescape on %}
<div class="page-header">
<h1>
{{ recipe.name }} {{ recipe.pv }}
<small>{{ milestone_name }}</small>
</h1>
</div>
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
{% if upstream_status == "Up-to-date" %}
<li class="lead">Upstream status: <strong class="text-success">{{ upstream_status }}</strong></li>
{% elif upstream_status == "Not updated" %}
<li class="lead">Upstream status: <strong class="text-error">{{ upstream_status }}</strong></li>
{% elif upstream_status == "Can't be updated" %}
<li class="lead">Upstream status: <strong class="muted">{{ upstream_status }}</strong></li>
{% else %}
<li class="lead">Upstream status: <strong class="text-warning">{{ upstream_status }}</strong></li>
{% endif %}
{% if upstream_status == "Not updated" or upstream_status == "Can't be updated" %}
<li class="divider-vertical"></li>
<li class="lead">Upstream version: <strong>{{ upstream_version }}</strong></li>
{% endif %}
<li class="divider-vertical"></li>
<li class="lead">Maintainer: <strong><a href="{% url recipes milestone_name %}?maintainer_name={{ maintainer_name|urlencode }}">{{ maintainer_name }}</a></strong></li>
<li class="divider-vertical"></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span8">
{% if upstream_no_update_reason %}
<h2>Reason why this recipe can't be updated</h2>
<p class="lead">{{ upstream_no_update_reason }}</p>
{% endif %}
<h2>Updates</h2>
{% if recipe_upgrade_detail_count == 0 %}
<div class="alert alert-info">
There are no updates prior to <strong>{{ milestone_name }}</strong>
</div>
{% else %}
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>Title</th>
<th>Version</th>
<th>Milestone</th>
<th>Date</th>
<th>Maintainer</th>
<th>Commit</th>
</tr>
{% for rud in recipe_upgrade_details %}
<tr>
<td>{{ rud.title }}</td>
<td>{{ rud.version }}</td>
{% if rud.milestone_name %}
<td><a href="{% url recipes rud.milestone_name %}">{{ rud.milestone_name }}</a></td>
{% else %}
<td>{{ rud.milestone_name }}</td>
{% endif %}
<td>{{ rud.date }}</td>
{% if rud.is_recipe_maintainer %}
<td><a href="{% url recipes rud.milestone_name %}?maintainer_name={{ rud.maintainer_name|urlencode }}">{{ rud.maintainer_name }}</a></td>
{% else %}
<td>{{ rud.maintainer_name }}</a></td>
{% endif %}
<td><a href="{{ rud.commit_url }}">{{ rud.commit }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div class="span4">
<h2>About {{ recipe.pn }}</h2>
<div class="well well-transparent">
<dl>
<dt>Summary</dt>
<dd>{{ recipe.summary }}</dd>
<dt>Section</dt>
<dd>{{ recipe.section }}</dd>
<dt>License</dt>
<dd>{{ recipe.license }}</dd>
<dt>Recipe file</dt>
<dd>
{% if recipe.vcs_web_url %}
<a href="{{ recipe.vcs_web_url }}">{{ recipe.full_path }}</a>
{% else %}
{{ recipe.full_path }}
{% endif %}
</dd>
<dt>Layer</dd>
<dd><a href="{{ recipe_layer_branch_url }}">{{ recipe.layerbranch.layer.name }} ({{ recipe.layerbranch.branch.name}} branch)</a></dd>
{% if recipe.homepage %}
<dt>Homepage</dt>
<dd>{% if recipe.homepage %}<a href="{{ recipe.homepage }}">{{ recipe.homepage }}</a>{% endif %}</dd>
{% endif %}
{% if recipe.bugtracker %}
<dt>Bug tracker</dt>
<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>
{% endif %}
{% if recipe_provides %}
<dt>Provides</dt>
<dd>
<ul class="unstyled">
{% for p in recipe_provides %}
<li>{{ p }}</li>
{% endfor %}
</ul>
</dd>
{% endif %}
{% if recipe_depends %}
<dt>Depends</dt>
<dd>
<ul class="unstyled">
{% for d in recipe_depends %}
<li>{{ d }}</li>
{% endfor %}
</ul>
</dd>
{% endif %}
{% if recipe_distros %}
<dt>Distributions</dt>
<dd>
<ul class="unstyled">
{% for d in recipe_distros %}
<li>{{ d }}</li>
{% endfor %}
</ul>
</dd>
{% endif %}
</dl>
</div>
</div>
</div>
{% endautoescape %}
{% endblock %}