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 -%} {%- endif -%}
</td> </td>
<td class="server-col col-sm-2 text-center"> <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="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</span> <a role="button" class="start-server btn btn-xs btn-primary {% if u.running %}hidden{% endif %}">start server</a>
</td> </td>
<td class="server-col col-sm-1 text-center"> <td class="server-col col-sm-1 text-center">
{% if admin_access %} {% 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 %} {% endif %}
</td> </td>
<td class="edit-col col-sm-1 text-center"> <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>
<td class="edit-col col-sm-1 text-center"> <td class="edit-col col-sm-1 text-center">
{% if u.name != user.name %} {% 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 %} {% endif %}
</td> </td>
{% endblock user_row %} {% endblock user_row %}

View File

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

View File

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

View File

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