mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs: Add support to display sort status Recipes and Maintainers UI
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
292ce0e75f
commit
4c3876108c
|
@ -36,9 +36,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sorting styles */
|
/* Sorting styles */
|
||||||
|
|
||||||
th > a, th.muted {
|
th > a, th.muted {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sorted {
|
.sorted {
|
||||||
|
@ -87,10 +86,6 @@ th > a, th.muted {
|
||||||
color: #c09853;
|
color: #c09853;
|
||||||
}
|
}
|
||||||
|
|
||||||
th .caret {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* status styles */
|
/* status styles */
|
||||||
|
|
||||||
.well{
|
.well{
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<table class="table table-bordered table-hover" id="statistics-table">
|
<table class="table table-bordered table-hover" id="statistics-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="sorted">Maintainer<b class="caret"/></th>
|
<th class="sorted">Maintainer</th>
|
||||||
<th class="muted">Assigned recipes</th>
|
<th class="muted">Assigned recipes</th>
|
||||||
<th class="muted">Up-to-date</th>
|
<th class="muted">Up-to-date</th>
|
||||||
<th>Not updated</th>
|
<th>Not updated</th>
|
||||||
|
@ -101,6 +101,24 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<style>
|
||||||
|
th.header {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small.gif);
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center left;
|
||||||
|
padding-left: 20px;
|
||||||
|
border-right: 1px solid #dad9c7;
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
th.headerSortUp {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small_asc.gif);
|
||||||
|
}
|
||||||
|
th.headerSortDown {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small_desc.gif);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
|
|
@ -66,20 +66,23 @@
|
||||||
<div id="no_recipes_alert" class="alert" style="display:none">
|
<div id="no_recipes_alert" class="alert" style="display:none">
|
||||||
No recipes found <a href="#" id="view-all-recipes" style="margin-left:10px;">View all recipes</a>
|
No recipes found <a href="#" id="view-all-recipes" style="margin-left:10px;">View all recipes</a>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-bordered tablesorter table-hover" id="recipestable">
|
<table class="table tablesorter table-bordered table-hover" id="recipestable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="upstream_status_column span2 sorted">Upstream status<b class="caret"/></th>
|
|
||||||
<th class="recipe_column">Recipe</th>
|
<th class="recipe_column">Recipe</th>
|
||||||
<th class="version_column muted">Version</th>
|
<th class="version_column muted">Version</th>
|
||||||
<th class="upstream_version_column muted header">Upstream version</th>
|
<th class="upstream_version_column muted">Upstream version</th>
|
||||||
<th class="maintainer_column"><b>Maintainer</b></th>
|
<th class="upstream_status_column span2">Upstream status</th>
|
||||||
<th class="summary_column muted span5 header">Summary</th>
|
<th class="maintainer_column">Maintainer</th>
|
||||||
|
<th class="summary_column muted span5">Summary</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for r in recipe_list %}
|
{% for r in recipe_list %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="recipe_column"><a href="{% url "recipedetail" r.pk %}">{{ r.name }}</a></td>
|
||||||
|
<td class="version_column">{{ r.version }}</td>
|
||||||
|
<td class="upstream_version_column">{{ r.upstream_version }}</td>
|
||||||
{% if r.upstream_status == "Up-to-date" %}
|
{% if r.upstream_status == "Up-to-date" %}
|
||||||
<td class="text-success">
|
<td class="text-success">
|
||||||
{% elif r.upstream_status == "Not updated" %}
|
{% elif r.upstream_status == "Not updated" %}
|
||||||
|
@ -91,15 +94,30 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ r.upstream_status }}
|
{{ r.upstream_status }}
|
||||||
</td>
|
</td>
|
||||||
<td class="recipe_column"><a href="{% url "recipedetail" r.pk %}">{{ r.name }}</a></td>
|
|
||||||
<td class="version_column">{{ r.version }}</td>
|
|
||||||
<td class="upstream_version_column">{{ r.upstream_version }}</td>
|
|
||||||
<td class="maintainer_column">{{ r.maintainer_name }}</td>
|
<td class="maintainer_column">{{ r.maintainer_name }}</td>
|
||||||
<td class="summary_column">{{ r.summary }}</td>
|
<td class="summary_column">{{ r.summary }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<style>
|
||||||
|
th.header {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small.gif);
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center left;
|
||||||
|
padding-left: 20px;
|
||||||
|
border-right: 1px solid #dad9c7;
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
th.headerSortUp {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small_asc.gif);
|
||||||
|
}
|
||||||
|
th.headerSortDown {
|
||||||
|
background-image: url({{ STATIC_URL }}/img/small_desc.gif);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
@ -246,12 +264,10 @@ $(document).ready(function() {
|
||||||
|
|
||||||
{% if recipe_list_count > 0 %}
|
{% if recipe_list_count > 0 %}
|
||||||
$(recipesTable).tablesorter({
|
$(recipesTable).tablesorter({
|
||||||
sortList: [[0,0]],
|
sortList: [[0,0], [3,0], [4,0]],
|
||||||
headers: {
|
headers: {
|
||||||
1: { sorter: false },
|
1: { sorter: false },
|
||||||
2: { sorter: false },
|
2: { sorter: false },
|
||||||
3: { sorter: false },
|
|
||||||
4: { sorter: false },
|
|
||||||
5: { sorter: false },
|
5: { sorter: false },
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user