housekeep: TU rename - /tu routes

Change /tu to /package-maintainer

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-09-10 08:49:59 +02:00
parent f540c79580
commit 148c882501
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
13 changed files with 68 additions and 62 deletions

View file

@ -28,7 +28,7 @@
off = current_off,
by = current_by
%}
{% include "partials/tu/proposals.html" %}
{% include "partials/package-maintainer/proposals.html" %}
{% endwith %}
{%
@ -42,10 +42,10 @@
off = past_off,
by = past_by
%}
{% include "partials/tu/proposals.html" %}
{% include "partials/package-maintainer/proposals.html" %}
{% endwith %}
{% with title = "Last Votes by Package Maintainer", votes = last_votes_by_pm %}
{% include "partials/tu/last_votes.html" %}
{% include "partials/package-maintainer/last_votes.html" %}
{% endwith %}
{% endblock %}

View file

@ -2,12 +2,12 @@
{% block pageContent %}
<div class="box">
{% include "partials/tu/proposal/details.html" %}
{% include "partials/package-maintainer/proposal/details.html" %}
</div>
{% if utcnow >= voteinfo.End %}
<div class="box">
{% include "partials/tu/proposal/voters.html" %}
{% include "partials/package-maintainer/proposal/voters.html" %}
</div>
{% endif %}
@ -15,7 +15,7 @@
{% if error %}
<span class="status">{{ error | tr }}</span>
{% else %}
{% include "partials/tu/proposal/form.html" %}
{% include "partials/package-maintainer/proposal/form.html" %}
{% endif %}
</div>
{% endblock %}

View file

@ -39,7 +39,7 @@
{# Only CRED_PM_LIST_VOTES privileged users see Package Maintainer #}
{% if request.user.has_credential(creds.PM_LIST_VOTES) %}
<li>
<a href="/tu">{% trans %}Package Maintainer{% endtrans %}</a>
<a href="/package-maintainer">{% trans %}Package Maintainer{% endtrans %}</a>
</li>
{% endif %}

View file

@ -24,7 +24,7 @@
</a>
</td>
<td>
<a href="/tu/{{ vote.LastVote }}">
<a href="/package-maintainer/{{ vote.LastVote }}">
{{ vote.LastVote }}
</a>
</td>

View file

@ -1,4 +1,4 @@
<form class="action-form" action="/tu/{{ proposal }}" method="POST">
<form class="action-form" action="/package-maintainer/{{ proposal }}" method="POST">
<!-- Translate each button's text but leave the value alone. -->
<fieldset>
<button type="submit" class="button" name="decision" value="Yes">

View file

@ -44,7 +44,7 @@
<td>
<!-- Truncate the agenda back to prev_len. -->
{% set agenda = result.Agenda[:prev_len] %}
<a href="/tu/{{ result.ID }}">{{ agenda }}</a>
<a href="/package-maintainer/{{ result.ID }}">{{ agenda }}</a>
</td>
<td>{{ date_display(result.Submitted) }}</td>