aboutsummaryrefslogtreecommitdiffstats
path: root/templates/layerindex
diff options
context:
space:
mode:
authorAmanda Brindle <amanda.r.brindle@intel.com>2017-09-25 16:41:32 -0700
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-09-27 15:26:24 +1300
commitfdcde0071080a59e1fad17a9479f3d8ca065e8cb (patch)
tree63297f6d46d2acaac06a68780c37127b4ab356af /templates/layerindex
parente3975247913dfa5ac5ed8056b96e3b514e26c473 (diff)
downloadopenembedded-core-contrib-fdcde0071080a59e1fad17a9479f3d8ca065e8cb.tar.gz
Indicate if layer has YP Compatible certification
Allow admin to create Yocto Project versions with the version name, description, an icon link that represents that version, and a link that contains more information about the version. Admins who have the "set_yp_compatibility" permission can then decide if a layer has Yocto Project compatible certification, and if it does, admin can choose which version of Yocto Project the layer is compatible with. If a layer is deemed compatible, the version's icon will appear next to the layer's name, and the icon be a clickable link to a page with more information. Fixes [YOCTO #11452] Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates/layerindex')
-rw-r--r--templates/layerindex/detail.html3
-rw-r--r--templates/layerindex/layers.html6
-rw-r--r--templates/layerindex/reviewdetail.html3
-rw-r--r--templates/layerindex/reviewlist.html6
4 files changed, 16 insertions, 2 deletions
diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html
index 4f1b333822..144d5e8ca0 100644
--- a/templates/layerindex/detail.html
+++ b/templates/layerindex/detail.html
@@ -30,6 +30,9 @@
<div class="row-fluid">
<div class="page-header">
<h1>{{ layeritem.name }}
+ {% if layerbranch.yp_compatible_version %}
+ <a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
+ {% endif %}
{% if layeritem.status = "N" %}
<span class="label label-warning">Unpublished</span>
{% endif %}
diff --git a/templates/layerindex/layers.html b/templates/layerindex/layers.html
index b11ff2f1c0..f1a37034fa 100644
--- a/templates/layerindex/layers.html
+++ b/templates/layerindex/layers.html
@@ -72,7 +72,11 @@
<tbody>
{% for layerbranch in layerbranch_list %}
<tr class="layertype_{{ layerbranch.layer.layer_type }}">
- <td><a href="{% url 'layer_item' url_branch layerbranch.layer.name %}">{{ layerbranch.layer.name }}</a></td>
+ <td><a href="{% url 'layer_item' url_branch layerbranch.layer.name %}">{{ layerbranch.layer.name }}</a>
+ {% if layerbranch.yp_compatible_version %}
+ <a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}" ></a>
+ {% endif %}
+ </td>
<td>{{ layerbranch.layer.summary }}</td>
<td>{{ layerbranch.layer.get_layer_type_display }}</td>
<td class="showRollie">
diff --git a/templates/layerindex/reviewdetail.html b/templates/layerindex/reviewdetail.html
index cff1731552..5b30e5bbb9 100644
--- a/templates/layerindex/reviewdetail.html
+++ b/templates/layerindex/reviewdetail.html
@@ -27,6 +27,9 @@
<div class="row-fluid">
<div class="page-header">
<h1>{{ layeritem.name }}
+ {% if layerbranch.yp_compatible_version %}
+ <a href="{{layerbranch.yp_compatible_version.link_url }}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
+ {% endif %}
{% if layeritem.status = "N" %}
<span class="label label-warning">Unpublished</span>
{% else %}
diff --git a/templates/layerindex/reviewlist.html b/templates/layerindex/reviewlist.html
index eaa24e4e64..1944fa416a 100644
--- a/templates/layerindex/reviewlist.html
+++ b/templates/layerindex/reviewlist.html
@@ -36,7 +36,11 @@
<tbody>
{% for layerbranch in layerbranch_list %}
<tr class="layertype_{{ layerbranch.layer.layer_type }}">
- <td><a href="{% url 'layer_review' layerbranch.layer.name %}">{{ layerbranch.layer.name }}</a></td>
+ <td><a href="{% url 'layer_review' layerbranch.layer.name %}">{{ layerbranch.layer.name }}</a>
+ {% if layerbranch.yp_compatible_version %}
+ <a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
+ {% endif %}
+ </td>
<td>{{ layerbranch.layer.summary }}</td>
<td>{{ layerbranch.layer.get_layer_type_display }}</td>
<td class="showRollie">