librepages/templates/pages/dash/index.html

39 lines
1.3 KiB
HTML
Raw Normal View History

2022-12-03 16:39:33 +05:30
{% extends 'base' %}{% block title %} Dashboard{% 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.site.add }}">
<button>Add New Site</button>
</a>
</div>
{% if payload|length > 0 %}
{% for deployment in payload %}
<a href="{{ deployment.view }}" class="site__container">
<div class="site__info--head">
<img
class="site__container--preview"
src="{{ deployment.site.hostname }}/favicon.ico"
2022-12-28 04:36:39 +05:30
alt="Website icon"
/>
<div class="site__info--column">
<p><b>{{ deployment.site.hostname }}</b></p>
<p>Deploys from {{ deployment.site.repo_url }}</p>
</div>
</div>
{% if deployment.last_update %}
<div class="site__info--tail">
<p>Last update {{ deployment.last_update.time }}</p>
2022-11-09 13:32:06 +05:30
</div>
{% endif %}
</a>
{% endfor %}
{% else %}
<p class="sites__banner">Nothing to show, click <a href="{{page.dash.site.add}}">here</a> to get started!</p>
{% endif %}
</div>
</main>
2022-11-09 13:32:06 +05:30
{% endblock main %}