{% module JobsList(jobs) %}
{% end %}
- <a href="/jobs">{{ _("Show more build jobs") }}</a>
+ <ul class="nav nav-pills">
+ <li>
+ <a href="/jobs">{{ _("Show more build jobs") }}</a>
+ </li>
+ </ul>
{% end %}
-{% extends "base.html" %}
+{% extends "../base.html" %}
{% block title %}{{ _("Statistics") }}{% end block %}
{% block body %}
- <h1>{{ _("Statistics") }}</h1>
+ <div class="page-header">
+ <h2>{{ _("Statistics") }}</h2>
+ </div>
+
<p>
{{ _("On this page, you will find a lot of information bundled in graphs and figures.") }}
{{ _("They give a very quick overview about what is going on in the build service.") }}
</p>
- <h2>{{ _("Builds") }}</h2>
+ <h3>{{ _("Builds") }}</h3>
<ul>
<li>
{{ _("The average build time is %.1f minutes.") % (jobs_avg_build_time / 60) }}
</li>
<li>
- {{ _("There %(builds_count)s builds containing %(jobs_count_all)s jobs.") % globals() }}
+ {{ _("There are %(builds_count)s builds containing %(jobs_count_all)s jobs.") % { "builds_count" : builds_count, "jobs_count_all" : jobs_count_all } }}
</li>
</ul>
-
- <h2>{{ _("Users") }}</h2>
- <p>
- {{ _("There is currently one user account.", "There are currently %s user accounts.", users_count) % users_count }}
- </p>
-
- <div style="clear: both;"> </div>
{% end block %}
"jobs_avg_build_time" : self.pakfire.jobs.get_average_build_time(),
})
- # User statistics.
- args.update({
- "users_count" : self.pakfire.users.count(),
- })
-
- self.render("statistics-main.html", **args)
+ self.render("statistics/index.html", **args)
class UploadsHandler(BaseHandler):