]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Drop admin stuff
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 11:42:31 +0000 (11:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 11:42:31 +0000 (11:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/fireinfo/stats-admin.html [deleted file]
src/web/fireinfo.py

index 4857218cf125efe3ed37eff4f66735b040090114..87ec1371a606e324c188e0d73d88d486f52e3307 100644 (file)
@@ -142,7 +142,6 @@ templates_fireinfo_DATA = \
        src/templates/fireinfo/index.html \
        src/templates/fireinfo/i-use-1.png \
        src/templates/fireinfo/profile.html \
-       src/templates/fireinfo/stats-admin.html \
        src/templates/fireinfo/stats-cpus-detail.html \
        src/templates/fireinfo/stats-cpus.html \
        src/templates/fireinfo/stats-geo.html \
diff --git a/src/templates/fireinfo/stats-admin.html b/src/templates/fireinfo/stats-admin.html
deleted file mode 100644 (file)
index aa1d1f1..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends "../base.html" %}
-
-{% block title %}{{ _("Fireinfo") }}{% end block %}
-
-{% block body %}
-       <h3>{{ _("Statistics") }}</h3>
-
-       <dl class="dl-horizontal">
-               <dt>{{ _("Active profiles") }}</dt>
-               <dd>{{ profiles_with_data }}/{{ profiles_all }}
-               (= {{ "%.2f%%" % (profiles_with_data * 100 / profiles_all) }})
-
-               <dt>{{ _("Archive Size") }}</dt>
-               <dd>{{ archive_size }}</dd>
-
-               <dt>{{ _("Total updates") }}</dt>
-               <dd>{{ total_updates }}</dd>
-       </dl>
-{% end block %}
-
index 77253b9d9c5a422fc449cf388e4c8405a540bcbe..637ec00957bc8bcba6f1cc36d4f029a30a0e48f9 100644 (file)
@@ -295,20 +295,6 @@ class DeviceModelCompatHandler(BaseHandler):
                self.redirect("/device/%s/%s/%s" % (subsystem, vendor_id, model_id))
 
 
-class AdminFireinfoHandler(BaseHandler):
-       def get(self):
-               profiles_with_data, profiles_all = self.fireinfo.get_active_profiles(when=self.when)
-
-               data = {
-                       "archive_size"       : self.fireinfo.get_archive_size(when=self.when),
-                       "total_updates"      : self.fireinfo.get_total_updates_count(when=self.when),
-                       "profiles_with_data" : profiles_with_data,
-                       "profiles_all"       : profiles_all,
-               }
-
-               self.render("fireinfo/stats-admin.html", **data)
-
-
 class DeviceTableModule(ui_modules.UIModule):
        def render(self, devices, show_group=True, embedded=False):
                return self.render_string("fireinfo/modules/table-devices.html",