fix wrong/missing closing tags in templates

This commit is contained in:
Kenan Erdogan
2018-06-19 09:15:18 +02:00
parent 1e333e2f29
commit 24d87c882f
4 changed files with 13 additions and 14 deletions

View File

@@ -53,20 +53,20 @@
{%- endif -%}
</td>
<td class="server-col col-sm-2 text-center">
<a role="button" class="stop-server btn btn-xs btn-danger {% if not u.running %}hidden{% endif %}">stop server</span>
<a role="button" class="start-server btn btn-xs btn-primary {% if u.running %}hidden{% endif %}">start server</span>
<a role="button" class="stop-server btn btn-xs btn-danger {% if not u.running %}hidden{% endif %}">stop server</a>
<a role="button" class="start-server btn btn-xs btn-primary {% if u.running %}hidden{% endif %}">start server</a>
</td>
<td class="server-col col-sm-1 text-center">
{% if admin_access %}
<a role="button" class="access-server btn btn-xs btn-primary {% if not u.running %}hidden{% endif %}">access server</span>
<a role="button" class="access-server btn btn-xs btn-primary {% if not u.running %}hidden{% endif %}">access server</a>
{% endif %}
</td>
<td class="edit-col col-sm-1 text-center">
<a role="button" class="edit-user btn btn-xs btn-primary">edit</span>
<a role="button" class="edit-user btn btn-xs btn-primary">edit</a>
</td>
<td class="edit-col col-sm-1 text-center">
{% if u.name != user.name %}
<a role="button" class="delete-user btn btn-xs btn-danger">delete</span>
<a role="button" class="delete-user btn btn-xs btn-danger">delete</a>
{% endif %}
</td>
{% endblock user_row %}

View File

@@ -15,6 +15,7 @@
</div>
</div>
<p id="progress-message"></p>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
@@ -23,6 +24,7 @@
<div id="progress-log"></div>
</details>
</div>
</div>
</div>
{% endblock %}

View File

@@ -23,7 +23,7 @@
require(["jquery"], function ($) {
$("#refresh").click(function () {
window.location.reload();
})
});
setTimeout(function () {
window.location.reload();
}, 5000);

View File

@@ -24,7 +24,6 @@
</div>
<div class="row">
<p>
<div id="token-area" class="col-md-6 col-md-offset-3" style="display: none;">
<div class="panel panel-default">
<div class="panel-heading">
@@ -41,7 +40,6 @@
</div>
</div>
</div>
</p>
</div>
{% if api_tokens %}
@@ -62,7 +60,7 @@
</thead>
<tbody>
{% for token in api_tokens %}
<tr class="token-row" data-token-id="{{token.api_id}}"">
<tr class="token-row" data-token-id="{{token.api_id}}">
{% block token_row scoped %}
<td class="note-col col-sm-5">{{token.note}}</td>
<td class="time-col col-sm-3">
@@ -111,7 +109,7 @@
<tbody>
{% for client in oauth_clients %}
<tr class="token-row"
data-token-id="{{ client['token_id'] }}"">
data-token-id="{{ client['token_id'] }}">
{% block client_row scoped %}
<td class="note-col col-sm-5">{{ client['description'] }}</td>
<td class="time-col col-sm-3">
@@ -129,8 +127,7 @@
{%- endif -%}
</td>
<td class="col-sm-1 text-center">
<button class="revoke-token-btn btn btn-xs btn-danger">revoke</a>
</button>
<button class="revoke-token-btn btn btn-xs btn-danger">revoke</button>
{% endblock client_row %}
</tr>
{% endfor %}
@@ -139,11 +136,11 @@
</div>
{% endif %}
</div>
{% endblock %}
{% endblock main %}
{% block script %}
{{ super() }}
<script type="text/javascript">
require(["token"]);
</script>
{% endblock %}
{% endblock script %}