From: Michael Tremer {{ _("Download statistics") }}
{{ _("Mirror load from today") }}
- {{ modules.StasyTable(mirror_load_today, sortby="percentage") }}
+ {% module StasyTable(mirror_load_today, sortby="percentage") %}
{{ _("Mirror load") }}
- {{ modules.StasyTable(mirror_load_total, sortby="percentage") }}
+ {% module StasyTable(mirror_load_total, sortby="percentage") %}
{% end %}
diff --git a/templates/admin-downloads.html b/templates/admin-downloads.html
index ea4d5b9f..2ce8aa0d 100644
--- a/templates/admin-downloads.html
+++ b/templates/admin-downloads.html
@@ -21,7 +21,7 @@
{{ _("Downloads by country") }}
- {{ modules.StasyGeoTable(downloads_locations_today) }}
- {{ modules.StasyGeoTable(downloads_locations_total) }}
+ {% module StasyGeoTable(downloads_locations_today) %}
+ {% module StasyGeoTable(downloads_locations_total) %}
{% end %}
diff --git a/templates/base.html b/templates/base.html
index 7ace976c..c5e813ff 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -35,7 +35,7 @@
{{ hostname }}
diff --git a/templates/builds.html b/templates/builds.html
deleted file mode 100644
index d3934c32..00000000
--- a/templates/builds.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ _("Builds") }}{% end block %}
-
-{% block content %}
- {{ _("Nightly builds") }}
-
-
-
- {% if builds["<12h"] %}
-
-{% end block %}
diff --git a/templates/download-splash.html b/templates/download-splash.html
index f1665a01..8b540f51 100644
--- a/templates/download-splash.html
+++ b/templates/download-splash.html
@@ -56,7 +56,7 @@
- {{ modules.Advertisement("download-splash") }}
+ {% module Advertisement("download-splash") %}
-
- {% for build in builds["<12h"] %}
- {{ modules.Build(build) }}
- {% end %}
- {% end %}
-
- {% if builds[">12h"] %}
-
- {{ _("Less than 12 hours ago") }}
-
-
-
- {% for build in builds[">12h"] %}
- {{ modules.Build(build) }}
- {% end %}
- {% end %}
-
- {% if builds[">24h"] %}
-
- {{ _("More than 12 hours ago") }}
-
-
-
- {% for build in builds[">24h"] %}
- {{ modules.Build(build) }}
- {% end %}
- {% end %}
-
-
- {{ _("More than a day ago") }}
-
- {{ _("Next steps") }}
- {{ modules.DownloadButton(release) }}
+ {% module DownloadButton(release) %}
diff --git a/templates/mirrors.html b/templates/mirrors.html
index 1937f80f..59f0f470 100644
--- a/templates/mirrors.html
+++ b/templates/mirrors.html
@@ -23,12 +23,12 @@
{% if preferred_mirrors %}
{{ _("Mirror servers nearby") }}
- {{ modules.MirrorsTable(preferred_mirrors) }}
+ {% module MirrorsTable(preferred_mirrors) %}
{{ _("Worldwide mirror servers") }}
- {{ modules.MirrorsTable(other_mirrors) }}
+ {% module MirrorsTable(other_mirrors) %}
{% else %}
{{ _("Worldwide mirror servers") }}
- {{ modules.MirrorsTable(other_mirrors) }}
+ {% module MirrorsTable(other_mirrors) %}
{% end %}
{% end block %}
diff --git a/templates/modules/release-item.html b/templates/modules/release-item.html
index 27282491..c09f82cf 100644
--- a/templates/modules/release-item.html
+++ b/templates/modules/release-item.html
@@ -43,7 +43,7 @@
{{ item.title }}
- {{ modules.NewsItem(item, show_heading=False) }}
+ {% module NewsItem(item, show_heading=False) %}
{% end block %}
diff --git a/templates/news-year.html b/templates/news-year.html
index f51e07e0..e7df6f16 100644
--- a/templates/news-year.html
+++ b/templates/news-year.html
@@ -7,9 +7,9 @@
{{ _("News from %(year)s") % { "year" : selected_year } }}
- {{ modules.NewsYearNavigation(selected_year) }}
+ {% module NewsYearNavigation(selected_year) %}
- {{ modules.NewsTable(news) }}
+ {% module NewsTable(news) %}
{% end block %}
diff --git a/templates/news.html b/templates/news.html
index 281f1aae..ac1e9ab4 100644
--- a/templates/news.html
+++ b/templates/news.html
@@ -83,11 +83,11 @@
{{ _("Latest news") }}
- {{ modules.NewsTable(news) }}
+ {% module NewsTable(news) %}
- {{ modules.NewsYearNavigation() }}
+ {% module NewsYearNavigation() %}
{% end block %}
diff --git a/templates/planet-main.html b/templates/planet-main.html
index c0338ae5..c124b6a9 100644
--- a/templates/planet-main.html
+++ b/templates/planet-main.html
@@ -33,7 +33,7 @@
{% for entry in entries %}
- {{ modules.PlanetEntry(entry) }}
+ {% module PlanetEntry(entry) %}
{% end %}
{{ _("Peripherial devices") }}
- {{ modules.StasyDeviceTable(profile.devices) }}
+ {% module StasyDeviceTable(profile.devices) %}
{% end %}
diff --git a/templates/stasy-stats-cpu-flags.html b/templates/stasy-stats-cpu-flags.html
index 2afa62e2..94ed2c68 100644
--- a/templates/stasy-stats-cpu-flags.html
+++ b/templates/stasy-stats-cpu-flags.html
@@ -37,7 +37,7 @@
How many CPUs support the 64-bit architecture?
{% end %}
- {{ modules.StasyTable(cpus_lm, sortby="percentage") }}
+ {% module StasyTable(cpus_lm, sortby="percentage") %}
{{ _("See a breakdown of the CPU cores that are installed on the IPFire systems.") }}
- {{ modules.StasyCPUCoreTable(cpu_cores) }} + {% module StasyCPUCoreTable(cpu_cores) %} {% end block %} diff --git a/templates/stasy-stats-geo.html b/templates/stasy-stats-geo.html index d6ad0774..865cc2a5 100644 --- a/templates/stasy-stats-geo.html +++ b/templates/stasy-stats-geo.html @@ -19,7 +19,7 @@ This chart shows us in which country IPFire is running. {% end %} - {{ modules.StasyGeoTable(geo_locations) }} + {% module StasyGeoTable(geo_locations) %} @@ -37,7 +37,7 @@ on the IPFire webinterface. {% end %} - {{ modules.StasyTable(languages, sortby="percentage", locale=True) }} + {% module StasyTable(languages, sortby="percentage", locale=True) %} {% end block %} diff --git a/templates/stasy-stats-memory.html b/templates/stasy-stats-memory.html index ad5429f4..99db6e4f 100644 --- a/templates/stasy-stats-memory.html +++ b/templates/stasy-stats-memory.html @@ -12,7 +12,7 @@{{ _("The average amount of memory of all systems in the database is: %.2f MB.") % average_memory }}
- {{ modules.StasyTable(memory) }} + {% module StasyTable(memory) %} {% end block %} diff --git a/templates/stasy-stats-network.html b/templates/stasy-stats-network.html index 148e66f5..d9c66516 100644 --- a/templates/stasy-stats-network.html +++ b/templates/stasy-stats-network.html @@ -18,7 +18,7 @@ This chart shows us which is the most favourite network configuration. {% end %} - {{ modules.StasyTable(network_zones, sortby="percentage", percentage=True) }} + {% module StasyTable(network_zones, sortby="percentage", percentage=True) %} {% end block %} diff --git a/templates/stasy-stats-oses.html b/templates/stasy-stats-oses.html index 45000d34..489e2c6b 100644 --- a/templates/stasy-stats-oses.html +++ b/templates/stasy-stats-oses.html @@ -9,14 +9,14 @@