33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{% extends 'base' %}{% block title %} Gitea Webhooks{% endblock title %} {% block nav
|
|
%} {% include "auth_nav" %} {% endblock nav %} {% block main %}
|
|
|
|
<main class="sites__main">
|
|
<div class="sites__collection">
|
|
<div class="sites__actions">
|
|
<a class="sites__actions__new-site" href="{{ page.dash.gitea_webhook.add }}">
|
|
<button>Add New Gitea Webhook</button>
|
|
</a>
|
|
</div>
|
|
{% if payload|length > 0 %}
|
|
{% for hook in payload %}
|
|
<a href="{{ hook.view }}" class="site__container">
|
|
<div class="site__info--head">
|
|
<img
|
|
class="site__container--preview"
|
|
src="{{ hook.webhook.gitea_url }}/favicon.ico"
|
|
alt="Webhook icon"
|
|
/>
|
|
<div class="site__info--column">
|
|
<p><b>{{ hook.webhook.gitea_url }}</b></p>
|
|
<p>Gitea instance {{ hook.webhook.gitea_url }}</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p class="sites__banner">Nothing to show, click <a href="{{page.dash.gitea_webhook.add}}">here</a> to add new Gitea webhook!</p>
|
|
{% endif %}
|
|
</div>
|
|
</main>
|
|
|
|
{% endblock main %}
|