mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 05:01:58 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4aa72c003b | ||
|
|
fb906bda72 | ||
|
|
808aca3f60 | ||
|
|
5f49389fb1 | ||
|
|
4930e78c3a | ||
|
|
1ad73cc001 | ||
|
|
7623af2fb1 | ||
|
|
b05d9cbf97 |
@@ -27,13 +27,13 @@
|
||||
display: inline;
|
||||
}
|
||||
|
||||
// align badges to the right
|
||||
.ui.items > .item .extra.labels-actions {
|
||||
float: right;
|
||||
width: auto;
|
||||
// // align badges to the right
|
||||
// .ui.items > .item .extra.labels-actions {
|
||||
// float: right;
|
||||
// width: auto;
|
||||
|
||||
// remove action buttons from search results
|
||||
.ui.small.compact.right.floated.button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
// // remove action buttons from search results
|
||||
// .ui.small.compact.right.floated.button {
|
||||
// display: none;
|
||||
// }
|
||||
// }
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -58,13 +58,13 @@
|
||||
-->
|
||||
<div class="badges">
|
||||
<!--Publication date/Version badge-->
|
||||
<span class="ui label blue" title="{{_('Publication date')}}">
|
||||
<span class="ui label blue" data-tooltip="{{_('Publication date')}}" data-inverted="">
|
||||
{{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
|
||||
</span>
|
||||
|
||||
<!--Resource type badge-->
|
||||
<span class="ui label grey" title="{{_('Resource type')}}">
|
||||
{{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }}
|
||||
<span class="ui label grey" data-tooltip="{{_('Resource type')}}" data-inverted>
|
||||
{{ r.ui.resource_type.title_l10n }}
|
||||
</span>
|
||||
|
||||
<span class="ui label access-status {{ r.ui.access_status.id }}" data-tooltip="{{ r.ui.access_status.description_l10n }}" data-inverted="">
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<span class="label text-muted"> | Version {{ record.ui.version }}</span>
|
||||
</div>
|
||||
<div class="right floated right aligned column">
|
||||
<span class="ui label small grey">{{ record.ui.resource_type }}</span>
|
||||
<span class="ui label small grey">{{ record.ui.resource_type.title_l10n }}</span>
|
||||
<span class="ui label small access-status {{ record.ui.access_status.id }}" data-tooltip="{{ record.ui.access_status.description_l10n }}" data-inverted="">
|
||||
{% if record.ui.access_status.icon %}<i class="icon {{ record.ui.access_status.icon }}"></i>{% endif %}
|
||||
{{ record.ui.access_status.title_l10n }}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||
{%- endif %}
|
||||
|
||||
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span>
|
||||
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-tooltip="{{affiliation.name}}" data-inverted="" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span>
|
||||
{% if not loop.last %}; {% endif %}
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
||||
and parsed by ``setup.py``.
|
||||
"""
|
||||
|
||||
__version__ = "3.0.2"
|
||||
__version__ = "3.4.0"
|
||||
|
||||
@@ -61,15 +61,21 @@ def ui_blueprint(app):
|
||||
return blueprint
|
||||
|
||||
|
||||
def records_serializer(records=None):
|
||||
"""Serialize list of records."""
|
||||
record_list = []
|
||||
for record in records:
|
||||
record_list.append(UIJSONSerializer().serialize_object_to_dict(record.to_dict()))
|
||||
return record_list
|
||||
|
||||
|
||||
def index():
|
||||
"""Frontpage."""
|
||||
records = FrontpageRecordsSearch()[:5].sort("-created").execute()
|
||||
for r in records:
|
||||
r = UIJSONSerializer().serialize_object_to_dict(r.to_dict())
|
||||
|
||||
return render_template(
|
||||
"invenio_theme_tugraz/index.html",
|
||||
records=records
|
||||
records=records_serializer(records)
|
||||
)
|
||||
|
||||
|
||||
@@ -82,7 +88,7 @@ def guide():
|
||||
"""TUGraz_Repository_Guide."""
|
||||
locale = get_locale()
|
||||
return redirect(url_for('static',
|
||||
filename=f'documents/TUGraz_Repository_Guide_01_{locale}.pdf',
|
||||
filename=f'documents/TUGraz_Repository_Guide_02_{locale}.pdf',
|
||||
_external=True))
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ theme = WebpackThemeBundle(
|
||||
'prop-types': '^15.7.2',
|
||||
'react-dnd': '^11.1.3',
|
||||
'react-dnd-html5-backend': '^11.1.3',
|
||||
'react-invenio-deposit': '^0.13.5',
|
||||
'react-invenio-deposit': '^0.14.0',
|
||||
'react-invenio-forms': '^0.7.0',
|
||||
'react-dropzone': "^11.0.3",
|
||||
'yup': '^0.27.0',
|
||||
|
||||
Reference in New Issue
Block a user