favourites.html
HTML document, ASCII text
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> 14<tr style="text-align: start;"> 15<th>{% trans %}Repository{% endtrans %}</th> 16<th style="text-align: center;">{% trans %}Commit{% endtrans %}</th> 17<th style="text-align: center;">{% trans %}Forum{% endtrans %}</th> 18<th style="text-align: center;">{% trans %}Pull request{% endtrans %}</th> 19<th style="text-align: center;">{% trans %}Administrative{% endtrans %}</th> 20</tr> 21{% for favourite in favourites %} 22<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"> 23<td><a href="{{ favourite.repo.route }}">{{ favourite.repo.owner.username }}/{{ favourite.repo.name }}</a></td> 24<td style="text-align: center;"><input type="checkbox" name="commit" id="commit-{{ favourite.id }}" value="true" {% if favourite.notify_commit %}checked{% endif %}></td> 25<td style="text-align: center;"><input type="checkbox" name="forum" id="forum-{{ favourite.id }}" value="true" {% if favourite.notify_forum %}checked{% endif %}></td> 26<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> 27<td style="text-align: center;"><input type="checkbox" name="administrative" id="administrative-{{ favourite.id }}" value="true" {% if favourite.notify_admin %}checked{% endif %}></td> 28</tr> 29{% endfor %} 30</table> 31{% else %} 32<p>{% trans %}When you add favourite repositories, you can manage them from here.{% endtrans %}</p> 33{% endif %} 34</x-vbox> 35</x-frame> 36</x-vbox> 37{% endblock %} 38