summaryrefslogtreecommitdiffstats
path: root/inventar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'inventar/templates')
-rw-r--r--inventar/templates/base.html1
-rw-r--r--inventar/templates/stats.html17
2 files changed, 18 insertions, 0 deletions
diff --git a/inventar/templates/base.html b/inventar/templates/base.html
index c61e012..d72414a 100644
--- a/inventar/templates/base.html
+++ b/inventar/templates/base.html
@@ -15,6 +15,7 @@
<ul>
<li><a href="{% url home %}"><img src="/static/home.svg" width="24" height="24" /> {% trans "Home" %}</a></li>
<li><a href="{% url admin:index %}"><img src="/static/admin.svg" width="24" height="24" /> {% trans "Admin Area" %}</a></li>
+ <li><a href="{% url stats %}"><img src="/static/stats.svg" width="24" height="24" /> {% trans "Statistics" %}</a></li>
<li><br></li>
<li>{% trans "Search Item" %}:
<ul>
diff --git a/inventar/templates/stats.html b/inventar/templates/stats.html
new file mode 100644
index 0000000..10829a7
--- /dev/null
+++ b/inventar/templates/stats.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+ <h2>Statistics:</h2>
+
+ <ul>
+ <li>Number of codes: {{ number_of_codes }}
+ <li>Number of items: {{ number_of_items }}
+ <ul>
+ <li>with parent: {{ number_of_items_with_parent }}
+ <li>without parent: {{ number_of_items_without_parent }}
+ </ul>
+ </ul>
+
+ Work in Progress...
+{% endblock %}