From 22aed7444a7f517b3fccb57b1919790a1b0ffe4b Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Tue, 29 Dec 2020 15:17:42 +0100 Subject: [PATCH 1/4] bugfix(ui): center More button the More button was slightly floated to the left side of the column. This looked weird. Now it is in the center of the column. --- invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 5fdfe68..235d84d 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -106,7 +106,7 @@ --> {%- endfor %} -
+
From 5eb9c400811e55d1b376ae3b41fb1c316e361ced Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Tue, 29 Dec 2020 15:19:34 +0100 Subject: [PATCH 2/4] bugfix(ui): display access right on frontpage the same way as in search page --- invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 235d84d..5d4c903 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -96,7 +96,8 @@
- {{ r.access.access_right | make_dict_like('access_right') | vocabulary_title('access_right') | lower }} + + {{ r.access.access_right | make_dict_like('access_right') | vocabulary_title('access_right') }}
From feba2ff44051f2a5ab1aa5259889b2ebb89d21c2 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Tue, 29 Dec 2020 15:21:24 +0100 Subject: [PATCH 3/4] bugfix(ui): adapt badges on frontpage to look the same as on search page resource type color was different. publication date badge and version badge were moved together into one badge. --- .../templates/invenio_theme_tugraz/index.html | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 5d4c903..01cd36f 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -48,18 +48,13 @@ something with doi -->
- - - {{ r.metadata.publication_date }} - - - - - {{ (' Version ' ~ r.version ~ '') if r.version else 'Version' }} + + + {{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }} - + {{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }} From 4af121bda35fab1528489380393f59b3f36ff824 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Tue, 29 Dec 2020 15:40:45 +0100 Subject: [PATCH 4/4] feature(ui): add subjects to frontpage article items --- .../templates/invenio_theme_tugraz/index.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 01cd36f..4884dca 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -82,11 +82,16 @@
- - {% trans user=userprofile, date=creation_date | dateformat('long')%} - Uploaded on {{date}} - {% endtrans %} - + {%- for s in r.metadata.subjects %} +
{{s.subject}}
+ {%- endfor %} +
+ + {% trans user=userprofile, date=creation_date | dateformat('long')%} + Uploaded on {{date}} + {% endtrans %} + +