diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less index 39bb412..1ceb574 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less @@ -77,12 +77,25 @@ pre { background-color: @tugrazRed; } -.ui.button:hover, -.ui.search.button:hover { - background-color: @primaryButtonHoverBackground; +/*** + * accordion title + ***/ +.ui.accordion.styled { + .title, + .title.active { + background-color: @greyLight; + color: rgba(0, 0, 0, 0.6); + } } -.ui.button:hover { +/*** + * buttons hover and accordion hover + ***/ +.ui.button:hover, +.ui.search.button:hover, +.ui.accordion.styled .title:hover, +.ui.accordion.styled .accordion .title:hover { + background-color: @primaryButtonHoverBackground; color: @primaryButton; } @@ -97,6 +110,7 @@ pre { .ui.input > input, /* it seams redundant but it is not */ .ui.segment, .ui.selection.dropdown, +.ui.accordion.styled, .ui.card, .ui.cards > .card, .ui.basic.button, .ui.basic.buttons .button, diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html index 94cedf5..544cc8e 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html @@ -17,7 +17,7 @@
-
+
- + + + + {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} +
+ +
{{_ ("Or")}}
+ {%- endif %} - - {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} -
- -
-
{{_ ("Or")}}
- {%- endif %} + {%- block form_header %} + + {%- block form_outer %} + {%- endblock form_outer %} + {%- endblock form_header %} - {%- block form_header %} - - {%- block form_outer %} - {%- endblock form_outer %} - {%- endblock form_header %} - {%- with form = register_user_form %} -
- {{ 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 %} + {%- 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 %} + {%- if form.recaptcha %} +
{{ form.recaptcha() }}
+ {%- endif %} -
- +
+ +
+ +
- - {%- endwith %} - +
+ {%- endwith %}
diff --git a/invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po b/invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po index a523601..e1ead21 100644 --- a/invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po +++ b/invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: invenio-theme-tugraz 1.0.4\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" -"POT-Creation-Date: 2021-06-22 10:21+0200\n" +"POT-Creation-Date: 2021-11-02 15:12+0100\n" "PO-Revision-Date: 2020-10-06 10:27+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -17,21 +17,17 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.9.1\n" +"Generated-By: Babel 2.9.0\n" -#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63 +#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:62 msgid "TU Graz Repository" msgstr "TU Graz Repository" -#: invenio_theme_tugraz/config.py:66 +#: invenio_theme_tugraz/config.py:65 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30 msgid "Repository" msgstr "Repository" -#: invenio_theme_tugraz/config.py:91 -msgid "German" -msgstr "Deutsche" - #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26 msgid "Invenio" @@ -47,7 +43,7 @@ msgid "" "long as TU Graz library exists." msgstr "" "Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft " -"gespeichert,solange die Bibliothek der TU Graz existiert." +"gespeichert, solange die Bibliothek der TU Graz existiert." #: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4 msgid "Trusted" @@ -271,52 +267,51 @@ msgid "" " " msgstr "Hochgeladen am %(date)s\n" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:131 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118 msgid "More" msgstr "Mehr" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:141 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128 msgid "Need help?" msgstr "Brauchen Sie Hilfe?" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:132 msgid "Contact us" msgstr "Kontaktiere uns" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:150 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137 msgid "prioritizes all Recent uploads." msgstr "reiht die neuesten Uploads vor." -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:140 msgid "We can help with:" msgstr "Dabei können wir helfen:" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:158 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145 msgid "Uploading your research data, software, preprints, etc." msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw." -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146 msgid "One-on-one with" msgstr "One-on-one mit" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146 msgid "supporters." msgstr "Unterstützern" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:160 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147 msgid "Quota increases beyond our default policy." msgstr "Quota Erhöhungen über unsere Standard Policy hinaus." -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:161 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148 msgid "Scripts for automated uploading of larger datasets." msgstr "Skripte zum automatisierten Hochladen größerer Datensätze." -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:166 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153 msgid "Why use" msgstr "Warum" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:66 -#, fuzzy msgid "REPOSITORY" msgstr "Repository" @@ -337,10 +332,10 @@ msgid "TECHNOLOGY" msgstr "LEIDENSCHAFT" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:76 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:78 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:86 msgid "Sign up" -msgstr "Registrierung" +msgstr "Registrieren" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15 msgid "Log in" @@ -355,25 +350,29 @@ msgid "Log in to Repository" msgstr "Anmelden" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:38 -#, fuzzy, python-format -msgid "Sign in with %(title)s" -msgstr "Einloggen mit" +#, python-format +msgid "Log in with %(title)s" +msgstr "Einloggen mit %(title)s" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:52 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51 msgid "Or" msgstr "Oder" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:61 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:57 +msgid "Log in with repository credentials" +msgstr "Loggen Sie sich mit Ihrem Repository-Account ein" + +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:67 msgid "Log In" msgstr "Einloggen" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:75 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:81 #, python-format msgid "New to %(sitename)s?" msgstr "Neu im %(sitename)s?" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:85 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:91 msgid "Forgot password?" msgstr "Passwort vergessen" @@ -417,38 +416,11 @@ msgstr "Gebaut basierend auf Expertise derTU Graz im Bereich Data Management" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:48 msgid "Sign up with TUGRAZ " -msgstr "Mit Ihrem TUGonline-Account einloggen" +msgstr "Mit Ihrem TUGonline-Account registrieren" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:10 -msgid "New version" -msgstr "neue Version" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:12 -msgid "New upload" -msgstr "Neuer upload" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:14 -msgid "Edit upload" -msgstr "Upload bearbeiten" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:63 -#, python-format -msgid "" -"\n" -" There is a %(link_start)snewer version%(link_end)s of the " -"record available.\n" -" " -msgstr "" -"Es ist eine %(link_start)sneuere Version%(link_end)s des Eintrags " -"verfügbar." - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:138 -msgid "Files" -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:146 -msgid "Reason" -msgstr "Grund" +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:65 +msgid "Sign up with repository credentials" +msgstr "Mit Ihren Repository Daten registrieren" #~ msgid "Version" #~ msgstr "Version" @@ -482,3 +454,31 @@ msgstr "Grund" #~ msgid "Uploads" #~ msgstr "Hochladen" +#~ msgid "German" +#~ msgstr "Deutsche" + +#~ msgid "New version" +#~ msgstr "neue Version" + +#~ msgid "New upload" +#~ msgstr "Neuer upload" + +#~ msgid "Edit upload" +#~ msgstr "Upload bearbeiten" + +#~ msgid "" +#~ "\n" +#~ " There is a %(link_start)snewer " +#~ "version%(link_end)s of the record available." +#~ "\n" +#~ " " +#~ msgstr "" +#~ "Es ist eine %(link_start)sneuere " +#~ "Version%(link_end)s des Eintrags verfügbar." + +#~ msgid "Files" +#~ msgstr "Dateien" + +#~ msgid "Reason" +#~ msgstr "Grund" + diff --git a/invenio_theme_tugraz/translations/messages.pot b/invenio_theme_tugraz/translations/messages.pot index 45cb4d9..d5464a8 100644 --- a/invenio_theme_tugraz/translations/messages.pot +++ b/invenio_theme_tugraz/translations/messages.pot @@ -4,33 +4,28 @@ # invenio-theme-tugraz project. # FIRST AUTHOR , 2021. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: invenio-theme-tugraz 3.4.1\n" +"Project-Id-Version: invenio-theme-tugraz 3.6.1\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" -"POT-Creation-Date: 2021-06-22 10:21+0200\n" +"POT-Creation-Date: 2021-11-02 15:12+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.9.1\n" +"Generated-By: Babel 2.9.0\n" -#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63 +#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:62 msgid "TU Graz Repository" msgstr "" -#: invenio_theme_tugraz/config.py:66 +#: invenio_theme_tugraz/config.py:65 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30 msgid "Repository" msgstr "" -#: invenio_theme_tugraz/config.py:91 -msgid "German" -msgstr "" - #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26 msgid "Invenio" @@ -260,47 +255,47 @@ msgid "" " " msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:131 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118 msgid "More" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:141 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128 msgid "Need help?" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:132 msgid "Contact us" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:150 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137 msgid "prioritizes all Recent uploads." msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:140 msgid "We can help with:" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:158 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145 msgid "Uploading your research data, software, preprints, etc." msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146 msgid "One-on-one with" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146 msgid "supporters." msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:160 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147 msgid "Quota increases beyond our default policy." msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:161 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148 msgid "Scripts for automated uploading of larger datasets." msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:166 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153 msgid "Why use" msgstr "" @@ -325,8 +320,8 @@ msgid "TECHNOLOGY" msgstr "" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:76 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:78 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:86 msgid "Sign up" msgstr "" @@ -344,24 +339,28 @@ msgstr "" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:38 #, python-format -msgid "Sign in with %(title)s" +msgid "Log in with %(title)s" msgstr "" #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46 -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:52 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51 msgid "Or" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:61 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:57 +msgid "Log in with repository credentials" +msgstr "" + +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:67 msgid "Log In" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:75 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:81 #, python-format msgid "New to %(sitename)s?" msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:85 +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:91 msgid "Forgot password?" msgstr "" @@ -403,32 +402,7 @@ msgstr "" msgid "Sign up with TUGRAZ " msgstr "" -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:10 -msgid "New version" -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:12 -msgid "New upload" -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:14 -msgid "Edit upload" -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:63 -#, python-format -msgid "" -"\n" -" There is a %(link_start)snewer version%(link_end)s of the " -"record available.\n" -" " -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:138 -msgid "Files" -msgstr "" - -#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:146 -msgid "Reason" +#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:65 +msgid "Sign up with repository credentials" msgstr ""