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 %}
+
+
+ {%- 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 %}
-
-
-
-
+
+
+
{% 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 %}
-
+
-
-
-
-
-
-
-
-
-
-
-
- Uploads get a Digital Object Identifier (DOI) to make them easily and uniquely citeable.
-
-
- Accept or reject uploads to your own community (e.g workshops, EU projects, institutions or entire disciplines).
-
-
-
- Built on top of I-Form expertise in the managing of research data.
-
-
-
-
-
- {# Sigup with SSO #}
- {%- if config.INVENIO_CONFIG_IFORM_SHIBBOLETH %}
-
-
- Sign up with I-Form
-
-
-
{{_ ("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 "" %}
-