2022-12-03 15:31:40 +05:30
|
|
|
{% extends 'base' %}{% block title %} Add Site{% endblock title %} {% block nav
|
|
|
|
%} {% include "auth_nav" %} {% endblock nav %} {% block main %}
|
2022-12-03 14:56:17 +05:30
|
|
|
|
|
|
|
<main class="sites__main">
|
2022-12-03 15:31:40 +05:30
|
|
|
<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="/sites/view/{{ deployment.site.hostname }}" class="site__container">
|
|
|
|
<div class="site__info--head">
|
|
|
|
<img
|
|
|
|
class="site__container--preview"
|
|
|
|
src="{{ deployment.site.hostname }}/favicon.ico"
|
|
|
|
alt="{{ deployment.site.hostname }}'s favicon"
|
|
|
|
/>
|
|
|
|
<div class="site__info--column">
|
|
|
|
<p><b>{{ deployment.site.hostname }}</b></p>
|
|
|
|
<p>Deploys from {{ deployment.site.repo_url }}</p>
|
2022-12-03 14:56:17 +05:30
|
|
|
</div>
|
2022-12-03 15:31:40 +05:30
|
|
|
</div>
|
|
|
|
{% if deployment.last_update %}
|
2022-12-03 14:56:17 +05:30
|
|
|
<div class="site__info--tail">
|
2022-12-03 15:31:40 +05:30
|
|
|
<p>Last update {{ deployment.last_update.time }}</p>
|
2022-11-09 13:32:06 +05:30
|
|
|
</div>
|
2022-12-03 15:31:40 +05:30
|
|
|
{% 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
|
|
|
|
2022-12-03 15:31:40 +05:30
|
|
|
{% endblock main %}
|