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 something with doi
--> -->
<div class="badges"> <div class="badges">
<!--Publication date badge--> <!--Publication date/Version badge-->
<span class="ui label teal" title="{{_('Publication date')}}"> <span class="ui label record-version" title="{{_('Publication date')}}">
{{ r.metadata.publication_date }} {{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
</span>
<!--Version badge-->
<span class="ui label record-version" title="{{_('Version')}}">
{{ (' Version ' ~ r.version ~ '') if r.version else 'Version' }}
</span> </span>
<!--Resource type badge--> <!--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') }} {{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }}
</span> </span>