mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 21:21:57 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b606007cd | ||
|
|
32e785cb28 | ||
|
|
765c43c283 |
@@ -1,7 +1,12 @@
|
|||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import 'semantic-ui-css';
|
import 'semantic-ui-css';
|
||||||
|
|
||||||
|
// called on document ready
|
||||||
$(function() {
|
$(function() {
|
||||||
|
importZammadScript();
|
||||||
|
});
|
||||||
|
|
||||||
|
function importZammadScript() {
|
||||||
let scriptNode = document.createElement("hidden"); //needed for zammad script
|
let scriptNode = document.createElement("hidden"); //needed for zammad script
|
||||||
scriptNode.id = "zammad_form_script";
|
scriptNode.id = "zammad_form_script";
|
||||||
scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js";
|
scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js";
|
||||||
@@ -16,7 +21,8 @@ $(function() {
|
|||||||
modal: true
|
modal: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
|
|
||||||
// used for sticky test instance notification
|
// used for sticky test instance notification
|
||||||
$('.ui.sticky.test-instance')
|
$('.ui.sticky.test-instance')
|
||||||
|
|||||||
@@ -25,14 +25,24 @@
|
|||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: @footerGrey;
|
color: @footerGrey;
|
||||||
|
|
||||||
&:hover, &:focus {
|
// :focus-visible activates on keyboard only
|
||||||
|
&:hover, &:focus:focus-visible {
|
||||||
color: @primaryLink;
|
color: @primaryLink;
|
||||||
background-color: @primaryLinkHoverBackground;
|
background-color: @primaryLinkHoverBackground;
|
||||||
|
|
||||||
|
i.icon.download {
|
||||||
|
color: @tugrazRed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove blue focus outline if clicked with mouse
|
||||||
|
&:focus:not(:focus-visible) {
|
||||||
|
outline-style: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,8 +152,3 @@ pre {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover i.icon.download,
|
|
||||||
i.icon.download:hover {
|
|
||||||
color: @tugrazRed;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,12 +25,10 @@
|
|||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<!--Log in with SSO-->
|
<!--Log in with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="login-page-button ui fluid large button">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
||||||
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="spacer-long"></div>
|
<div class="spacer-long"></div>
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@@ -74,4 +72,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock page_body %}
|
{% endblock page_body %}
|
||||||
|
|||||||
@@ -46,11 +46,10 @@
|
|||||||
<!--Sigup with SSO-->
|
<!--Sigup with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<div class="login-page-button ui fluid large button">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
||||||
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@@ -91,4 +90,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock page_body %}
|
{% endblock page_body %}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{%- for r in records %}
|
{%- for r in records %}
|
||||||
{%- set creation_date = r._created|from_isodatetime -%}
|
{%- set creation_date = r.created|from_isodatetime -%}
|
||||||
{%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %}
|
{%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %}
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
|||||||
and parsed by ``setup.py``.
|
and parsed by ``setup.py``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "2.0.8"
|
__version__ = "2.0.9"
|
||||||
|
|||||||
Reference in New Issue
Block a user