Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
<section>
<div class="container">
<div class="row">
- <div class="col col-lg-8">
- <h1 class="display-2">{{ "{:,d}".format(count) }}</h1>
+ <div class="col col-lg-6 text-center">
+ <h1>{{ "{:,d}".format(total) }}</h1>
+ <h4>{{ _("Total amount of profiles") }}</h4>
+ </div>
- <p>
- {{ _("Total amount of systems reporting back to Fireinfo") }}
- </p>
+ <div class="col col-lg-6 text-center">
+ <h1>{{ "%.2f%%" % (with_data * 100 / total) }}</h1>
+ <h4>{{ _("Reporting back to us") }}</h4>
</div>
</div>
</div>
@tornado.web.authenticated
def get(self):
- count = self.backend.fireinfo.get_profile_count()
+ with_data, total = self.backend.fireinfo.get_active_profiles()
- self.render("fireinfo/admin.html", count=count)
+ self.render("fireinfo/admin.html", with_data=with_data, total=total)