mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2026-01-27 09:01:24 +01:00
Use a more modern version of Bootstrap and take the opportunity to upgrade jQuery to the latest version at the same time. This provides better browser compatibility, moves to MIT license, allows us to make the site more responsive for different devices in future, and provides theming capabilities for custom installs among other improvements. (I chose to upgrade to v3 for now rather than straight to v4 as it was easier to do this gradually.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
82 lines
2.8 KiB
HTML
82 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% comment %}
|
|
|
|
layerindex-web - layer review list page template
|
|
|
|
Copyright (C) 2013 Intel Corporation
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
<!--
|
|
{% block title_append %} - review{% endblock %}
|
|
-->
|
|
|
|
{% block content %}
|
|
{% autoescape on %}
|
|
|
|
{% if layerbranch_list %}
|
|
<div class="row">
|
|
<div class="col-md-9 col-md-offset-1">
|
|
|
|
<table class="table table-striped table-bordered layerstable">
|
|
<thead>
|
|
<tr>
|
|
<th>Layer name</th>
|
|
<th class="col-md-4">Description</th>
|
|
<th>Type</th>
|
|
<th>Repository</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for layerbranch in layerbranch_list %}
|
|
<tr class="layertype_{{ layerbranch.layer.layer_type }}">
|
|
<td><a href="{% url 'layer_review' layerbranch.layer.name %}">{{ layerbranch.layer.name }}</a>
|
|
{% if layerbranch.yp_compatible_version %}
|
|
<a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ layerbranch.layer.summary }}</td>
|
|
<td>{{ layerbranch.layer.get_layer_type_display }}</td>
|
|
<td class="showRollie">
|
|
{{ layerbranch.layer.vcs_url }}
|
|
{% if layerbranch.layer.vcs_web_url %}
|
|
<a class="rollie" href="{{ layerbranch.layer.vcs_web_url }}">
|
|
<span class="label label-info">
|
|
web repo
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if layerbranch.tree_url %}
|
|
<a class="rollie" href="{{ layerbranch.tree_url }}">
|
|
<span class="label label-info">
|
|
tree
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% if is_paginated %}
|
|
{% load pagination %}
|
|
{% pagination page_obj %}
|
|
{% endif %}
|
|
{% else %}
|
|
<p>No unpublished layers to review.</p>
|
|
{% endif %}
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|