summaryrefslogtreecommitdiff
path: root/dashboard
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2023-06-01 12:38:54 +0000
committerCagil Ulusahin Sonmez <cagilulusahin@gmail.com>2023-06-02 13:19:36 +0100
commit6061e9876ed149a30798a043d9fbd53762cd6901 (patch)
treeb74fdf81c042519e7c0bf97fecd4964ef388f979 /dashboard
parent7782ccc27c285c9a64f18464e72acba4ff62fceb (diff)
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/templates/dashboard/detail.html12
-rw-r--r--dashboard/templates/dashboard/index.html38
2 files changed, 25 insertions, 25 deletions
diff --git a/dashboard/templates/dashboard/detail.html b/dashboard/templates/dashboard/detail.html
index 25df49ba..52489177 100644
--- a/dashboard/templates/dashboard/detail.html
+++ b/dashboard/templates/dashboard/detail.html
@@ -3,11 +3,11 @@
{% block title %}{{ metric }} | {{ block.super }}{% endblock %}
{% block content %}
-<div class="dashboard-detail">
- <h2><a href="{{ metric.link }}">{{ metric }}</a></h2>
- <div class="graph-wrapper">
- <div id="graph" class="graph" data-path="{% url "metric-list" host "dashboard" %}" data-metric="{{ metric.slug }}"></div>
+ <div class="dashboard-detail">
+ <h2><a href="{{ metric.link }}">{{ metric }}</a></h2>
+ <div class="graph-wrapper">
+ <div id="graph" class="graph" data-path="{% url "metric-list" host "dashboard" %}" data-metric="{{ metric.slug }}"></div>
+ </div>
+ <a class="link-readmore back-link" href="{% url "dashboard-index" host "dashboard" %}">All metrics</a>
</div>
- <a class="link-readmore back-link" href="{% url "dashboard-index" host "dashboard" %}">All metrics</a>
-</div>
{% endblock %}
diff --git a/dashboard/templates/dashboard/index.html b/dashboard/templates/dashboard/index.html
index 2d03d86c..2270a41c 100644
--- a/dashboard/templates/dashboard/index.html
+++ b/dashboard/templates/dashboard/index.html
@@ -2,24 +2,24 @@
{% load i18n %}
{% block content %}
-<div class="dashboard-index">
- {% for report in data %}
- {% ifchanged report.metric.category %}
- {% if report.metric.category %}<h2>{{ report.metric.category }}</h2>{% endif %}
- {% endifchanged %}
- <div class="metric{% if report.metric.show_sparkline %} has-sparkline{% endif %}">
- <h3><a href="{{ report.metric.link }}">{{ report.metric.name }}</a></h3>
- <div class="value" >
- <a href="{{ report.metric.get_absolute_url }}">{{ report.latest.measurement }}{% if report.metric.unit == "%" %}%{% endif %}</a>
- <div class="timestamp">&nbsp;</div>
+ <div class="dashboard-index">
+ {% for report in data %}
+ {% ifchanged report.metric.category %}
+ {% if report.metric.category %}<h2>{{ report.metric.category }}</h2>{% endif %}
+ {% endifchanged %}
+ <div class="metric{% if report.metric.show_sparkline %} has-sparkline{% endif %}">
+ <h3><a href="{{ report.metric.link }}">{{ report.metric.name }}</a></h3>
+ <div class="value" >
+ <a href="{{ report.metric.get_absolute_url }}">{{ report.latest.measurement }}{% if report.metric.unit == "%" %}%{% endif %}</a>
+ <div class="timestamp">&nbsp;</div>
+ </div>
+ {% if report.metric.show_sparkline %}
+ <div class="sparkline" id="spark{{ forloop.counter0 }}" data-path="{% url "metric-list" host "dashboard" %}" data-metric="{{ report.metric.slug }}"></div>
+ {% endif %}
</div>
- {% if report.metric.show_sparkline %}
- <div class="sparkline" id="spark{{ forloop.counter0 }}" data-path="{% url "metric-list" host "dashboard" %}" data-metric="{{ report.metric.slug }}"></div>
- {% endif %}
- </div>
- {% endfor %}
- <p class="updated">
- {% blocktrans with timestamp=data.0.latest.timestamp|timesince %}Updated {{ timestamp }} ago.{% endblocktrans %}
- </p>
-</div>
+ {% endfor %}
+ <p class="updated">
+ {% blocktrans with timestamp=data.0.latest.timestamp|timesince %}Updated {{ timestamp }} ago.{% endblocktrans %}
+ </p>
+ </div>
{% endblock %}