diff --git a/templates/semantic-ui/invenio_app_rdm/header.html b/templates/semantic-ui/invenio_app_rdm/header.html new file mode 100644 index 000000000..f55dfae31 --- /dev/null +++ b/templates/semantic-ui/invenio_app_rdm/header.html @@ -0,0 +1,142 @@ +{# + -*- coding: utf-8 -*- + Copyright (C) 2019-2020 CERN. + Copyright (C) 2019-2020 Northwestern University. + Copyright (C) 2021 New York University. + + 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. +#} + +
+
+ {%- block site_banner %} + {%- endblock site_banner %} +
+ {%- block banner %} + {% from 'invenio_banners/banner.html' import banner %} + {{ banner() }} + {%- endblock banner %} + {%- block navbar %} +
+ + {%- endblock navbar %} +
+ + {%- block flashmessages %} + {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} + {{ flashed_messages() }} + {%- endblock %} +
+ + {%- block breadcrumbs %} + {%- endblock breadcrumbs %} +
diff --git a/templates/semantic-ui/invenio_app_rdm/header_login.html b/templates/semantic-ui/invenio_app_rdm/header_login.html new file mode 100644 index 000000000..96433fc06 --- /dev/null +++ b/templates/semantic-ui/invenio_app_rdm/header_login.html @@ -0,0 +1,146 @@ +{# -*- coding: utf-8 -*- + + This file is part of Invenio. + Copyright (C) 2015-2021 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. +#} + + +{%- if config.ACCOUNTS %} + {%- if not current_user.is_authenticated %} +
+ + + {{ _('Log in') }} + + {%- if False %} + {% if security.registerable %} + + + {{ _('Sign up') }} + + {% endif %} + {% endif %} +
+ {%- else %} + + {# Quick-create ("plus") menu #} + {%- set plus_menu_items = current_menu.submenu('plus').children %} + {%- if plus_menu_items %} + + + + {% endif %} + + {%- if config.USERPROFILES and (current_user.roles | selectattr("name", "equalto", "administrator") | list) %} + + + + + {%- else %} + + + + {{ current_user.email|truncate(31,true) }} + + + + {{ _('Log out') }} + + {%- endif %} + {%- endif %} +{%- endif %}