diff --git a/layerindex/detail.html b/layerindex/detail.html index b29ae82..27b4ad3 100644 --- a/layerindex/detail.html +++ b/layerindex/detail.html @@ -26,6 +26,9 @@
+ {% if layeritem.status = 'N' %} +
+ {% if layeritem.vcs_web_file_base_url %} + + test file link + + {% else %} + + No base file URL provided + + {% endif %} + {% if layeritem.vcs_web_tree_base_url %} + + test tree link + + {% else %} + + No base tree URL provided + + {% endif %} +
+ {% else %} {% if layeritem.machine_set.count > 0 %}
@@ -191,7 +216,8 @@
-
+ + {% endif %} {% endautoescape %} diff --git a/layerindex/models.py b/layerindex/models.py index f5398f3..fc31fe1 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -69,6 +69,12 @@ class LayerItem(models.Model): def file_url(self, path = ''): return self._handle_url_path(self.vcs_web_file_base_url, path) + def test_tree_url(self): + return self.tree_url('conf') + + def test_file_url(self): + return self.file_url('conf/layer.conf') + def sorted_recipes(self): return self.recipe_set.order_by('filename')