Skip to content

Commit

Permalink
Improve web view of repos
Browse files Browse the repository at this point in the history
This patch adds total count of repos, displays their primary ids
(useful for API manipulation).

It also enables sorting and filtering of the table.

JIRA: PDC-978
  • Loading branch information
lubomir committed Aug 31, 2015
1 parent b92bd01 commit 2d81090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pdc/apps/release/templates/release_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ <h3 class="sub-header">{% trans 'Variants' %}</h3>
</table>

<h3 class="sub-header">{% trans 'Repositories' %}</h3>
<table class="table table-striped">
<table class="datatable table table-striped table-bordered" data-paging="false">
<thead>
<tr>
<th class="text-right">#</th>
<th>{% trans "Variant.Arch" %}</th>
<th>{% trans "Service" %}</th>
<th>{% trans "Repo Family" %}</th>
Expand All @@ -92,6 +93,7 @@ <h3 class="sub-header">{% trans 'Repositories' %}</h3>
{% for variantarch in variant.variantarch_set.all %}
{% for repo in variantarch.repos.all %}
<tr>
<td class="text-right">{{ repo.pk }}</td>
<td>{{ variant.variant_uid }}.{{ variantarch.arch }}</td>
<td>{{ repo.service }}</td>
<td>{{ repo.repo_family }}</td>
Expand Down

0 comments on commit 2d81090

Please sign in to comment.