diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-07 12:04:38 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-07 15:30:04 +1200 |
commit | 09f629b997da1e52b1cb93d36566e04908e0517c (patch) | |
tree | e0dd95a48dcaed2e0ddf7c49ccd5acc8b4647fa2 /templates/layerindex/detail.html | |
parent | 15d1253f79e081c1f6223d8e95ccc50acff27734 (diff) | |
download | openembedded-core-contrib-09f629b997da1e52b1cb93d36566e04908e0517c.tar.gz |
Add CSV export for layer recipes
Add the ability to export the recipe listing for a layer to a CSV file
for importing into external tools. At the moment we include name,
version and license, but there is a parameter that lets you specify the
fields to include in the URL if desired.
Implements [YOCTO #12722].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates/layerindex/detail.html')
-rw-r--r-- | templates/layerindex/detail.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html index 97363d591f..b68234f12b 100644 --- a/templates/layerindex/detail.html +++ b/templates/layerindex/detail.html @@ -210,13 +210,13 @@ <div class="navbar-inner"> <a class="brand pull-left">{{ layeritem.name }} recipes <span class="muted">({{ layerbranch.sorted_recipes.count }})</span></a> - <ul class="nav pull-right"> - <li> - <form action="" class="navbar-search pull-right" id="filter-form"> - <input type="text" placeholder="Search recipes" class="search-query" id="filter"> - </form> - </li> - </ul> + <div class="pull-right"> + <a href="{% url 'layer_export_recipes_csv' layerbranch.branch.name layerbranch.layer.name %}" class="btn"><i class="icon-file"></i> Export CSV</a> + + <form action="" class="navbar-search nav-spacer pull-right" id="filter-form"> + <input type="text" placeholder="Search recipes" class="search-query" id="filter"> + </form> + </div> </div> </div> |