From 4e09e45b1b5c9afb351fa6e07b9f1b2a6cbd577e Mon Sep 17 00:00:00 2001 From: Anika Churilova Date: Fri, 16 Feb 2024 10:21:40 +0100 Subject: [PATCH] ui: add and remove links, change titles, remove open the new tab * closes https://github.com/zenodo/zenodo-rdm/issues/727 --- .../zenodo_rdm/macros/record_item.html | 2 +- .../horizon/invenio_app_rdm/footer.html | 15 +------- .../invenio_communities/details/header.html | 37 +++++++++++-------- .../details/home/index.html | 5 +-- 4 files changed, 25 insertions(+), 34 deletions(-) diff --git a/templates/semantic-ui/zenodo_rdm/macros/record_item.html b/templates/semantic-ui/zenodo_rdm/macros/record_item.html index e4c1a7e6..66b85da6 100644 --- a/templates/semantic-ui/zenodo_rdm/macros/record_item.html +++ b/templates/semantic-ui/zenodo_rdm/macros/record_item.html @@ -63,7 +63,7 @@ {# Description #}

- {% set description = record.ui.get("description_stripped", "No description") %} + {% set description = record.ui.get("description_stripped", "") %} {{ description | truncate(length=350, end='...') }}

diff --git a/templates/themes/horizon/invenio_app_rdm/footer.html b/templates/themes/horizon/invenio_app_rdm/footer.html index ef859282..d8c67f2f 100644 --- a/templates/themes/horizon/invenio_app_rdm/footer.html +++ b/templates/themes/horizon/invenio_app_rdm/footer.html @@ -32,20 +32,7 @@

{{ _("Contact") }}

{{ _("About") }}

-

How it works?

-

FAQ

-

Contact

-
-
-

{{ _("FAIR publishing") }}

-

Getting started

-

Submit your research

-
-
-

{{ _("Integrations") }}

-

REST API

-

OAI-PMH

-

FAIR Evaluation tools

+

Learn more

diff --git a/templates/themes/horizon/invenio_communities/details/header.html b/templates/themes/horizon/invenio_communities/details/header.html index b77f1611..d73d8029 100644 --- a/templates/themes/horizon/invenio_communities/details/header.html +++ b/templates/themes/horizon/invenio_communities/details/header.html @@ -29,15 +29,22 @@
-

- {{ community.metadata.title }} -

+ +

+ {{ community.metadata.title }} +

+
-

{{ community.metadata.title }}

+ + +

+ {{ community.metadata.title }} +

+
{% if community.access.visibility == 'restricted' %}
@@ -108,19 +115,17 @@

{{ community.metadata.title }}