Skip to content

Commit

Permalink
change ordering for project secondary card
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Aug 21, 2023
1 parent b3a8d05 commit e1bb783
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,26 @@
</InlineList>
</dd>
{{/if}}
{{#if @result.resourceNature}}
<dt>{{t 'osf-components.search-result-card.resource_type'}}</dt>
<dd>{{@result.resourceNature}}</dd>
{{/if}}
{{#if @result.isPartOfCollection}}
<dt>{{t 'osf-components.search-result-card.collection'}}</dt>
<dd><a href={{@result.isPartOfCollection.absoluteUrl}} target='_blank' rel='noopener noreferrer'> {{@result.isPartOfCollection.title}} </a></dd>
{{/if}}
{{#if @result.resourceNature}}
<dt>{{t 'osf-components.search-result-card.resource_nature'}}</dt>
<dd>{{@result.resourceNature}}</dd>
{{/if}}
{{#if @resource.language}}
<dt>{{t 'osf-components.search-result-card.language'}}</dt>
<dd>{{@resource.language}}</dd>
{{/if}}
{{#if @result.license}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.license.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.license.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 @@ -41,8 +49,4 @@
</InlineList>
</dd>
{{/if}}
{{#if @result.license}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.license.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.license.name}}</a></dd>
{{/if}}
</dl>

0 comments on commit e1bb783

Please sign in to comment.