By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 favourites.html

View raw Download
text/html • 2.8 kiB
HTML document, ASCII text, with very long lines (304)
        
            
1
{% extends "default.html" %}
2
{% block title %}
3
{% trans %}Favourites{% endtrans %}
4
{% endblock %}
5
{% block breadcrumbs %}
6
<li><a href="/favourites">{% trans %}Favourites{% endtrans %}</a></li>
7
{% endblock %}
8
{% block content %}
9
<x-vbox>
10
<x-frame style="--width: 896px;" class="flexible-space">
11
<x-vbox>
12
{% if favourites.count() > 0 %}
13
<table id="favourites-table">
14
<thead>
15
<tr style="text-align: start;">
16
<th>{% trans %}Repository{% endtrans %}</th>
17
<th style="text-align: center;">{% trans %}Commit{% endtrans %}</th>
18
<th style="text-align: center;">{% trans %}Forum{% endtrans %}</th>
19
<th style="text-align: center;">{% trans %}Pull request{% endtrans %}</th>
20
<th style="text-align: center;">{% trans %}Administrative{% endtrans %}</th>
21
</tr>
22
</thead>
23
<tbody>
24
{% for favourite in favourites %}
25
<tr hx-post="/favourites/{{ favourite.id }}" hx-trigger="change" hx-include="#commit-{{ favourite.id }}, #forum-{{ favourite.id }}, #pull_request-{{ favourite.id }}, #administrative-{{ favourite.id }}" hx-headers='{"Content-Type": "application/json"}' hx-swap="outerHTML">
26
<td><a href="{{ favourite.repo.route }}">{{ favourite.repo.owner.username }}/{{ favourite.repo.name }}</a></td>
27
<td style="text-align: center;"><input type="checkbox" name="commit" id="commit-{{ favourite.id }}" value="true" {% if favourite.notify_commit %}checked{% endif %}></td>
28
<td style="text-align: center;"><input type="checkbox" name="forum" id="forum-{{ favourite.id }}" value="true" {% if favourite.notify_forum %}checked{% endif %}></td>
29
<td style="text-align: center;"><input type="checkbox" name="pull_request" id="pull_request-{{ favourite.id }}" value="true" {% if favourite.notify_pr %}checked{% endif %}></td>
30
<td style="text-align: center;"><input type="checkbox" name="administrative" id="administrative-{{ favourite.id }}" value="true" {% if favourite.notify_admin %}checked{% endif %}></td>
31
</tr>
32
{% endfor %}
33
</tbody>
34
</table>
35
{% else %}
36
<p>{% trans %}When you add favourite repositories, you can manage them from here.{% endtrans %}</p>
37
{% endif %}
38
</x-vbox>
39
</x-frame>
40
</x-vbox>
41
{% endblock %}
42