mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Lint HTML files
This commit is contained in:
parent
c6d9846279
commit
059702b03d
4 changed files with 38 additions and 32 deletions
|
|
@ -44,6 +44,9 @@
|
|||
<link rel="stylesheet"
|
||||
href="{{ url_for('static', filename='css/core.css') }}"
|
||||
nonce="{{ style_nonce }}" />
|
||||
<link rel="stylesheet"
|
||||
href="{{ url_for('static', filename='css/overrides.css') }}"
|
||||
nonce="{{ style_nonce }}" />
|
||||
<link rel="stylesheet"
|
||||
href="{{ url_for('static', filename='css/theme-default.css') }}"
|
||||
nonce="{{ style_nonce }}" />
|
||||
|
|
@ -162,14 +165,14 @@
|
|||
<script src="{{ url_for('static', filename='js/pages/reports.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
{% elif current_endpoint == "bans" %}
|
||||
<script src="{{ url_for('static', filename='js/pages/bans.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/pages/bans.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
{% elif current_endpoint == "jobs" %}
|
||||
<script src="{{ url_for('static', filename='js/pages/jobs.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/pages/jobs.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
{% elif current_endpoint == "logs" %}
|
||||
<script src="{{ url_for('static', filename='js/pages/logs.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/pages/logs.js') }}"
|
||||
nonce="{{ script_nonce }}"></script>
|
||||
{% endif %}
|
||||
<script async defer src="{{ url_for('static', filename='js/buttons.js') }}"></script>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@
|
|||
style="flex: 1 1 0">{{ history['start_date'] }}</li>
|
||||
<li class="list-group-item align-items-center history-end-date rounded-0{% if loop.index == job_data['history']|length %} rounded-bottom{% endif %}"
|
||||
style="flex: 1 1 0">{{ history['end_date'] }}</li>
|
||||
<li class="list-group-item align-items-center text-center rounded-0{% if loop.index == job_data['history']|length %} rounded-bottom{% endif %}" style="flex: 1 1 0">
|
||||
<li class="list-group-item align-items-center text-center rounded-0{% if loop.index == job_data['history']|length %} rounded-bottom{% endif %}"
|
||||
style="flex: 1 1 0">
|
||||
<i class="bx bx-{% if history['success'] %}check-circle text-success{% else %}x-circle text-danger{% endif %}"></i>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -29,29 +29,29 @@
|
|||
</ul>
|
||||
</div>
|
||||
{% if page_num > 1 %}
|
||||
<div class="dropdown btn-group">
|
||||
<button type="button"
|
||||
class="btn btn-outline-primary dropdown-toggle ms-2"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<i class="bx bx-file-find"></i>
|
||||
<span class="d-none d-md-inline"> Select Page</span>
|
||||
</button>
|
||||
<ul id="pages-dropdown-menu"
|
||||
class="dropdown-menu nav-pills max-vh-60 overflow-auto pt-0"
|
||||
role="tablist">
|
||||
{% for page in range(page_num, 0, -1) %}
|
||||
<li class="nav-item">
|
||||
<a role="button"
|
||||
href="{% if loop.index == 1 %}{{ url_for('logs', file=current_file) }}{% else %}{{ url_for('logs', file=current_file, page=page) }}{% endif %}"
|
||||
class="dropdown-item{% if current_page == page %} active{% endif %}">
|
||||
Page {{ page }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dropdown btn-group">
|
||||
<button type="button"
|
||||
class="btn btn-outline-primary dropdown-toggle ms-2"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<i class="bx bx-file-find"></i>
|
||||
<span class="d-none d-md-inline"> Select Page</span>
|
||||
</button>
|
||||
<ul id="pages-dropdown-menu"
|
||||
class="dropdown-menu nav-pills max-vh-60 overflow-auto pt-0"
|
||||
role="tablist">
|
||||
{% for page in range(page_num, 0, -1) %}
|
||||
<li class="nav-item">
|
||||
<a role="button"
|
||||
href="{% if loop.index == 1 %}{{ url_for('logs', file=current_file) }}{% else %}{{ url_for('logs', file=current_file, page=page) }}{% endif %}"
|
||||
class="dropdown-item{% if current_page == page %} active{% endif %}">
|
||||
Page {{ page }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div {% if not request.is_secure %}data-bs-toggle="tooltip" data-bs-placement="top" title="The copy feature is only available over HTTPS"{% endif %}>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
value="{{ csrf_token() }}">
|
||||
<div class="position-absolute top-0 end-0 m-3" style="z-index: 1000">
|
||||
<div class="d-flex flex-wrap justify-content-center align-items-center">
|
||||
<div class="card p-1 me-2" {% if not request.is_secure %}data-bs-toggle="tooltip" data-bs-placement="top" title="The copy feature is only available over HTTPS"{% endif %}>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary copy-settings{% if not request.is_secure %} disabled{% endif %}">
|
||||
<div class="card p-1 me-2"
|
||||
{% if not request.is_secure %}data-bs-toggle="tooltip" data-bs-placement="top" title="The copy feature is only available over HTTPS"{% endif %}>
|
||||
<button type="button"
|
||||
class="btn btn-sm btn-outline-secondary copy-settings{% if not request.is_secure %} disabled{% endif %}">
|
||||
<i class="bx bx-copy-alt bx-xs"></i>
|
||||
<span class="d-none d-md-inline"> Copy</span>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue