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.
This commit is contained in:
Christoph Ladurner
2020-12-29 15:21:24 +01:00
parent 5eb9c40081
commit feba2ff440

View File

@@ -48,18 +48,13 @@
something with doi
-->
<div class="badges">
<!--Publication date badge-->
<span class="ui label teal" title="{{_('Publication date')}}">
{{ r.metadata.publication_date }}
</span>
<!--Version badge-->
<span class="ui label record-version" title="{{_('Version')}}">
{{ (' Version ' ~ r.version ~ '') if r.version else 'Version' }}
<!--Publication date/Version badge-->
<span class="ui label record-version" title="{{_('Publication date')}}">
{{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
</span>
<!--Resource type badge-->
<span class="ui label grey" title="{{_('Resource type')}}">
<span class="ui label teal" title="{{_('Resource type')}}">
{{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }}
</span>