Skip to content

Commit

Permalink
change ordering on files secondary card
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Aug 21, 2023
1 parent a1405a7 commit e211cb7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<dt>{{t 'osf-components.search-result-card.description'}}</dt>
<dd>{{@result.description}}</dd>
{{/if}}
{{#if @result.resourceNature}}
<dt>{{t 'osf-components.search-result-card.resource_nature'}}</dt>
<dd>{{@result.resourceNature}}</dd>
{{/if}}
{{#if @result.nodeFunders}}
<dt>{{t 'osf-components.search-result-card.funder'}}</dt>
<dd>
Expand All @@ -24,6 +20,18 @@
</InlineList>
</dd>
{{/if}}
{{#if @result.resourceNature}}
<dt>{{t 'osf-components.search-result-card.resource_type'}}</dt>
<dd>{{@result.resourceNature}}</dd>
{{/if}}
{{#if @result.nodeLicense}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.nodeLicense.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.nodeLicense.name}}</a></dd>
{{/if}}
{{#if @result.absoluteUrl}}
<dt>{{t 'osf-components.search-result-card.url'}}</dt>
<dd><a href={{@result.absoluteUrl}} target='_blank' rel='noopener noreferrer'>{{@result.absoluteUrl}}</a></dd>
{{/if}}
{{#if @result.doi}}
<dt>{{t 'osf-components.search-result-card.doi'}}</dt>
<dd>
Expand All @@ -37,8 +45,4 @@
</InlineList>
</dd>
{{/if}}
{{#if @result.nodeLicense}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.nodeLicense.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.nodeLicense.name}}</a></dd>
{{/if}}
</dl>
3 changes: 2 additions & 1 deletion translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,8 @@ routes:
email: Email
osf-components:
search-result-card:
resource_nature: Resource nature
url: URL
resource_type: Resource type
title: Title
collection: Collection
context: Context
Expand Down

0 comments on commit e211cb7

Please sign in to comment.