]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toastergui: remove recipe id links to the layer index
authorBelen Barros Pena <belen.barros.pena@intel.com>
Mon, 26 Jan 2015 16:37:05 +0000 (16:37 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 27 Jan 2015 14:25:13 +0000 (14:25 +0000)
Toaster cannot use the recipe id to link to the layer
index, because recipe ids can change. We need to search
by the recipe name instead.

This patch removes the recipe id link from the layer
details page and replaces it with a search by the
recipe name.

It also makes sure links to the layer index open in
a new tab/window.

[YOCTO #7194]
[YOCTO #7193]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
lib/toaster/toastergui/templates/layerdetails.html

index 2b57561a74d0e2904e74b66d7eba1332a19d531b..84a21d7c79b4472a8b067a9867ead381ac1e96b9 100644 (file)
                         <td>
                           {{target.name}}
                           {% if target.up_id %}
-                          <a href="http://layers.openembedded.org/layerindex/recipe/{{target.up_id}}/" class="icon-share get-info"></a>
+                          <a href="{{target.get_layersource_view_url}}" class="icon-share get-info" target="_blank"></a>
                           {% endif %}
                         </td>
                         <td>{{target.version}}</td>