diff --git a/bun.lock b/bun.lock index 1603c32..fabd042 100644 --- a/bun.lock +++ b/bun.lock @@ -3,15 +3,15 @@ "workspaces": { "": { "devDependencies": { - "@eslint/css": "^0.7.0", - "@eslint/js": "^9.26.0", - "@eslint/json": "^0.12.0", - "eslint": "^9.26.0", - "eslint-plugin-react": "^7.37.5", - "globals": "^16.1.0", - "lint-staged": "^16.0.0", - "prettier": "^3.5.3", - "prettier-plugin-jinja-template": "^2.1.0", + "@eslint/css": "latest", + "@eslint/js": "latest", + "@eslint/json": "latest", + "eslint": "latest", + "eslint-plugin-react": "latest", + "globals": "latest", + "lint-staged": "latest", + "prettier": "latest", + "prettier-plugin-jinja-template": "latest", }, }, }, @@ -78,8 +78,6 @@ "array.prototype.findlast": ["array.prototype.findlast@1.2.5", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "es-shim-unscopables": "^1.0.2" } }, "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ=="], - "array.prototype.flat": ["array.prototype.flat@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg=="], - "array.prototype.flatmap": ["array.prototype.flatmap@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg=="], "array.prototype.tosorted": ["array.prototype.tosorted@1.1.4", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.3", "es-errors": "^1.3.0", "es-shim-unscopables": "^1.0.2" } }, "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA=="], @@ -358,7 +356,7 @@ "json-stable-stringify-without-jsonify": ["json-stable-stringify-without-jsonify@1.0.1", "", {}, "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="], - "jsx-ast-utils": ["jsx-ast-utils@3.3.5", "", { "dependencies": { "array-includes": "^3.1.6", "array.prototype.flat": "^1.3.1", "object.assign": "^4.1.4", "object.values": "^1.1.6" } }, "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ=="], + "jsx-ast-utils": ["jsx-ast-utils@2.4.1", "", { "dependencies": { "array-includes": "^3.1.1", "object.assign": "^4.1.0" } }, "sha512-z1xSldJ6imESSzOjd3NNkieVJKRlKYSOtMG8SFyCj2FIrvSaSuli/WjpBkEzCBoR9bYYYFgqJw61Xhu7Lcgk+w=="], "keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="], diff --git a/devenv.yaml b/devenv.yaml index 68616a4..c535723 100644 --- a/devenv.yaml +++ b/devenv.yaml @@ -1,4 +1,4 @@ # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json inputs: - nixpkgs: - url: github:cachix/devenv-nixpkgs/rolling + nixpkgs: + url: github:cachix/devenv-nixpkgs/rolling diff --git a/eslint.config.mjs b/eslint.config.mjs index dff07e8..85ad175 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,13 +5,27 @@ import json from "@eslint/json"; import css from "@eslint/css"; import { defineConfig } from "eslint/config"; - export default defineConfig([ - { files: ["**/*.{js,mjs,cjs,jsx}"], plugins: { js }, extends: ["js/recommended"] }, - { files: ["**/*.{js,mjs,cjs,jsx}"], languageOptions: { globals: globals.browser } }, - pluginReact.configs.flat.recommended, - { files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] }, - { files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] }, - { files: ["**/*.json5"], plugins: { json }, language: "json/json5", extends: ["json/recommended"] }, - { files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] }, -]); \ No newline at end of file + { files: ["**/*.{js,mjs,cjs,jsx}"], plugins: { js }, extends: ["js/recommended"] }, + { files: ["**/*.{js,mjs,cjs,jsx}"], languageOptions: { globals: globals.browser } }, + pluginReact.configs.flat.recommended, + { + files: ["**/*.json"], + plugins: { json }, + language: "json/json", + extends: ["json/recommended"], + }, + { + files: ["**/*.jsonc"], + plugins: { json }, + language: "json/jsonc", + extends: ["json/recommended"], + }, + { + files: ["**/*.json5"], + plugins: { json }, + language: "json/json5", + extends: ["json/recommended"], + }, + { files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] }, +]); diff --git a/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/theme.js b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/theme.js index 26a987d..5281035 100644 --- a/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/theme.js +++ b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/theme.js @@ -7,38 +7,38 @@ import React from "react"; // called on document ready $(function () { - importZammadScript(); - syncLogoHover(); + importZammadScript(); + syncLogoHover(); }); function importZammadScript() { - let scriptNode = document.createElement("hidden"); //needed for zammad script - scriptNode.id = "zammad_form_script"; - scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js"; - document.head.appendChild(scriptNode); + let scriptNode = document.createElement("hidden"); //needed for zammad script + scriptNode.id = "zammad_form_script"; + scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js"; + document.head.appendChild(scriptNode); - $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { - $("#feedback-form").ZammadForm({ - messageTitle: "Contact us", - showTitle: true, - messageSubmit: "Submit", - messageThankYou: - "Thank you for your message, (#%s). We will get back to you as quickly as possible!", - modal: true, + $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { + $("#feedback-form").ZammadForm({ + messageTitle: "Contact us", + showTitle: true, + messageSubmit: "Submit", + messageThankYou: + "Thank you for your message, (#%s). We will get back to you as quickly as possible!", + modal: true, + }); }); - }); } // used for sticky test instance notification $(".ui.sticky.test-instance").sticky({ - context: "body", + context: "body", }); export function toggleVisibility(id) { - var element = document.getElementById(id); - var isHided = element.style.display === "none"; + var element = document.getElementById(id); + var isHided = element.style.display === "none"; - element.style.display = isHided ? "block" : "none"; + element.style.display = isHided ? "block" : "none"; } window.toggleVisibility = toggleVisibility; @@ -48,39 +48,39 @@ const searchBarOptions = JSON.parse(headerSearchbar.dataset.options); // Synchronises the hover states of the subcomponents of the logo export function syncLogoHover() { - const logoGrad = document.getElementById("int-header-logo-grad"); - const logoText = document.getElementById("int-header-logo-text"); + const logoGrad = document.getElementById("int-header-logo-grad"); + const logoText = document.getElementById("int-header-logo-text"); - const originalFillGrad = logoGrad.getAttribute("fill"); - const originalColorGrad = logoGrad.getAttribute("color"); - const originalFillText = logoText.getAttribute("fill"); - const originalColorText = logoText.getAttribute("color"); + const originalFillGrad = logoGrad.getAttribute("fill"); + const originalColorGrad = logoGrad.getAttribute("color"); + const originalFillText = logoText.getAttribute("fill"); + const originalColorText = logoText.getAttribute("color"); - logoGrad.addEventListener("mouseover", () => { - logoText.setAttribute("fill", "@primaryLinkHoverBackground"); - logoText.setAttribute("color", "@primaryLinkHoverBackground"); - }); - logoGrad.addEventListener("mouseout", () => { - logoText.setAttribute("fill", originalFillText); - logoText.setAttribute("color", originalColorText); - }); + logoGrad.addEventListener("mouseover", () => { + logoText.setAttribute("fill", "@primaryLinkHoverBackground"); + logoText.setAttribute("color", "@primaryLinkHoverBackground"); + }); + logoGrad.addEventListener("mouseout", () => { + logoText.setAttribute("fill", originalFillText); + logoText.setAttribute("color", originalColorText); + }); - logoText.addEventListener("mouseover", () => { - logoGrad.setAttribute("fill", "@primaryLinkHoverBackground"); - logoGrad.setAttribute("color", "@primaryLinkHoverBackground"); - }); - logoText.addEventListener("mouseout", () => { - logoGrad.setAttribute("fill", originalFillGrad); - logoGrad.setAttribute("color", originalColorGrad); - }); + logoText.addEventListener("mouseover", () => { + logoGrad.setAttribute("fill", "@primaryLinkHoverBackground"); + logoGrad.setAttribute("color", "@primaryLinkHoverBackground"); + }); + logoText.addEventListener("mouseout", () => { + logoGrad.setAttribute("fill", originalFillGrad); + logoGrad.setAttribute("color", originalColorGrad); + }); } window.syncLogoHover = syncLogoHover; ReactDOM.render( - , - headerSearchbar, + , + headerSearchbar, ); diff --git a/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/unlock.js b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/unlock.js index a6529ad..b55e740 100644 --- a/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/unlock.js +++ b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_iform/unlock.js @@ -6,37 +6,37 @@ import $ from "jquery"; async function generateForm() { - // get email from `/api/me` - let email = "???"; - const response = await fetch("/api/me"); - if (response.ok) { - const json = await response.json(); - email = json?.email || "???"; - } + // get email from `/api/me` + let email = "???"; + const response = await fetch("/api/me"); + if (response.ok) { + const json = await response.json(); + email = json?.email || "???"; + } - // show form - $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { - $("#anchor-unlock-form").ZammadForm({ - attributes: [ - {}, - { defaultValue: email }, - { - defaultValue: `Could you unlock my account (${email}) for research-uploads?`, - // TODO: add to defaultValue once policy on how to get accepted is decided... - }, - ], - modal: false, + // show form + $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { + $("#anchor-unlock-form").ZammadForm({ + attributes: [ + {}, + { defaultValue: email }, + { + defaultValue: `Could you unlock my account (${email}) for research-uploads?`, + // TODO: add to defaultValue once policy on how to get accepted is decided... + }, + ], + modal: false, + }); + + // focus first entry of now-shown form + document.getElementById("zammad-form-name-inline").focus(); }); - - // focus first entry of now-shown form - document.getElementById("zammad-form-name-inline").focus(); - }); } -$(function() { - // called when DOM is ready - const generateFormElement = document.getElementById("generate-unlock-form"); - if (generateFormElement) { - generateFormElement.onclick = generateForm; - } +$(function () { + // called when DOM is ready + const generateFormElement = document.getElementById("generate-unlock-form"); + if (generateFormElement) { + generateFormElement.onclick = generateForm; + } }); diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/accounts.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/accounts.less index 165bc27..cc1b2cc 100644 --- a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/accounts.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/accounts.less @@ -91,7 +91,7 @@ } } -.field>input::selection { +.field > input::selection { background: @fieldInputSelectionBackground; } diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/overrides.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/overrides.less index 473edbc..2a6d01e 100644 --- a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/overrides.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/overrides.less @@ -23,7 +23,6 @@ color: @primaryText; } - /*** * login background color * from : rgba(13,95,137,.8) @@ -34,7 +33,6 @@ background-color: @primaryBackground; } - /*** * login & sigup page title * from : #0377cd @@ -44,7 +42,6 @@ color: @primaryText; } - /*** * anchor color * from : #ef4444 @@ -54,7 +51,6 @@ a { color: @iformBlue; } - /*** * force: the font changes ***/ @@ -71,8 +67,8 @@ pre, .ui.button, .ui.items, .ui.accordion .title:not(.ui), -.ui.items>.item>.content>.header, -.ui.modal>.header, +.ui.items > .item > .content > .header, +.ui.modal > .header, .ui.menu, .ui.header, .ui.form input[type], @@ -84,7 +80,6 @@ pre { font-size: 14px; } - /*** * search.button ***/ @@ -97,7 +92,6 @@ pre { * accordion title ***/ .ui.accordion.styled { - .title, .title.active { background-color: @greyLight; @@ -164,7 +158,6 @@ pre { &.embargoed { background-color: @accessRightEmbargoed; - ; } &.metadata-only { @@ -174,14 +167,14 @@ pre { @font-face { font-family: "Source Sans Pro"; - src: url('./fonts/SourceSansPro/SourceSansPro-Regular.ttf') format('truetype'); + src: url("./fonts/SourceSansPro/SourceSansPro-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; } @font-face { font-family: "Source Sans Pro"; - src: url('./fonts/SourceSansPro/SourceSansPro-Italic.ttf') format('truetype'); + src: url("./fonts/SourceSansPro/SourceSansPro-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; } diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/search.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/search.less index 53988a5..8e596ae 100644 --- a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/search.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/search.less @@ -15,7 +15,7 @@ .creator:not(:last-child):after { color: @greyDark; - content: ';'; + content: ";"; } .creator { diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/theme.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/theme.less index 4473c6f..b2a7429 100644 --- a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/theme.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/theme.less @@ -30,7 +30,9 @@ .no-decoration { color: inherit; text-decoration: none; - transition: background-color 0.15s ease 0s, color 0.15s ease 0s; + transition: + background-color 0.15s ease 0s, + color 0.15s ease 0s; outline: none; } @@ -42,7 +44,8 @@ border: 1px solid #bfb5b5; } -.random-records-frontpage {} +.random-records-frontpage { +} .random-records-frontpage .grid .column { width: 380px !important; diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/variables.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/variables.less index 5c823e5..0bfec13 100644 --- a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/variables.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_iform/variables.less @@ -15,57 +15,57 @@ //@navbar_background_color: #FFFFFF; // badge colors, accessibility -@accessRight : #E9711C; -@accessRightOpen : @accessRight; -@accessRightRestricted: #FBBD08; -@accessRightEmbargoed : #DB2828; -@accessRightClosed : @accessRightEmbargoed; -@accessRightMetadata : #2185D0; +@accessRight: #e9711c; +@accessRightOpen: @accessRight; +@accessRightRestricted: #fbbd08; +@accessRightEmbargoed: #db2828; +@accessRightClosed: @accessRightEmbargoed; +@accessRightMetadata: #2185d0; -@schema: #17B3F3; +@schema: #17b3f3; // primary colors of I-Form -@iformBlack : #140826; -@iformBlue: #060E9F; -@iformLightGreen: #08E673; -@iformDarkGreen: #069F4B; -@iformCyan: #02E8F7; +@iformBlack: #140826; +@iformBlue: #060e9f; +@iformLightGreen: #08e673; +@iformDarkGreen: #069f4b; +@iformCyan: #02e8f7; // general -@primaryBackground: #FFF; -@primaryText : #000; +@primaryBackground: #fff; +@primaryText: #000; // accent colors -@greyDark : #777; -@greyLight : #E0E1E2; -@labelKeywordBackground: #E8E8E8; +@greyDark: #777; +@greyLight: #e0e1e2; +@labelKeywordBackground: #e8e8e8; // link and button colors -@primaryLinkInverted : @primaryText; +@primaryLinkInverted: @primaryText; @primaryLinkBackgroundInverted: @primaryBackground; -@primaryLink : @primaryBackground; -@primaryLinkHoverBackground : @primaryText; -@primaryButton : @primaryBackground; -@primaryButtonHoverBackground : @primaryText; -@primaryButtonInverted : @primaryText; +@primaryLink: @primaryBackground; +@primaryLinkHoverBackground: @primaryText; +@primaryButton: @primaryBackground; +@primaryButtonHoverBackground: @primaryText; +@primaryButtonInverted: @primaryText; // account (signin, signup) specific -@primaryFormAccounts : @primaryBackground; -@formAccountsInputPlaceholder : silver; -@fieldInputSelectionBackground: #50A2CE; -@signInBackground : #245B78; +@primaryFormAccounts: @primaryBackground; +@formAccountsInputPlaceholder: silver; +@fieldInputSelectionBackground: #50a2ce; +@signInBackground: #245b78; // footer specific -@footerGrey : #5E5E5E; -@footerBottomBackground: #F2F2F2; +@footerGrey: #5e5e5e; +@footerBottomBackground: #f2f2f2; // record specific -@recordVersionBackground : #F2F2F2; +@recordVersionBackground: #f2f2f2; @randomRecordsFrontpageArticle: #22242626; // input -@outlineColor: #85B7D9; +@outlineColor: #85b7d9; // notification -@notificationBackground: #FFFAF3; -@notificationBorder: #E2D5C2; +@notificationBackground: #fffaf3; +@notificationBorder: #e2d5c2; diff --git a/invenio_theme_iform/templates/invenio_theme_iform/423.html b/invenio_theme_iform/templates/invenio_theme_iform/423.html index 8696913..11a875a 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/423.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/423.html @@ -5,10 +5,9 @@ modify it under the terms of the MIT License; see LICENSE file for more details. #} - {% extends config.THEME_ERROR_TEMPLATE %} {% block message %} -

Locked

-

The resource that is being accessed is locked.

+

Locked

+

The resource that is being accessed is locked.

{% endblock message %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html index 5167199..2eeb432 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html @@ -6,95 +6,128 @@ details. #} - - - - {%- block head %} - {%- block head_meta %} - - - - {%- if description %}{% endif %} - {%- if keywords %}{% endif %} - {%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %} - {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} - - {%- endfor %} - {%- endif %} - {%- endblock head_meta %} - {%- block head_title %} - {%- set title = title or config.THEME_SITENAME %} - {{title}} - {%- endblock head_title %} - {%- block head_links %} - - {%- if keywords %}{% endif %} - {%- block head_links_langs %} - {%- if alternate_urls %} - {%- for alt_ln, alternate_url in alternate_urls.items() %} - - {%- endfor %} - {%- endif %} - {%- endblock %} - {%- block head_apple_icons %} - {%- for size in [144, 114, 72, 57] %} - {%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %} - - {%- endfor %} - {%- endblock head_apple_icons %} - {%- endblock head_links %} - {%- block header %}{% endblock header %} - {%- block css %} - {{ webpack['theme.css'] }} - {{ webpack['invenio-theme-iform-theme.css'] }} - - - {%- endblock css %} - {%- endblock head %} - - - {% if not config.THEME_IFORM_PRODUCTION %} -
-

{{_ ("Test Instance") }}

-

{{_ ("This is the test instance of the I-Form Repository.") }}

-
- {% endif %} - {%- block body %} - {%- block browserupgrade %} - - {%- endblock browserupgrade %} - {%- block body_inner %} +{% set lang_attr = g.ln.split('_', 1)[0]|safe if g.ln else '' %} +{% set html_class_attr = html_css_classes|join(' ') if html_css_classes else '' %} +{% set body_class_attr = body_css_classes|join(' ') if body_css_classes else '' %} +{% set rtl_attr = rtl_direction|safe if rtl_direction and g.ln else '' %} - {%- block navbar_header %} - {%- include "invenio_theme_iform/navbar.html" %} - - {%- block flashmessages %} - {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} - {{ flashed_messages() }} + + + + {%- block head %} + {%- block head_meta %} + + + + {%- if description %} + + {% endif %} + {%- if keywords %}{% endif %} + {%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %} + {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} + + {%- endfor %} + {%- endif %} + {%- endblock head_meta %} + {%- block head_title %} + {%- set title = title or config.THEME_SITENAME %} + {{ title }} + {%- endblock head_title %} + {%- block head_links %} + + {%- if keywords %}{% endif %} + {%- block head_links_langs %} + {%- if alternate_urls %} + {%- for alt_ln, alternate_url in alternate_urls.items() %} + + {%- endfor %} + {%- endif %} + {%- endblock %} + {%- block head_apple_icons %} + {%- for size in [144, 114, 72, 57] %} + {%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %} + + {%- endfor %} + {%- endblock head_apple_icons %} + {%- endblock head_links %} + {%- block header %} + {% endblock header %} + {%- block css %} + {{ webpack['theme.css'] }} + {{ webpack['invenio-theme-iform-theme.css'] }} + + + {%- endblock css %} + {%- endblock head %} + + + {% if not config.THEME_IFORM_PRODUCTION %} +
+

"Test Instance"

+

"This is the test instance of the I-Form Repository."

+
+ {% endif %} + {%- block body %} + {%- block browserupgrade %} + + {%- endblock browserupgrade %} + {%- block body_inner %} - {%- endblock %} - {%- endblock navbar_header %} + {%- block navbar_header %} + {%- include "invenio_theme_iform/navbar.html" %} + + {%- block flashmessages %} + {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} + {{ flashed_messages() }} + {%- endblock flashmessages %} + {%- endblock navbar_header %} - {# + {# {%- block page_header %} {% include config.THEME_HEADER_TEMPLATE %} {%- endblock page_header %} #} - {%- block page_body %} -{% include "invenio_theme/body.html" %} - {%- endblock page_body %} - {%- endblock body_inner %} - {%- block javascript %} -{% include config.THEME_JAVASCRIPT_TEMPLATE %} - {%- endblock javascript %} - {%- block trackingcode %}{% include config.THEME_TRACKINGCODE_TEMPLATE %} - {%- endblock %} - {%- endblock body %} - + {%- block page_body %} + {% include "invenio_theme/body.html" %} + {%- endblock page_body %} + {%- endblock body_inner %} + {%- block javascript %} + {% include config.THEME_JAVASCRIPT_TEMPLATE %} + {%- endblock javascript %} + {%- block trackingcode %} + {% include config.THEME_TRACKINGCODE_TEMPLATE %} + {%- endblock %} + {%- endblock body %} + diff --git a/invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html index 3ae34b8..0c8f9b1 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html @@ -1,34 +1,32 @@ {%- if config.ACCOUNTS %} -{%- if not current_user.is_authenticated %} + {%- if not current_user.is_authenticated %} -{%- if config.SECURITY_REGISTERABLE %} - - {%- endif %} - - - - -{%- else %} -{%- if config.USERPROFILES %} - - - + {%- if config.SECURITY_REGISTERABLE %} + + {%- endif %} -{%- endif %} -{%- endif %} + + {%- else %} + {%- if config.USERPROFILES %} + +
+ Sign out +
+ {%- endif %} + {%- endif %} {%- endif %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html index 5252d4d..9daa8d1 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html @@ -5,90 +5,107 @@ modify it under the terms of the MIT License; see LICENSE file for more details. #} - {% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %} - - {% from "invenio_accounts/_macros.html" import render_field, form_errors %} {%- from "invenio_oauthclient/_macros.html" import oauth_button %} {% block page_body %} -
-
-
-
+
+
+
+
+
+ - - {%- block registerable %} - {%- if security.registerable %} -
- {% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %} - Sign up -
- {%- endif %} - {%- endblock registerable %} - - {%- block recoverable %} - {%- if security.recoverable %} - - {%- endif %} - {%- endblock recoverable %}
-
-
{% endblock page_body %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html index 8fa40ef..3df5166 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html @@ -5,92 +5,104 @@ modify it under the terms of the MIT License; see LICENSE file for more details. #} - {% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %} - {% from "invenio_accounts/_macros.html" import render_field, form_errors %} {% block page_body %} -
+
-
- -
-
-

Create an Account

-
- -
-
-

Citeable. Discoverable.

-

- Uploads get a Digital Object Identifier (DOI) to make them easily and uniquely citeable. -

Communities.

-

- Accept or reject uploads to your own community (e.g workshops, EU projects, institutions or entire disciplines). - -

Trusted Research Data Management

-

- Built on top of I-Form expertise in the managing of research data. - -

-
- -
- {# Sigup with SSO #} - {%- if config.INVENIO_CONFIG_IFORM_SHIBBOLETH %} -
- -
{{_ ("Or") }}
- {%- endif %} - - {%- block form_header %} - {# can add a header img #} - {%- block form_outer %} - {%- endblock form_outer %} - {%- endblock form_header %} - - {%- with form = register_user_form %} - {%- set accordion_active = "active" if form.errors else "" %} -
-
-
- Sign up with repository credentials - +
+
+
+

Create an Account

-
-
- {{ form_errors(form) }} - {{ form.hidden_tag() }} - {%- block registration_form_fields scoped %} - {{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }} - {{ render_field(form.password, icon="lock icon", errormsg=False) }} - {%- if form.password_confirm %} - {{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }} - {%- endif %} - {%- endblock registration_form_fields %} - {%- if form.recaptcha %} -
{{ form.recaptcha() }}
- {%- endif %} +
+
+

Citeable. Discoverable.

+

+ Uploads get a Digital Object Identifier (DOI) to make them easily and + uniquely citeable. +

-
- +

Communities.

+

+ Accept or reject uploads to your own community (e.g workshops, EU projects, + institutions or entire disciplines). +

+

Trusted Research Data Management

+

+ Built on top of I-Form expertise in the managing of research data. +

-
-
+ +
+ {# Sigup with SSO #} + {%- if config.INVENIO_CONFIG_IFORM_SHIBBOLETH %} +
+ +
+ {{ _ ("Or") }} +
+ {%- endif %} + + {%- block form_header %} + {# can add a header img #} + {%- block form_outer %} + {%- endblock form_outer %} + {%- endblock form_header %} + + {%- with form = register_user_form %} + {%- set accordion_active = "active" if form.errors else "" %} +
+
+
+ Sign up with repository credentials + +
+
+
+ {{ form_errors(form) }} + {{ form.hidden_tag() }} + {%- block registration_form_fields scoped %} + {{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }} + {{ render_field(form.password, icon="lock icon", errormsg=False) }} + {%- if form.password_confirm %} + {{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }} + {%- endif %} + {%- endblock registration_form_fields %} + + {%- if form.recaptcha %} +
{{ form.recaptcha() }}
+ {%- endif %} + +
+ +
+
+
+
+
+ {%- endwith %} +
+
- {%- endwith %} -
-
-
- - {% endblock page_body %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/base.html b/invenio_theme_iform/templates/invenio_theme_iform/base.html index 280a6a9..4111c29 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/base.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/base.html @@ -6,89 +6,103 @@ details. #} - + - - {%- block head %} - {%- block head_meta %} - - - + + {%- block head %} + {%- block head_meta %} + + + - {%- if description %} - - {% endif %} + {%- if description %} + + {% endif %} - {%- if keywords %} - - {% endif %} + {%- if keywords %} + + {% endif %} - {%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %} - {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} - - {%- endfor %} - {%- endif %} - {%- endblock head_meta %} + {%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %} + {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} + + {%- endfor %} + {%- endif %} + {%- endblock head_meta %} - {%- block head_title %} - {%- set title = title or config.THEME_SITENAME %} - {{title}} - {%- endblock head_title %} + {%- block head_title %} + {%- set title = title or config.THEME_SITENAME %} + {{ title }} + {%- endblock head_title %} - {%- block head_links %} - + {%- block head_links %} + - {%- if keywords %} - - {% endif %} + {%- if keywords %} + + {% endif %} - {%- block head_links_langs %} - {%- if alternate_urls %} - {%- for alt_ln, alternate_url in alternate_urls.items() %} - - {%- endfor %} - {%- endif %} - {%- endblock %} - {%- endblock head_links %} + {%- block head_links_langs %} + {%- if alternate_urls %} + {%- for alt_ln, alternate_url in alternate_urls.items() %} + + {%- endfor %} + {%- endif %} + {%- endblock %} + {%- endblock head_links %} - {%- block header %}{% endblock header %} + {%- block header %} + {% endblock header %} - {%- block css %} - {{ webpack["theme.css"] }} - {{ webpack["invenio-theme-iform-theme.css"] }} - {%- endblock css %} - {%- endblock head %} - + {%- block css %} + {{ webpack["theme.css"] }} + {{ webpack["invenio-theme-iform-theme.css"] }} + {%- endblock css %} + {%- endblock head %} + - - {%- block body %} - {%- block browserupgrade %} - - {%- endblock browserupgrade %} + + {%- block body %} + {%- block browserupgrade %} + + {%- endblock browserupgrade %} - {%- block body_inner %} - {%- block page_header %} - {% include config.THEME_HEADER_TEMPLATE %} - {%- endblock page_header %} + {%- block body_inner %} + {%- block page_header %} + {% include config.THEME_HEADER_TEMPLATE %} + {%- endblock page_header %} - {%- block page_body %} - {% include "invenio_theme/body.html" %} - {%- endblock page_body %} + {%- block page_body %} + {% include "invenio_theme/body.html" %} + {%- endblock page_body %} - {%- block page_footer %} - {% include config.THEME_FOOTER_TEMPLATE %} - {%- endblock page_footer %} - {%- endblock body_inner %} + {%- block page_footer %} + {% include config.THEME_FOOTER_TEMPLATE %} + {%- endblock page_footer %} + {%- endblock body_inner %} - {%- block javascript %} - {% include config.THEME_JAVASCRIPT_TEMPLATE %} - {%- endblock javascript %} + {%- block javascript %} + {% include config.THEME_JAVASCRIPT_TEMPLATE %} + {%- endblock javascript %} - {%- block trackingcode %} - {% include config.THEME_TRACKINGCODE_TEMPLATE %} - {%- endblock %} - {%- endblock body %} - + {%- block trackingcode %} + {% include config.THEME_TRACKINGCODE_TEMPLATE %} + {%- endblock %} + {%- endblock body %} + diff --git a/invenio_theme_iform/templates/invenio_theme_iform/benefits.html b/invenio_theme_iform/templates/invenio_theme_iform/benefits.html index 92cfca6..aad9880 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/benefits.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/benefits.html @@ -7,15 +7,33 @@ #}
-

Good reasons to use the I-Form Repository

+

Good reasons to use the I-Form Repository

-
    -
  • Safe — Your research results are permanently available.
  • -
  • Trusted — A service from I-Form, based on software developed by CERN.
  • -
  • Citeable — Every upload is assigned a Digital Object Identifier (DOI).
  • -
  • No waiting time — Uploads are made available online as soon as you hit publish. Your DOI is registered within seconds.
  • -
  • Open or closed — You determine the visibility of your uploads. A restricted access mode is possible.
  • -
  • Versioning — Easily update your dataset with the versioning feature.
  • -
  • Usage statistics — All uploads display standards compliant usage statistics. (More)
  • -
+
    +
  • Safe — Your research results are permanently available.
  • +
  • + Trusted — A service from I-Form, based on software developed by + CERN. +
  • +
  • + Citeable — Every upload is assigned a Digital Object Identifier + (DOI). +
  • +
  • + No waiting time — Uploads are made available online as soon as + you hit publish. Your DOI is registered within seconds. +
  • +
  • + Open or closed — You determine the visibility of your uploads. A + restricted access mode is possible. +
  • +
  • + Versioning — Easily update your dataset with the versioning + feature. +
  • +
  • + Usage statistics — All uploads display standards compliant usage + statistics. (More) +
  • +
diff --git a/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html b/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html index a3d033d..063ba80 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html @@ -7,19 +7,19 @@ #}
-

Need help?

+

Need help?

- {%- if config.THEME_IFORM_CONTACT_FORM %} - - {%- endif %} -

We can help with:

+ {%- if config.THEME_IFORM_CONTACT_FORM %} + + {%- endif %} +

We can help with:

-
    -
  • Uploading your research results, software, preprints, etc.
  • -
  • Increasing upload limit beyond our default policy of 10GB.
  • -
  • Establishing contact with data stewards.
  • -
  • Finding individual solutions.
  • -
+
    +
  • Uploading your research results, software, preprints, etc.
  • +
  • Increasing upload limit beyond our default policy of 10GB.
  • +
  • Establishing contact with data stewards.
  • +
  • Finding individual solutions.
  • +
diff --git a/invenio_theme_iform/templates/invenio_theme_iform/default_error.html b/invenio_theme_iform/templates/invenio_theme_iform/default_error.html index 21e9bf9..a08bcd9 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/default_error.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/default_error.html @@ -5,14 +5,13 @@ modify it under the terms of the MIT License; see LICENSE file for more details. #} +{% extends config.THEME_ERROR_TEMPLATE %} - {% extends config.THEME_ERROR_TEMPLATE %} - - {% block message %} -

Internal server error

+{% block message %} +

Internal server error

- Please contact our support to let - us know about this error. + Please contact our support to + let us know about this error.

{# TODO: provide g.sentry_event_id here once sentry is configured, cf. invenio_theme/500.html #} - {% endblock message %} +{% endblock message %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/footer.html b/invenio_theme_iform/templates/invenio_theme_iform/footer.html index da9d9c1..d53414b 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/footer.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/footer.html @@ -7,74 +7,86 @@ #} {%- block css %} - {{ webpack['invenio-theme-iform-theme.css'] }} + {{ webpack['invenio-theme-iform-theme.css'] }} {%- endblock %} {%- block javascript %} - {{ webpack['invenio-theme-iform-js.js'] }} + {{ webpack['invenio-theme-iform-js.js'] }} {%- endblock javascript %}
diff --git a/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html b/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html index 7f3b087..b740cd2 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html @@ -7,66 +7,66 @@ #}
-
-
-
-

Research Results

+
+
+
+

Research Results

-
Frontpage: Description for research results
+
Frontpage: Description for research results
-
-
-
-
-

Publications

+
  • + Search for research results +
  • +
  • + Upload research results +
  • + +
    +
    +
    +
    +

    Publications

    -
    Frontpage: Description for publications
    +
    Frontpage: Description for publications
    -
    -
    -
    -
    -

    Educational Resources

    +
  • + Search for publications +
  • + +
    +
    +
    +
    +

    Educational Resources

    -
    Frontpage: Description for open educational resources
    +
    Frontpage: Description for open educational resources
    -
    +
  • + Search for educational resourses +
  • +
  • + Upload educational resources +
  • + +
    +
    -
    diff --git a/invenio_theme_iform/templates/invenio_theme_iform/header.html b/invenio_theme_iform/templates/invenio_theme_iform/header.html index 1840037..23e4ef4 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/header.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/header.html @@ -7,58 +7,63 @@ #} {% if not config.THEME_IFORM_PRODUCTION %} -
    -

    Test Instance

    -

    This is the test instance of the I-Form Repository.

    -
    +
    +

    Test Instance

    +

    This is the test instance of the I-Form Repository.

    +
    {% endif %}
    -
    - {%- block site_banner %} - {% from 'invenio_banners/banner.html' import banner %} - {{ banner() }} - {%- endblock site_banner %} +
    + {%- block site_banner %} + {% from 'invenio_banners/banner.html' import banner %} + {{ banner() }} + {%- endblock site_banner %} - {%- block navbar %} -
    - - - {%- endblock navbar %} - - {%- block flashmessages %} - {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} - {{ flashed_messages() }} - {%- endblock %} - + {%- block flashmessages %} + {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} + {{ flashed_messages() }} + {%- endblock %} +
    diff --git a/invenio_theme_iform/templates/invenio_theme_iform/index.html b/invenio_theme_iform/templates/invenio_theme_iform/index.html index 9cbad90..26e4e03 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/index.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/index.html @@ -5,31 +5,25 @@ modify it under the terms of the MIT License; see LICENSE file for more details. #} - {%- extends config.INVENIO_THEME_IFORM_BASE_TEMPLATE %} {%- block javascript %} - {{ webpack['invenio-theme-iform-js.js'] }} + {{ webpack['invenio-theme-iform-js.js'] }} {%- endblock javascript %} {%- block page_body %} +
    + -
    - +
    + {% include "invenio_theme_iform/frontpage_overview.html" %} + {% include "invenio_theme_iform/recent_uploads.html" %} -
    - - {% include "invenio_theme_iform/frontpage_overview.html" %} - - {% include "invenio_theme_iform/recent_uploads.html" %} - - -
    - {% include "invenio_theme_iform/contact_us.html" %} - {% include "invenio_theme_iform/benefits.html" %} + +
    + {% include "invenio_theme_iform/contact_us.html" %} + {% include "invenio_theme_iform/benefits.html" %} +
    +
    -
    -
    - - {%- endblock %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/macros/authors.html b/invenio_theme_iform/templates/invenio_theme_iform/macros/authors.html index e6b6aa1..c0f1945 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/macros/authors.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/macros/authors.html @@ -9,22 +9,31 @@ {%- macro creators (authors_list) %} -{%- for creators in authors_list %} + {%- for creators in authors_list %} -{%- if creators.identifiers and creators.identifiers.orcid %} - -{%- endif %} + {%- if creators.identifiers and creators.identifiers.orcid %} + + {%- endif %} -{{creators.person_or_org.name}} -{% if not loop.last %}; {% endif %} - -{%- endfor %} + {{ creators.person_or_org.name }} + {% if not loop.last %};{% endif %} + {%- endfor %} {%- endmacro %} {%- macro contributors(contributors_list) %} -{%- for group in contributors_list|groupby('type')%} -
    {{group.grouper}}(s)
    -{{authors(group.list)}} -{%- endfor %} + {%- for group in contributors_list|groupby('type') %} +
    {{ group.grouper }}(s)
    + {{ authors(group.list) }} + {%- endfor %} {%- endmacro %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/navbar.html b/invenio_theme_iform/templates/invenio_theme_iform/navbar.html index e49699c..eec76b3 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/navbar.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/navbar.html @@ -6,85 +6,92 @@ details. #} -{% set options = [ - { - "key": "records", - "text": "All", - "value": url_for("invenio_search_ui.search"), - "title": "repo", - },{ - "key": "rdm", - "text": "Research Results", - "value": "/records/search", - "title": "Research Data", - },{ - "key": "marc21", - "text": "Publications", - "value": url_for("invenio_records_marc21.search"), - "title": "publication", - },{ - "key": "lom", - "text": "Educational Resources", - "value": url_for("invenio_records_lom.search"), - "title": "oer", - } -] +{% + set options = [ + { + "key": "records", + "text": "All", + "value": url_for("invenio_search_ui.search"), + "title": "repo", + },{ + "key": "rdm", + "text": "Research Results", + "value": "/records/search", + "title": "Research Data", + },{ + "key": "marc21", + "text": "Publications", + "value": url_for("invenio_records_marc21.search"), + "title": "publication", + },{ + "key": "lom", + "text": "Educational Resources", + "value": url_for("invenio_records_lom.search"), + "title": "oer", + } + ] %}
    -
    -
    -
    - - - - - - -
    - {% endif %} - {% if can_view_marc21 %} -
    -
    -

    Publications

    - - Publications - -
    Overview: Description for publications
    -
    -
    - {% endif %} -
    -
    -

    Educational Resources

    - - Open Educational Resources - -
    Overview: Description for open educational resources
    -
    -
    -
    - {%- endblock %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/recent_uploads.html b/invenio_theme_iform/templates/invenio_theme_iform/recent_uploads.html index e223dbd..12cad1f 100644 --- a/invenio_theme_iform/templates/invenio_theme_iform/recent_uploads.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/recent_uploads.html @@ -8,82 +8,82 @@
    -

    Recent uploads

    +

    Recent uploads

    - {% if not records %} -
    -

    There are no public records to show.

    -
    - {% endif %} + {% if not records %} +
    +

    There are no public records to show.

    +
    + {% endif %} - {%- for r in records %} - {%- set creation_date = r.created | from_isodatetime -%} - {%- set record_url = r.original.view %} + {%- for r in records %} + {%- set creation_date = r.created | from_isodatetime -%} + {%- set record_url = r.original.view %} -
    -
    - {# Publication date/Version badge #} - - {{ r.created_date_l10n_long }} - +
    +
    + {# Publication date/Version badge #} + + {{ r.created_date_l10n_long }} + - {# Resource type badge #} - {% if r.metadata.types | length > 0%} - - {{ r.metadata.types[0] }} - - {% endif %} + {# Resource type badge #} + {% if r.metadata.types | length > 0 %} + + {{ r.metadata.types[0] }} + + {% endif %} - - - {{ r.access_status.title_l10n }} - + + + {{ r.access_status.title_l10n }} + - - {{ r.original.schema_l10n }} - -
    + + {{ r.original.schema_l10n }} + +
    -

    - - {{ r.metadata.titles[0] }} - -

    +

    + {{ r.metadata.titles[0] }} +

    -

    - {%- for creator in r.metadata.creators %} - {{ creator }} - {%- endfor %} -

    +

    + {%- for creator in r.metadata.creators %} + {{ creator }} + {%- endfor %} +

    - + -
    - {%- for subject in r.metadata.subjects %} - {{ subject }} - {%- endfor %} -
    - - {# +
    + {%- for subject in r.metadata.subjects %} + {{ subject }} + {%- endfor %} +
    + + {# {% trans user=userprofile, date=creation_date | dateformat("long")%} Uploaded on {{date}} {% endtrans %} #} - -
    -
    -
    - {%- endfor %} + +
    +
    + + {%- endfor %} - {% if records %} -
    - More -
    - {%- endif %} + {% if records %} +
    + More +
    + {%- endif %}
    diff --git a/prettier.config.mjs b/prettier.config.mjs index 496eda1..bad1375 100644 --- a/prettier.config.mjs +++ b/prettier.config.mjs @@ -1,17 +1,17 @@ const config = { - singleQuote: false, - tabWidth: 4, - trailingComma: "all", - printWidth: 100, - plugins: ["prettier-plugin-jinja-template"], - overrides: [ - { - files: ["*.html"], - options: { - parser: "jinja-template" - } - } - ] + singleQuote: false, + tabWidth: 4, + trailingComma: "all", + printWidth: 100, + plugins: ["prettier-plugin-jinja-template"], + overrides: [ + { + files: ["*.html"], + options: { + parser: "jinja-template", + }, + }, + ], }; export default config;