-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
theme: added nih as branded community
- Loading branch information
1 parent
da1d885
commit 0db4ab3
Showing
6 changed files
with
542 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{# | ||
|
||
Copyright (C) 2024 CERN. | ||
|
||
Invenio App RDM is free software; you can redistribute it and/or modify it | ||
under the terms of the MIT License; see LICENSE file for more details. | ||
#} | ||
|
||
<div class="footer-top theme-primary horizon-footer"> | ||
<div class="ui container"> | ||
|
||
<div class="ui grid divided relaxed"> | ||
<div class="row"> | ||
|
||
<div | ||
class="rdm-footer five wide tablet three wide computer sixteen wide mobile column rel-mb-2"> | ||
<h2 class="ui small header">{{ _("Managed by") }}</h2> | ||
{% trans ec_open_research="https://datascience.nih.gov/data-ecosystem/generalist-repository-ecosystem-initiative" %} | ||
<a href="{{ ec_open_research }}">CERN on behalf of the National Institutes of Health</a> | ||
<i class="green check circle outline icon"></i> | ||
{% endtrans %} | ||
</div> | ||
<div | ||
class="rdm-footer eleven wide tablet thirteen wide computer sixteen wide mobile column"> | ||
<div class="ui equal width stackable grid"> | ||
<div class="column"> | ||
|
||
<h2 class="ui small header">{{ _("About") }}</h2> | ||
<p><a href="/communities/{{ community.slug }}/about">About the National Institutes of Health (NIH)</a></p> | ||
<p><a href="/communities/{{ community.slug }}/curation-policy">Curation policy</a></p> | ||
<p><a href="/communities/{{ community.slug }}/pages/roadmap">Roadmap</a></p> | ||
<p><a href="https://support.zenodo.org/help/en-gb/28">FAQ</a></p> | ||
<p><a href="/communities/{{ community.slug }}/pages/contact">Contact</a></p> | ||
</div> | ||
<div class="column"> | ||
<h2 class="ui small header">{{ _("Submission") }}</h2> | ||
<p><a href="/communities/{{ community.slug }}/pages/how-to-submit">How to submit</a></p> | ||
<p><a href="/communities/{{ community.slug }}/pages/join">Join with your NIH project</a></p> | ||
<p><a href="https://help.zenodo.org">Help documentation</a></p> | ||
</div> | ||
<div class="right aligned column"> | ||
<a href="https://open-research-europe.ec.europa.eu/" aria-label="CERN"> | ||
<img src="{{ url_for('static', filename='images/eufunded.png') }}" width="100" height="100" alt="" /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{# | ||
-*- coding: utf-8 -*- | ||
Copyright (C) 2023-2024 CERN. | ||
|
||
Invenio App RDM is free software; you can redistribute it and/or modify it | ||
under the terms of the MIT License; see LICENSE file for more details. | ||
#} | ||
|
||
<div class="footer-bottom sub-footer theme-default rel-p-1"> | ||
<div class="ui container"> | ||
<div class="ui grid"> | ||
{%- block footer_bottom_left %} | ||
<div | ||
class="four wide computer six wide tablet sixteen wide mobile column left middle aligned" | ||
> | ||
{% trans %} | ||
Powered by | ||
<a href="http://information-technology.web.cern.ch/about/computer-centre">CERN Data Centre</a> & <a href="https://inveniordm.docs.cern.ch/">InvenioRDM</a> | ||
{% endtrans %} | ||
</div> | ||
{%- endblock footer_bottom_left %} | ||
|
||
<div | ||
class="four wide computer four wide tablet sixteen wide mobile column centered middle aligned" | ||
> | ||
{% trans %} | ||
<i class="green check circle outline icon"></i> | ||
<a href="https://support.zenodo.org/help/en-gb/11/108">Verified community</a> | ||
{% endtrans %} | ||
</div> | ||
<div | ||
class="four wide computer six wide tablet sixteen wide mobile column right aligned" | ||
> | ||
{%- block footer_bottom_right %} | ||
<div class="ui horizontal list"> | ||
<div class="item"><a href="https://stats.uptimerobot.com/vlYOVuWgM/">{{ _('Status') }}</a></div> | ||
<div class="item"><a href="https://about.zenodo.org/privacy-policy">{{ _('Privacy policy') }}</a></div> | ||
<div class="item"><a href="https://about.zenodo.org/cookie-policy">{{ _('Cookie policy') }}</a></div> | ||
<div class="item"><a href="https://about.zenodo.org/terms">{{ _('Terms of use') }}</a></div> | ||
<div class="item"><a href="/support">{{ _('Support') }}</a></div> | ||
</div> | ||
{%- if config.I18N_LANGUAGES %} {% from | ||
"invenio_i18n/macros/language_selector.html" import language_selector_dropdown %} | ||
{{ language_selector_dropdown() }} | ||
{%- endif %} | ||
{%- endblock footer_bottom_right %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
138 changes: 138 additions & 0 deletions
138
templates/themes/nih/invenio_communities/details/header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{# -*- coding: utf-8 -*- | ||
|
||
This file is part of Invenio. | ||
Copyright (C) 2024 CERN. | ||
|
||
Invenio is free software; you can redistribute it and/or modify it | ||
under the terms of the MIT License; see LICENSE file for more details. | ||
#} | ||
|
||
{%- from "invenio_theme/macros/truncate.html" import truncate_text %} | ||
{%- from "invenio_communities/details/macros/access-status-label.html" import access_status_label -%} | ||
|
||
<div | ||
class="ui container fluid with-submenu rel-pt-2 ml-0-mobile mr-0-mobile"> | ||
<div class="ui container fluid mr-0-mobile ml-0-mobile"> | ||
<div class="ui relaxed container grid"> | ||
<div class="row pb-0"> | ||
<div | ||
class="sixteen wide mobile sixteen wide tablet ten wide computer column"> | ||
<div | ||
class="community-header flex align-items-center column-mobile align-items-start-mobile"> | ||
<div class="flex align-items-center"> | ||
<div class="ui rounded image community-image mt-5 rel-mr-2"> | ||
<a href="{{ community.links.self_html }}"> | ||
<img | ||
src="{{ community.links.logo | resolve_community_logo(community.id) }}" | ||
alt="" | ||
class="rel-mb-1" | ||
/> | ||
</a> | ||
</div> | ||
|
||
<div class="mobile only"> | ||
<a class="remove-default-style" href="{{ community.links.self_html }}"> | ||
<h1 class="ui medium header mb-5"> | ||
{{ community.metadata.title }} | ||
</h1> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<div class="flex align-items-center mb-5 tablet computer only"> | ||
|
||
<a class="remove-default-style" href="{{ community.links.self_html }}"> | ||
<h1 class="ui medium header mb-0"> | ||
{{ community.metadata.title }} | ||
</h1> | ||
</a> | ||
|
||
{% if community.access.visibility == 'restricted' %} | ||
<div class="rel-ml-1"> | ||
{{ access_status_label() }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="text-muted"> | ||
{% if community.access.visibility == 'restricted' %} | ||
<div class="mobile only rel-mb-1"> | ||
{{ access_status_label() }} | ||
</div> | ||
{% endif %} | ||
|
||
{% if community.metadata.organizations %} | ||
{% for org in community.metadata.organizations %} | ||
{% set ror_id = org.id %} | ||
{% set name = org.name %} | ||
|
||
<div class="inline-computer mt-5 rel-mr-1"> | ||
{% if loop.index == 1 %} | ||
by | ||
{% endif %} | ||
|
||
{{ name }} | ||
|
||
<a target="_blank" class="no-text-decoration" data-tooltip="Verified community" href="https://support.zenodo.org/help/en-gb/11/108"> | ||
<i class="green check circle outline link icon"></i> | ||
</a> | ||
{{ ", " if not loop.last }} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if community.metadata.website %} | ||
<div class="inline-computer mt-5 rel-mr-1"> | ||
<i class="linkify icon" aria-hidden="true"></i> | ||
<a href="{{ community.metadata.website }}"> | ||
{{ community.metadata.website }} | ||
</a> | ||
</div> | ||
{% endif %} | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div | ||
class="sixteen wide mobile sixteen wide tablet six wide computer right aligned middle aligned column"> | ||
<a href="/communities/{{ community.slug }}/pages/how-to-submit" | ||
class="ui positive button labeled icon rel-mt-1 theme-secondary"> | ||
<i class="upload icon" aria-hidden="true"></i> | ||
{{ _("How to submit") }} | ||
</a> | ||
<a href="/communities/{{ community.slug }}/pages/join" | ||
class="ui positive item button labeled theme-primary icon rel-mt-1"> | ||
<i class="users icon" aria-hidden="true"></i> | ||
{{ _("Join with your NIH project") }} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="ui divider mobile only"></div> | ||
<div class="ui container fluid theme-tertiary page-subheader rel-mt-2 p-10 mr-0-mobile ml-0-mobile"> | ||
<h5 class="ui container"> | ||
Turning discovery into health | ||
</h5> | ||
</div> | ||
<div | ||
class="ui container fluid secondary pointing stackable menu pl-0 pr-0 theme-primary mt-0 mr-0-mobile ml-0-mobile"> | ||
{% if community_menu_active %} | ||
<div class="ui container"> | ||
{% for item in current_menu.submenu('communities').children | ||
if (item.permissions == True or permissions[item.permissions]) and item.visible %} | ||
<a | ||
class="item {{ 'active' if active_community_header_menu_item == item.name }} {{ 'disabled' if not item.url }}" | ||
href="{{ item.url }}" | ||
> | ||
<i aria-hidden="true" class="{{ item.icon }} icon"></i> | ||
{{ item.text }} | ||
</a> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.