housekeep: TU rename - code changes

Renaming of symbols. Functions, variables, values, DB values, etc.
Basically everything that is not user-facing.

This only covers "Trusted User" things:
tests, comments, etc. will covered in a following commit.
This commit is contained in:
moson 2023-09-01 13:25:21 +02:00
parent 9eda6a42c6
commit b576e576da
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
32 changed files with 258 additions and 196 deletions

View file

@ -19,22 +19,22 @@
<p class="vote-type">
<label for="id_type">{{ "Type" | tr }}</label>
<select name="type" id="id_type">
<option value="add_tu"
{% if "add_tu" == type %}
<option value="add_pm"
{% if "add_pm" == type %}
selected
{% endif %}
>
{{ "Addition of a TU" | tr }}
</option>
<option value="remove_tu"
{% if "remove_tu" == type %}
<option value="remove_pm"
{% if "remove_pm" == type %}
selected
{% endif %}
>
{{ "Removal of a TU" | tr }}
</option>
<option value="remove_inactive_tu"
{% if "remove_inactive_tu" == type %}
<option value="remove_inactive_pm"
{% if "remove_inactive_pm" == type %}
selected
{% endif %}
>

View file

@ -4,7 +4,7 @@
<option value="unflag">{{ "Unflag Out-of-date" | tr }}</option>
<option value="adopt">{{ "Adopt Packages" | tr }}</option>
<option value="disown">{{ "Disown Packages" | tr }}</option>
{% if request.user.is_trusted_user() or request.user.is_developer() %}
{% if request.user.is_package_maintainer() or request.user.is_developer() %}
<option value="delete">{{ "Delete Packages" | tr }}</option>
{% endif %}
<option value="notify">{{ "Notify" | tr }}</option>

View file

@ -44,7 +44,7 @@
<td class="stat-desc">
{{ "Trusted Users" | tr }}
</td>
<td>{{ trusted_user_count }}</td>
<td>{{ package_maintainer_count }}</td>
</tr>
</table>
</div>

View file

@ -7,11 +7,11 @@
<tbody>
<tr>
<td>{{ "Total" | tr }} {{ "Trusted Users" | tr }}:</td>
<td>{{ trusted_user_count }}</td>
<td>{{ package_maintainer_count }}</td>
</tr>
<tr>
<td>{{ "Active" | tr }} {{ "Trusted Users" | tr }}:</td>
<td>{{ active_trusted_user_count }}</td>
<td>{{ active_package_maintainer_count }}</td>
</tr>
</tbody>
</table>
@ -45,7 +45,7 @@
{% include "partials/tu/proposals.html" %}
{% endwith %}
{% with title = "Last Votes by TU", votes = last_votes_by_tu %}
{% with title = "Last Votes by TU", votes = last_votes_by_pm %}
{% include "partials/tu/last_votes.html" %}
{% endwith %}
{% endblock %}