mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2026-03-24 05:42:47 +00:00
@@ -15,9 +15,13 @@
|
||||
.. image:: https://img.shields.io/github/license/inveniosoftware/invenio-app-rdm.svg
|
||||
:target: https://github.com/mb-wali/invenio-theme-tugraz/blob/master/LICENSE
|
||||
|
||||
invenio module for TUGRAZ theme.
|
||||
|
||||
TODO: Please provide feature overview of module
|
||||
TU Graz standard theme.
|
||||
|
||||
Features:
|
||||
|
||||
* TU Graz header templates.
|
||||
* TU Graz overriden theme.
|
||||
|
||||
Further documentation is available on
|
||||
https://invenio-theme-tugraz.readthedocs.io/
|
||||
|
||||
@@ -37,7 +37,7 @@ THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html'
|
||||
INVENIO_THEME_TUGRAZ_ICON = 'images/icon_use.png'
|
||||
"""icon used in login page"""
|
||||
|
||||
THEME_FRONTPAGE_TITLE = "RDM for TUGRAZ"
|
||||
THEME_FRONTPAGE_TITLE = _('Frontpage Title')
|
||||
"""Frontpage title."""
|
||||
|
||||
THEME_SITENAME = _('Application Name')
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
<path d="m2.0142 1050.4h20.972"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span style="margin-left:3px; font-size:16px; font-weight:300">Main Menu</span>
|
||||
<span style="margin-left:3px; font-size:16px; font-weight:300">{{_ ("Main Menu")}} </span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -129,7 +129,7 @@
|
||||
<div class="affiliation-text">
|
||||
<a title="RDM" href="{{url_for('invenio_theme_frontpage.index')}}">
|
||||
TU Graz
|
||||
<br> Research Data Management
|
||||
<br>{{_ ("Research Data Management")}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -138,9 +138,9 @@
|
||||
<div class="affiliation-logo" id="int-header-logo">
|
||||
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank">
|
||||
<div class="affiliation-logo-claim">
|
||||
<div class="affiliation-logo-claim-single">WISSEN</div>
|
||||
<div class="affiliation-logo-claim-single">TECHNIK</div>
|
||||
<div class="affiliation-logo-claim-single">LEIDENSCHAFT</div>
|
||||
<div class="affiliation-logo-claim-single">{{_ ("SCIENCE")}}</div>
|
||||
<div class="affiliation-logo-claim-single">{{_ ("PASSION")}}</div>
|
||||
<div class="affiliation-logo-claim-single">{{_ ("TECHNOLOGY")}}</div>
|
||||
</div>
|
||||
<svg id="int-header-logo-img" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="51.862" width="141.1" version="1.1"
|
||||
|
||||
104
invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po
Normal file
104
invenio_theme_tugraz/translations/de/LC_MESSAGES/messages.po
Normal file
@@ -0,0 +1,104 @@
|
||||
# German translations for invenio-theme-tugraz.
|
||||
# Copyright (C) 2020 mojib wali
|
||||
# This file is distributed under the same license as the
|
||||
# invenio-theme-tugraz project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: invenio-theme-tugraz 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||
"POT-Creation-Date: 2020-06-25 14:39+0200\n"
|
||||
"PO-Revision-Date: 2020-06-25 14:39+0200\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: de\n"
|
||||
"Language-Team: de <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.8.0\n"
|
||||
|
||||
#: invenio_theme_tugraz/config.py:43
|
||||
msgid "Application Name"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/config.py:54
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
|
||||
#. NOTE: This is a note to a translator.
|
||||
#: invenio_theme_tugraz/ext.py:24
|
||||
msgid "A translation string"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/views.py:30
|
||||
msgid "invenio-theme-tugraz"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:22
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Powered by <a\n"
|
||||
" href=\"%(invenio_rdm)s\">InvenioRDM</a>"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:119
|
||||
msgid "Main Menu"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:132
|
||||
msgid "Research Data Management"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:141
|
||||
msgid "WISSEN"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:142
|
||||
msgid "TECHNIK"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:143
|
||||
msgid "LEIDENSCHAFT"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:191
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:14
|
||||
#, python-format
|
||||
msgid "Welcome to %(module_name)s"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:18
|
||||
msgid "Log in to account"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:26
|
||||
#, python-format
|
||||
msgid " Log in with %(type)s"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:41
|
||||
msgid "Log In"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:53
|
||||
#, python-format
|
||||
msgid "New to %(sitename)s?"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:54
|
||||
msgid "Sign Up"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:63
|
||||
msgid "Forgot password?"
|
||||
msgstr ""
|
||||
|
||||
103
invenio_theme_tugraz/translations/messages.pot
Normal file
103
invenio_theme_tugraz/translations/messages.pot
Normal file
@@ -0,0 +1,103 @@
|
||||
# Translations template for invenio-theme-tugraz.
|
||||
# Copyright (C) 2020 mojib wali
|
||||
# This file is distributed under the same license as the
|
||||
# invenio-theme-tugraz project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: invenio-theme-tugraz 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||
"POT-Creation-Date: 2020-06-25 14:39+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.8.0\n"
|
||||
|
||||
#: invenio_theme_tugraz/config.py:43
|
||||
msgid "Application Name"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/config.py:54
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
|
||||
#. NOTE: This is a note to a translator.
|
||||
#: invenio_theme_tugraz/ext.py:24
|
||||
msgid "A translation string"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/views.py:30
|
||||
msgid "invenio-theme-tugraz"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:22
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Powered by <a\n"
|
||||
" href=\"%(invenio_rdm)s\">InvenioRDM</a>"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:119
|
||||
msgid "Main Menu"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:132
|
||||
msgid "Research Data Management"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:141
|
||||
msgid "WISSEN"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:142
|
||||
msgid "TECHNIK"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:143
|
||||
msgid "LEIDENSCHAFT"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:191
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:14
|
||||
#, python-format
|
||||
msgid "Welcome to %(module_name)s"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:18
|
||||
msgid "Log in to account"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:26
|
||||
#, python-format
|
||||
msgid " Log in with %(type)s"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:41
|
||||
msgid "Log In"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:53
|
||||
#, python-format
|
||||
msgid "New to %(sitename)s?"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:54
|
||||
msgid "Sign Up"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:63
|
||||
msgid "Forgot password?"
|
||||
msgstr ""
|
||||
|
||||
1
setup.py
1
setup.py
@@ -45,6 +45,7 @@ install_requires = [
|
||||
'Flask-BabelEx>=0.9.4',
|
||||
'Flask-WebpackExt>=1.0.0',
|
||||
'invenio-assets>=1.2.0,<1.3.0',
|
||||
'invenio-i18n>=1.2.0',
|
||||
]
|
||||
|
||||
packages = find_packages()
|
||||
|
||||
@@ -18,11 +18,25 @@ import tempfile
|
||||
import pytest
|
||||
from flask import Flask
|
||||
from flask_babelex import Babel
|
||||
from invenio_i18n import InvenioI18N
|
||||
|
||||
from invenio_theme_tugraz import inveniothemetugraz
|
||||
from invenio_theme_tugraz.views import blueprint
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def app():
|
||||
"""Flask app fixture."""
|
||||
app = Flask('myapp')
|
||||
app.config.update(
|
||||
I18N_LANGUAGES=[('en', 'English'), ('de', 'German')],
|
||||
)
|
||||
Babel(app)
|
||||
InvenioI18N(app)
|
||||
app.register_blueprint(create_blueprint_from_app(app))
|
||||
return app
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
def celery_config():
|
||||
"""Override pytest-invenio fixture.
|
||||
|
||||
Reference in New Issue
Block a user