fix scripts/reports template layout

This commit is contained in:
checktheroads 2021-04-21 10:39:56 -07:00
parent 08b955f8b6
commit a55316aef9
2 changed files with 109 additions and 104 deletions

View File

@ -2,11 +2,14 @@
{% load helpers %}
{% load static %}
{% block title %}{{ report.name }} - {{ result.get_status_display }}{% endblock %}
{% block title %}{{ report.name }} <span id="pending-result-label">{% include 'extras/inc/job_label.html' with result=result %}</span>{% endblock %}
{% block head %}
<script src="{% static 'jobs.js' %}?v{{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=jobs.js'"></script>
{% endblock %}
{% block content %}
<span id="jobId" data-value="{{ result.pk }}" style="display: none;"></span>
<span id="jobComplete" data-value="{{ result.completed }}" style="display: none;"></span>
<div class="row">
<div class="col-md-12">
<p>
@ -18,7 +21,7 @@
<span class="visually-hidden">Loading...</span>
</div>
{% endif %}
<span id="pending-result-label">{% include 'extras/inc/job_label.html' with result=result %}</span>
</p>
{% if result.completed %}
<div class="card">
@ -92,7 +95,7 @@
</div>
{% endblock %}
{% block javascript %}
<script src="{% static 'jobs.js' %}?v{{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=jobs.js'"></script>
{% block data %}
<span data-job-id="{{ result.pk }}"></span>
<span data-job-complete="{{ result.completed }}"></span>
{% endblock %}

View File

@ -4,11 +4,14 @@
{% load log_levels %}
{% load static %}
{% block title %}{{ script }} - {{ result.get_status_display }}{% endblock %}
{% block title %}{{ script }} <span id="pending-result-label">{% include 'extras/inc/job_label.html' with result=result %}</span>{% endblock %}
{% block head %}
<script src="{% static 'jobs.js' %}?v{{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=jobs.js'"></script>
{% endblock %}
{% block content %}
<span id="jobId" data-value="{{ result.pk }}" style="display: none;"></span>
<span id="jobComplete" data-value="{{ result.completed }}" style="display: none;"></span>
<div class="row noprint">
<div class="col-md-12">
<nav class="breadcrumb-container" aria-label="breadcrumb">
@ -43,7 +46,6 @@
<span class="visually-hidden">Loading...</span>
</div>
{% endif %}
<span id="pending-result-label">{% include 'extras/inc/job_label.html' with result=result %}</span>
</p>
<div role="tabpanel" class="tab-pane active" id="log">
{% if result.completed %}
@ -101,7 +103,7 @@
</div>
{% endblock %}
{% block javascript %}
<script src="{% static 'jobs.js' %}?v{{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=jobs.js'"></script>
{% block data %}
<span data-job-id="{{ result.pk }}"></span>
<span data-job-complete="{{ result.completed }}"></span>
{% endblock %}