mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
routers.html: add authenticated dashboard to homepage
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
af51b5c460
commit
5a175bd92a
6 changed files with 269 additions and 2 deletions
54
templates/dashboard.html
Normal file
54
templates/dashboard.html
Normal file
|
@ -0,0 +1,54 @@
|
|||
<div id="intro" class="box">
|
||||
<h2>{{ "Dashboard" | tr }}</h2>
|
||||
|
||||
<h3>{{ "My Flagged Packages" | tr }}</h3>
|
||||
{% if not flagged_packages %}
|
||||
<p>{{ "No packages matched your search criteria." | tr }}</p>
|
||||
{% else %}
|
||||
{% with table_id = "flagged-packages", packages = flagged_packages %}
|
||||
{% include 'partials/packages/results.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
||||
<h3>{{ "My Requests" | tr }}</h3>
|
||||
{% if not package_requests %}
|
||||
<p>{{ "No requests matched your search criteria." | tr }}</p>
|
||||
{% else %}
|
||||
{% with requests = package_requests %}
|
||||
{% include 'partials/packages/requests.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div id="intro" class="box">
|
||||
<h2>{{ "My Packages" | tr }}</h2>
|
||||
<p>
|
||||
<a href="/packages/?SeB=m&K={{ request.user.Username }}">
|
||||
{{ "Search for packages I maintain" | tr }}
|
||||
</a>
|
||||
</p>
|
||||
{% if not packages %}
|
||||
<p>{{ "No packages matched your search criteria." | tr }}</p>
|
||||
{% else %}
|
||||
{% with table_id = "my-packages" %}
|
||||
{% include 'partials/packages/results.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div id="intro" class="box">
|
||||
<h2>{{ "Co-Maintained Packages" | tr }}</h2>
|
||||
<p>
|
||||
<a href="/packages/?SeB=c&K={{ request.user.Username }}">
|
||||
{{ "Search for packages I co-maintain" | tr }}
|
||||
</a>
|
||||
</p>
|
||||
{% if not comaintained %}
|
||||
<p>{{ "No packages matched your search criteria." | tr }}</p>
|
||||
{% else %}
|
||||
{% with table_id = "comaintained-packages", packages = comaintained %}
|
||||
{% include 'partials/packages/results.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue