From c783b253053b026a700300005c72d9a70839a55b Mon Sep 17 00:00:00 2001 From: Fatimah Date: Tue, 20 Feb 2024 11:26:48 +0100 Subject: [PATCH] refactoring: updated formatting and yaml --- app_data/pages.yaml | 4 +-- .../invenio_app_rdm/default_static_page.html | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/app_data/pages.yaml b/app_data/pages.yaml index 4946d832..9eb5a57c 100644 --- a/app_data/pages.yaml +++ b/app_data/pages.yaml @@ -1,11 +1,11 @@ - url: /communities/horizen/info # The pid_value i.e. (horizen) to be replaced according to the respective branded community title: HorizonZen - Information description: Horizon - template: "invenio_app_rdm/default_static_page.html" + template: invenio_app_rdm/default_static_page.html has_custom_view: True - url: /communities/horizen/join-waiting-list # The pid_value i.e. (horizen) to be replaced according to the respective branded community title: Join Waiting List description: Join Waiting List - template: "invenio_app_rdm/default_static_page.html" + template: invenio_app_rdm/default_static_page.html has_custom_view: True diff --git a/templates/themes/horizon/invenio_app_rdm/default_static_page.html b/templates/themes/horizon/invenio_app_rdm/default_static_page.html index 81fb73e2..a2940582 100644 --- a/templates/themes/horizon/invenio_app_rdm/default_static_page.html +++ b/templates/themes/horizon/invenio_app_rdm/default_static_page.html @@ -1,6 +1,6 @@ {# # This file is part of Invenio. -# Copyright (C) 2022 CERN. +# Copyright (C) 2024 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -16,19 +16,22 @@ # along with Invenio; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #} + {% extends "invenio_communities/base.html" %} {% set title = page.title %} {% set community_menu_active = True %} + {% block page_body %} - {% include "invenio_communities/details/header.html" %} -
-
-
-

{{ page.title|safe }}

- {% block content %}{{ page.content|safe }}{% endblock %} -
-
-
+ {% include "invenio_communities/details/header.html" %} +
+
+
+

{{ page.title|safe }}

+ {% block content %} + {{ page.content|safe }} + {% endblock %} +
+
+
{% endblock %} -