diff options
author | Amanda Brindle <amanda.r.brindle@intel.com> | 2017-11-06 14:22:17 -0800 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-11-07 16:54:46 +1300 |
commit | 78c2561181f07b1c39f1dc3516a9110a39d874f2 (patch) | |
tree | ba64538d4b2325f3c530534307eeca3e13d5ed38 /templates/layerindex | |
parent | 44386eea41a8e1bb8a3ab831613cfc1a19ff6ecd (diff) | |
download | openembedded-core-contrib-78c2561181f07b1c39f1dc3516a9110a39d874f2.tar.gz |
templates/layerindex/classes.html: Add bbclass search
Add another tab to search for classes.
Fixes [YOCTO #11207]
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/classes.html | 75 | ||||
-rw-r--r-- | templates/layerindex/distros.html | 1 | ||||
-rw-r--r-- | templates/layerindex/layers.html | 1 | ||||
-rw-r--r-- | templates/layerindex/machines.html | 1 | ||||
-rw-r--r-- | templates/layerindex/recipes.html | 1 |
5 files changed, 79 insertions, 0 deletions
diff --git a/templates/layerindex/classes.html b/templates/layerindex/classes.html new file mode 100644 index 0000000000..34ac5aa3d2 --- /dev/null +++ b/templates/layerindex/classes.html @@ -0,0 +1,75 @@ +{% extends "base_toplevel.html" %} +{% load i18n %} + +{% comment %} + + layerindex-web - class index page template + + Copyright (C) 2013, 2017 Intel Corporation + Copyright (C) 2016 Wind River Systems + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + +<!-- +{% block title_append %} - classes{% endblock %} +--> + +{% block navs %} +{% autoescape on %} + <li><a href="{% url 'layer_list' url_branch %}">Layers</a></li> + <li><a href="{% url 'recipe_search' url_branch %}">Recipes</a></li> + <li><a href="{% url 'machine_search' url_branch %}">Machines</a></li> + <li class="active"><a href="{% url 'class_search' url_branch %}">Classes</a></li> + <li><a href="{% url 'distro_search' url_branch %}">Distros</a></li> +{% endautoescape %} +{% endblock %} + + +{% block content_inner %} +{% autoescape on %} + + + <div class="row-fluid"> + <div class="input-append"> + <form id="filter-form" action="{% url 'class_search' url_branch %}" method="get"> + <input type="text" class="input-xxlarge" id="appendedInputButtons" placeholder="Search classes" name="q" value="{{ search_keyword }}" /> + <button class="btn" type="submit">search</button> + </form> + </div> + </div> + +{% if class_list %} + <table class="table table-striped table-bordered classestable"> + <thead> + <tr> + <th>Class Name</th> + <th>Layer</th> + </tr> + </thead> + + <tbody> + {% for class in class_list %} + <tr> + <td><a href="{{ class.vcs_web_url }}">{{ class.name }}</a></td> + <td><a href="{% url 'layer_item' url_branch class.layerbranch.layer.name %}">{{ class.layerbranch.layer.name }}</a></td> + </tr> + {% endfor %} + </tbody> + </table> + + {% if is_paginated %} + {% load pagination %} + {% pagination page_obj %} + {% endif %} +{% else %} + {% if search_keyword %} + <p>No matching classes in database.</p> + {% endif %} +{% endif %} + + +{% endautoescape %} + +{% endblock %} diff --git a/templates/layerindex/distros.html b/templates/layerindex/distros.html index 70855848e6..5b6995a5dd 100644 --- a/templates/layerindex/distros.html +++ b/templates/layerindex/distros.html @@ -21,6 +21,7 @@ <li><a href="{% url 'layer_list' url_branch %}">Layers</a></li> <li><a href="{% url 'recipe_search' url_branch %}">Recipes</a></li> <li><a href="{% url 'machine_search' url_branch %}">Machines</a></li> + <li><a href="{% url 'class_search' url_branch %}">Classes</a></li> <li class="active"><a href="{% url 'distro_search' url_branch %}">Distros</a></li> {% endautoescape %} {% endblock %} diff --git a/templates/layerindex/layers.html b/templates/layerindex/layers.html index f1a37034fa..11954e0158 100644 --- a/templates/layerindex/layers.html +++ b/templates/layerindex/layers.html @@ -21,6 +21,7 @@ <li class="active"><a href="{% url 'layer_list' url_branch %}">Layers</a></li> <li><a href="{% url 'recipe_search' url_branch %}">Recipes</a></li> <li><a href="{% url 'machine_search' url_branch %}">Machines</a></li> + <li><a href="{% url 'class_search' url_branch %}">Classes</a></li> <li><a href="{% url 'distro_search' url_branch %}">Distros</a></li> {% endautoescape %} {% endblock %} diff --git a/templates/layerindex/machines.html b/templates/layerindex/machines.html index 2a9f947321..c0c6f33b3b 100644 --- a/templates/layerindex/machines.html +++ b/templates/layerindex/machines.html @@ -20,6 +20,7 @@ <li><a href="{% url 'layer_list' url_branch %}">Layers</a></li> <li><a href="{% url 'recipe_search' url_branch %}">Recipes</a></li> <li class="active"><a href="{% url 'machine_search' url_branch %}">Machines</a></li> + <li><a href="{% url 'class_search' url_branch %}">Classes</a></li> <li><a href="{% url 'distro_search' url_branch %}">Distros</a></li> {% endautoescape %} {% endblock %} diff --git a/templates/layerindex/recipes.html b/templates/layerindex/recipes.html index 60a266756f..13227504dc 100644 --- a/templates/layerindex/recipes.html +++ b/templates/layerindex/recipes.html @@ -20,6 +20,7 @@ <li><a href="{% url 'layer_list' url_branch %}">Layers</a></li> <li class="active"><a href="{% url 'recipe_search' url_branch %}">Recipes</a></li> <li><a href="{% url 'machine_search' url_branch %}">Machines</a></li> + <li><a href="{% url 'class_search' url_branch %}">Classes</a></li> <li><a href="{% url 'distro_search' url_branch %}">Distros</a></li> {% endautoescape %} {% endblock %} |