mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
101 lines
3.3 KiB
HTML
101 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% comment %}
|
|
|
|
layerindex-web - recipe index page template
|
|
|
|
Copyright (C) 2013 Intel Corporation
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
<!--
|
|
{% block title %}OpenEmbedded metadata index - recipes{% endblock %}
|
|
-->
|
|
|
|
{% block content %}
|
|
{% autoescape on %}
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span9 offset1">
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li>
|
|
<a href="{% url layer_list %}">Layer index</a>
|
|
</li>
|
|
<li class="active"><a href="{% url recipe_search %}">Recipe index</a></li>
|
|
</ul>
|
|
|
|
<div class="row-fluid">
|
|
<div class="input-append">
|
|
<form id="filter-form" action="{% url recipe_search %}" method="post">
|
|
{% csrf_token %}
|
|
<input type="text" class="input-xxlarge" id="appendedInputButtons" placeholder="Search recipes" name="filter" value="{{ search_keyword }}" />
|
|
<button class="btn" type="submit">search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% if recipe_list %}
|
|
<table class="table table-striped table-bordered recipestable">
|
|
<thead>
|
|
<tr>
|
|
<th>Recipe name</th>
|
|
<th>Version</th>
|
|
<th class="span9">Description</th>
|
|
<th>Layer</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for recipe in recipe_list %}
|
|
<tr>
|
|
<td><a href="{% url recipe recipe.id %}">{{ recipe.name }}</a></td>
|
|
<td>{{ recipe.pv }}</td>
|
|
<td>{{ recipe.short_desc }}</td>
|
|
<td><a href="{% url layer_item recipe.layer.name %}">{{ recipe.layer.name }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if is_paginated %}
|
|
<div class="pagination pagination-centered">
|
|
<ul>
|
|
{% if page_obj.has_previous %}
|
|
<li><a href="?page={{ page_obj.previous_page_number }}">prev</a></li>
|
|
{% else %}
|
|
<li class="disabled"><a href="#">prev</a></li>
|
|
{% endif %}
|
|
{% for i in paginator.page_range %}
|
|
{% if i == page_obj.number %}
|
|
<li class="active"><a href="#">{{ page_obj.number }}</a></li>
|
|
{% else %}
|
|
<li><a href="?page={{i}}">{{i}}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if page_obj.has_next %}
|
|
<li><a href="?page={{ page_obj.next_page_number }}">next</a></li>
|
|
{% else %}
|
|
<li class="disabled"><a href="#">next</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% else %}
|
|
{% if search_keyword %}
|
|
<p>No matching recipes in database.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|