diff --git a/content/farmnew/index.md b/content/farmnew/index.md index d5b206774..519df51d3 100644 --- a/content/farmnew/index.md +++ b/content/farmnew/index.md @@ -35,7 +35,7 @@ By connecting a modern computer at your home or office to the ThreeFold Grid, yo -{% grid_stats() %} +{% grid_stats_expand() %} ## Join the **Internet Revolution** diff --git a/templates/shortcodes/grid_stats.html b/templates/shortcodes/grid_stats.html index 9ae24fe71..62206cc15 100644 --- a/templates/shortcodes/grid_stats.html +++ b/templates/shortcodes/grid_stats.html @@ -1,4 +1,4 @@ -{% set styles = "background-image: url('V3.png');" %} +{% set styles = "background-image: url('images/V3.png');" %} {% set data = load_data(url="https://gridproxy.grid.tf/stats?status=up", required=false, format="json") %} {% if data %} {% set capacity = (data.totalHru + data.totalSru) / 1024 / 1024 / 1024 / 1024 / 1024 %} @@ -18,7 +18,7 @@
- +
{{ capacity | round(precision=2) }}PB capacity @@ -28,7 +28,7 @@
- +
{{ nodes }} nodes @@ -39,7 +39,7 @@
- +
{{ countries }} countries @@ -48,7 +48,7 @@
- +
{{ cores | num_format }} cores diff --git a/templates/shortcodes/grid_stats_expand.html b/templates/shortcodes/grid_stats_expand.html new file mode 100644 index 000000000..9ae24fe71 --- /dev/null +++ b/templates/shortcodes/grid_stats_expand.html @@ -0,0 +1,81 @@ +{% set styles = "background-image: url('V3.png');" %} +{% set data = load_data(url="https://gridproxy.grid.tf/stats?status=up", required=false, format="json") %} +{% if data %} +{% set capacity = (data.totalHru + data.totalSru) / 1024 / 1024 / 1024 / 1024 / 1024 %} +{% set nodes = data.nodes %} + {% set countries = data.countries %} + {% set cores = data.totalCru %} +{% endif %} + +{% if data %} +
+
+
+ {{body | markdown | safe }} + +
+ + + +
+ +
+ {{ capacity | round(precision=2) }}PB + capacity +
+
+ + + +
+ +
+ {{ nodes }} + nodes +
+
+ + + + +
+ +
+ {{ countries }} + countries +
+
+ + +
+ +
+ {{ cores | num_format }} + cores +
+
+ + +
+ + +
+
+
+{% endif %} + \ No newline at end of file