]> git.ipfire.org Git - ipfire.org.git/commitdiff
Remove fireinfo section from index page
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Sep 2018 15:52:26 +0000 (16:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Sep 2018 15:52:26 +0000 (16:52 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/style.scss
src/templates/index.html
src/web/handlers.py

index 0e178f9763eeaa2dacbc5512c2e3271284127d20..384eb367b65863c5df19e3642313280a79098084 100644 (file)
@@ -164,10 +164,6 @@ footer {
                }
        }
 
-       section#fireinfo {
-               border-bottom: 1px solid rgba($gray-800, .2);
-       }
-
        section#appliances {
                padding-bottom: 48px;
        }
index 3e55d776b27b8fd30b1b9e8613b2d5d3d4ee69ff..d89471f42d44a6bf5db175c24d21b2433cf944c0 100644 (file)
                        </div>
                </section>
 
-               <section id="fireinfo">
-                       <div class="container">
-                               <h1 class="text-center">Fire<strong>Info</strong> Statistics</h1>
-                               
-                               <div class="row mb-6 mb-md-5 pb-lg-5 mb-lg-6 justify-content-center">
-                                       <div class="col-6 col-md-3 mb-6 text-center">
-                                               <p class="mb-0 mb-sm-3 fireinfo_cat">Latest Release</p>
-                                               <h6 class="pb-5 fireinfo">{{ latest_release.name }}</h6>
-                                               <div class="r_circle circle mt-5">
-                                                       <p class="fireinfo_per">{{ "%.0f%%" % (latest_release.penetration * 100) }}</p>
-                                               </div>
-                                               <script>
-                                                       $('.r_circle').circleProgress({ value: {{ latest_release.penetration }}, size: 128, thickness: 4, animation: false, startAngle: -Math.PI / 2, fill: { color: ["#1976d2"] } });
-                                               </script>
-                                       </div>
-
-                                       {% if fireinfo_country %}
-                                               <div class="col-6 col-md-3 text-center">
-                                                       <p class="mb-0 mb-sm-3 fireinfo_cat truncate">
-                                                               {{ _("%.0f%% of all IPFire systems are running in") % (fireinfo_country.percentage * 100) }}
-                                                       </p>
-                                                       <h6 class="pb-5 fireinfo">{{ fireinfo_country.country.name }}</h6>
-                                                       <div class="v_circle circle mt-5">
-                                                               <p class="fireinfo_per">{{ "%.0f%%" % (fireinfo_country.percentage * 100) }}</p>
-                                                       </div>
-                                                       <script>
-                                                               $('.v_circle').circleProgress({ value: {{ fireinfo_country.percentage }}, size: 128, thickness: 4, animation: false, startAngle: -Math.PI / 2, fill: { color: ["#ff8f00"] } });
-                                                       </script>
-                                               </div>
-                                       {% end %}
-                               </div>
-                               
-                               <div class="row justify-content-center">
-                                       <a class="btn btn-lg btn-primary" href="/stats">More Stats</a>
-                               </div>
-                       </div>
-               </section>
-
                <section id="appliances">
                        <div class="container">
                                <h1 class="text-center">{{ _("Professional Appliances & Services") }}</h1>
index cebc9647077c9038275e52423b8f625e9acd8cf2..a82921f8a3b53d49248f0c853c31f5c74e56ad1e 100644 (file)
@@ -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):