mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep: TU rename - /tu routes
Change /tu to /package-maintainer Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
f540c79580
commit
148c882501
13 changed files with 68 additions and 62 deletions
51
templates/package-maintainer/index.html
Normal file
51
templates/package-maintainer/index.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
{% extends "partials/layout.html" %}
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="box">
|
||||
<h2>{{ "Statistics" | tr }}</h2>
|
||||
<table class="no-width">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ "Total" | tr }} {{ "Package Maintainers" | tr }}:</td>
|
||||
<td>{{ package_maintainer_count }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ "Active" | tr }} {{ "Package Maintainers" | tr }}:</td>
|
||||
<td>{{ active_package_maintainer_count }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{%
|
||||
with table_class = "current-votes",
|
||||
total_votes = current_votes_count,
|
||||
results = current_votes,
|
||||
off_param = "coff",
|
||||
by_param = "cby",
|
||||
by_next = current_by_next,
|
||||
title = "Current Votes",
|
||||
off = current_off,
|
||||
by = current_by
|
||||
%}
|
||||
{% include "partials/package-maintainer/proposals.html" %}
|
||||
{% endwith %}
|
||||
|
||||
{%
|
||||
with table_class = "past-votes",
|
||||
total_votes = past_votes_count,
|
||||
results = past_votes,
|
||||
off_param = "poff",
|
||||
by_param = "pby",
|
||||
by_next = past_by_next,
|
||||
title = "Past Votes",
|
||||
off = past_off,
|
||||
by = past_by
|
||||
%}
|
||||
{% include "partials/package-maintainer/proposals.html" %}
|
||||
{% endwith %}
|
||||
|
||||
{% with title = "Last Votes by Package Maintainer", votes = last_votes_by_pm %}
|
||||
{% include "partials/package-maintainer/last_votes.html" %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
21
templates/package-maintainer/show.html
Normal file
21
templates/package-maintainer/show.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "partials/layout.html" %}
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="box">
|
||||
{% include "partials/package-maintainer/proposal/details.html" %}
|
||||
</div>
|
||||
|
||||
{% if utcnow >= voteinfo.End %}
|
||||
<div class="box">
|
||||
{% include "partials/package-maintainer/proposal/voters.html" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="box">
|
||||
{% if error %}
|
||||
<span class="status">{{ error | tr }}</span>
|
||||
{% else %}
|
||||
{% include "partials/package-maintainer/proposal/form.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue