diff --git a/templates/themes/horizon/invenio_communities/details/home/index.html b/templates/themes/horizon/invenio_communities/details/home/index.html index 7aca2ec4..5e7bfd2d 100644 --- a/templates/themes/horizon/invenio_communities/details/home/index.html +++ b/templates/themes/horizon/invenio_communities/details/home/index.html @@ -16,7 +16,7 @@ {%- block page_body %} {{ super() }}
-
+

{{ _("Open repository for EU-funded research (Pilot)") }}

@@ -48,19 +48,66 @@

{{ _("Open repository for EU-funded research (Pilot)

+ + + {% macro format_metric_value(key, value) %} + {% if key in ("total_records", "total_grants") %} + {{ value | compact_number(max_value=1_000_000) }} + {% elif key == "total_data" %} + {{ value | filesizeformat }} + {% else %} + {{ value }} + {% endif %} + {% endmacro %} + + {% set icon_map = { + "total_records": {"icon": "file", "title": _("RECORDS")}, + "total_grants": {"icon": "money", "title": _("GRANTS")}, + "total_data": {"icon": "database", "title": _("DATA VOLUME")} + } %} + +
+
+
+

{{ _("Browse") }}

+
+
+
+
+ {% for key, value in metrics.items() %} +
+
+

+ + {{ format_metric_value(key, value) }} +

+
+

{{ icon_map[key]['title'] }}

+
+ {% endfor %} +
+ +
+
- + {% if records %} -
+
-

{{ _("Recent uploads") }}

- - {{ _("View all") }} - +

{{ title }}

-
+
+
{% for record in records %}
    @@ -72,13 +119,12 @@

    {{ _("Recent uploads") }}

{% endif %} - -
+

{{ _("How it works") }}

-
+
@@ -175,4 +221,5 @@

{{ _("About") }}

+
{%- endblock page_body -%}