From 4746cd2938df3cf87ae338d22eb4f67f35bac960 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 Nov 2022 18:58:48 +0100 Subject: Remove dead code about dashboards --- .../ishtar/dashboards/dashboard_main.html | 52 ----- .../ishtar/dashboards/dashboard_main_detail.html | 250 --------------------- .../dashboards/dashboard_main_detail_users.html | 32 --- 3 files changed, 334 deletions(-) delete mode 100644 ishtar_common/templates/ishtar/dashboards/dashboard_main.html delete mode 100644 ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html delete mode 100644 ishtar_common/templates/ishtar/dashboards/dashboard_main_detail_users.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/dashboards/dashboard_main.html b/ishtar_common/templates/ishtar/dashboards/dashboard_main.html deleted file mode 100644 index 692e435a3..000000000 --- a/ishtar_common/templates/ishtar/dashboards/dashboard_main.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} -{% block extra_head %} -{{form.media}} - - - - - - - - - -{% endblock %} -{% block content %} - -
-
- -
-
- {% for label, app in app_list %} -
{% endfor %} -
-
-
- -{% endblock %} diff --git a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html b/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html deleted file mode 100644 index 75a7aa542..000000000 --- a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html +++ /dev/null @@ -1,250 +0,0 @@ -{% load i18n date_formating humanize table_form %} -
-

{% trans "Numbers" %}

- {% if form %} -
-
- {% csrf_token %} - {% bs_form form %} -
- -
-
-
- {% endif %} -

{% trans "Total:" %} {{dashboard.total_number|intcomma}}

-
-
-

- {% trans 'Draw rectangle on the graph to zoom. Double-click to reinitialize.' %} -

-
-
- -
-
-
-
-
-
- {% trans 'Right-click on this image to save it.' %} -
-
-
-
-
-
-
- - {% for idx, lbl, values in dashboard.values %} - - - {% for value in values reversed %}{% if forloop.parentloop.counter0 %}{%endif%}{% endfor%} - - {% endfor%} -
{{lbl}}{% else %}{%endif%}{{value|date_formating }}{% if forloop.parentloop.counter0 %}{% else %}
-
- {% if dashboard.periods %} -

{% trans "By years" %}

-
-
- {% trans "Average:" %} -
-
- {{dashboard.average}} -
- -
- {% trans "Variance:" %} -
-
- {{dashboard.variance}} -
- -
- {% trans "Standard deviation:" %} -
-
- {{dashboard.standard_deviation}} -
-
- {% trans "Median:" %} -
-
- {{dashboard.median}} -
-
- {% trans "Mode:" %} -
-
- {{dashboard.mode}} -
-
-
- {% endif %} - {% if dashboard.operation_average %} -

{% trans "By operations" %}

-
-
- {% trans "Average:" %} -
-
- {{dashboard.operation_average}} -
- -
- {% trans "Variance:" %} -
-
- {{dashboard.operation_variance}} -
- -
- {% trans "Standard deviation:" %} -
-
- {{dashboard.operation_standard_deviation}} -
-
- {% trans "Median:" %} -
-
- {{dashboard.operation_median}} -
-
- {% trans "Mode:" %} -
-
- {{dashboard.operation_mode}} -
-
-
- {% endif %} -

{% trans "Created last" %}

- - - {% for item in dashboard.lasts %} - - - - {% endfor %} -
{{lbl}}{% trans "Created" %}
{{item}}{{item.history_date}}{% if item.get_show_url %} - - {%endif%}
-
-

{% trans "Recent changes" %}

- - - {% for item in dashboard.recents %} - - - - {% endfor %} -
{{lbl}}{% trans "Modified" %}
{{item}}{{item.history_date}}{% if item.get_show_url %} - - {%endif%}
-
- diff --git a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail_users.html b/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail_users.html deleted file mode 100644 index f6ead643a..000000000 --- a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail_users.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load i18n %} -
-
- - - {% for user_type in ishtar_users.types %} - - - - - {% endfor %} -
{% trans "User type" %}{% trans "Number" %}
{{user_type.person__person_types__label}}{#TODO: Display all#}{{user_type.number}}
-
- \ No newline at end of file -- cgit v1.2.3