mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00

Add the distros to the index. This looks a lot like the machines and allows users to search for a particular distro. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com> Added associated migration. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
77 lines
2.5 KiB
HTML
77 lines
2.5 KiB
HTML
{% extends "base_toplevel.html" %}
|
|
{% load i18n %}
|
|
|
|
{% comment %}
|
|
|
|
layerindex-web - distro index page template
|
|
|
|
Copyright (C) 2013 Intel Corporation
|
|
Copyright (C) 2016 Wind River Systems
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
<!--
|
|
{% block title_append %} - distros{% 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 '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 'distro_search' url_branch %}" method="get">
|
|
<input type="text" class="input-xxlarge" id="appendedInputButtons" placeholder="Search distros" name="q" value="{{ search_keyword }}" />
|
|
<button class="btn" type="submit">search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% if distro_list %}
|
|
<table class="table table-striped table-bordered distrostable">
|
|
<thead>
|
|
<tr>
|
|
<th>Distro name</th>
|
|
<th class="span9">Description</th>
|
|
<th>Layer</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for distro in distro_list %}
|
|
<tr>
|
|
<td><a href="{{ distro.vcs_web_url }}">{{ distro.name }}</a></td>
|
|
<td>{{ distro.description }}</td>
|
|
<td><a href="{% url 'layer_item' url_branch distro.layerbranch.layer.name %}">{{ distro.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 distros in database.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|