feat(static): adds new static origins feature
This commit is contained in:
parent
6a29d68985
commit
15a85b1efe
20 changed files with 843 additions and 7 deletions
|
@ -633,6 +633,57 @@
|
|||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro static_table(statics) %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Description</th>
|
||||
<th scope="col">Origin URL</th>
|
||||
<th scope="col">Keanu Convene</th>
|
||||
<th scope="col">Auto-Rotation</th>
|
||||
<th scope="col">Group</th>
|
||||
<th scope="col">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for static in statics %}
|
||||
{% if not static.destroyed %}
|
||||
<tr>
|
||||
<td>{{ static.description }}</td>
|
||||
<td>{% if static.origin_domain_name %}
|
||||
<a href="https://{{ static.origin_domain_name }}" class="btn btn-secondary btn-sm"
|
||||
target="_bypass"
|
||||
rel="noopener noreferer">⎋</a>
|
||||
{{ static.origin_domain_name }}
|
||||
{% else %}
|
||||
<em>Still deploying</em>
|
||||
{% endif %}</td>
|
||||
<td>{% if static.origin_domain_name and static.keanu_convene_path %}
|
||||
<a href="https://{{ static.origin_domain_name }}/{{ static.keanu_convene_path }}/" class="btn btn-secondary btn-sm"
|
||||
target="_bypass"
|
||||
rel="noopener noreferer">⎋</a>
|
||||
{% else %}
|
||||
<em>Still deploying</em>
|
||||
{% endif %}</td>
|
||||
<td>{% if static.auto_rotate %}✅{% else %}❌{% endif %}</td>
|
||||
<td>
|
||||
<a href="{{ url_for("portal.group.group_edit", group_id=static.group.id) }}">{{ static.group.group_name }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ url_for("portal.static.static_edit", static_id=static.id) }}"
|
||||
class="btn btn-primary btn-sm">View/Edit</a>
|
||||
<a href="{{ url_for("portal.static.static_destroy", static_id=static.id) }}"
|
||||
class="btn btn-danger btn-sm">Destroy</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro webhook_table(webhooks) %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sm">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue