aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-03-21 16:16:02 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commitb2a67d718cbbe004a940145fc12ccfac56490765 (patch)
treecb57e15573d1561ec547cee662e3e9160d66de68 /templates
parent88467d1ab97ff5a34b19306edc7b198bda86a222 (diff)
downloadopenembedded-core-contrib-b2a67d718cbbe004a940145fc12ccfac56490765.tar.gz
Add link to maintenance plan in layer detail
If the RRS is enabled, then add a way to get from the layer detail page to any maintenance plans in which the layer is included. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/layerindex/detail.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html
index 220d475b06..4898d92ad1 100644
--- a/templates/layerindex/detail.html
+++ b/templates/layerindex/detail.html
@@ -136,6 +136,17 @@
</ul>
{% endif %}
+ {% if rrs_maintplans %}
+ <h3>{{ rrs_maintplans|pluralize:"Maintenance Plan,Maintenance Plans" }}</h3>
+ <ul>
+ {% for maintplan in rrs_maintplans %}
+ <li>
+ <a href="{% url 'rrs_maintplan' maintplan.name %}">{{ maintplan.name }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
</div> <!-- end of span7 -->
<div class="span4 pull-right description">