From: Michael Tremer Date: Wed, 26 Sep 2018 15:52:26 +0000 (+0100) Subject: Remove fireinfo section from index page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1740f4dcffc913c12f61a28a9351b85a6797fa31;p=ipfire.org.git Remove fireinfo section from index page Signed-off-by: Michael Tremer --- diff --git a/src/scss/style.scss b/src/scss/style.scss index 0e178f97..384eb367 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -164,10 +164,6 @@ footer { } } - section#fireinfo { - border-bottom: 1px solid rgba($gray-800, .2); - } - section#appliances { padding-bottom: 48px; } diff --git a/src/templates/index.html b/src/templates/index.html index 3e55d776..d89471f4 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -174,44 +174,6 @@ -
-
-

FireInfo Statistics

- -
-
-

Latest Release

-
{{ latest_release.name }}
-
-

{{ "%.0f%%" % (latest_release.penetration * 100) }}

-
- -
- - {% if fireinfo_country %} -
-

- {{ _("%.0f%% of all IPFire systems are running in") % (fireinfo_country.percentage * 100) }} -

-
{{ fireinfo_country.country.name }}
-
-

{{ "%.0f%%" % (fireinfo_country.percentage * 100) }}

-
- -
- {% end %} -
- - -
-
-

{{ _("Professional Appliances & Services") }}

diff --git a/src/web/handlers.py b/src/web/handlers.py index cebc9647..a82921f8 100644 --- a/src/web/handlers.py +++ b/src/web/handlers.py @@ -48,8 +48,7 @@ class IndexHandler(BaseHandler): posts = self.backend.blog.get_newest(limit=5) return self.render("index.html", posts=posts, - latest_release=latest_release, - fireinfo_country=self.fireinfo.get_random_country_penetration()) + latest_release=latest_release) class DonateHandler(BaseHandler):