Skip to content

Commit

Permalink
fixed listing of prefixes. #280
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 3, 2020
1 parent fb32160 commit a9cd1a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/templates/providers/show/prefixes/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{{#each model.prefixes as |provider-prefix|}}
<div class="panel panel-transparent">
<div class="panel-body">
<h3 class="work"><LinkTo @route="providers.show.prefixes.show" @models={{array model.provider.id provider-prefix.prefix.id}}><provider-prefix.prefix.id /></LinkTo></h3>
<h3 class="work"><LinkTo @route="providers.show.prefixes.show" @models={{array model.provider.id provider-prefix.prefix.id}}>{{provider-prefix.prefix.id}}</LinkTo></h3>

<h5>{{pluralize provider-prefix.repositories.length "Repository" without-count=true}}</h5>
{{#if provider-prefix.repositories}}
Expand All @@ -103,7 +103,7 @@
{{/each}}
{{#if features.useElasticsearch}}
<h5>DOIs</h5>
<LinkTo @route="providers.show.dois" @model={{provider-prefix.provider.id}} @query={{hash prefix=provider-prefix.prefix.id}}>DOIs for prefix <provider-prefix.prefix.id /></LinkTo>
<LinkTo @route="providers.show.dois" @model={{provider-prefix.provider.id}} @query={{hash prefix=provider-prefix.prefix.id}}>DOIs for prefix {{provider-prefix.prefix.id}}</LinkTo>
{{/if}}
{{else}}
<span class="icon-warning">No repositories found.</span>
Expand Down
6 changes: 3 additions & 3 deletions app/templates/repositories/show/prefixes/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
<div class="panel panel-transparent">
<div class="panel-body">
{{#if (can "update prefix" model)}}
<h3 class="work"><LinkTo @route="repositories.show.prefixes.show" @models={{array model.repository.id repository-prefix.prefix.id}}><repository-prefix.prefix.id /></LinkTo></h3>
<h3 class="work"><LinkTo @route="repositories.show.prefixes.show" @models={{array model.repository.id repository-prefix.prefix.id}}>{{repository-prefix.prefix.id}}</LinkTo></h3>
{{else}}
<h3 class="member"><repository-prefix.prefix.id /></h3>
<h3 class="member">{{repository-prefix.prefix.id}}</h3>
{{/if}}

{{#if features.useElasticsearch}}
<h5>DOIs</h5>
<LinkTo @route="repositories.show.dois" @model={{repository-prefix.repository.id}} @query={{hash prefix=repository-prefix.prefix.id}}>DOIs for prefix <repository-prefix.prefix.id /></LinkTo>
<LinkTo @route="repositories.show.dois" @model={{repository-prefix.repository.id}} @query={{hash prefix=repository-prefix.prefix.id}}>DOIs for prefix {{repository-prefix.prefix.id}}</LinkTo>
{{/if}}

<h5>Added</h5>
Expand Down

0 comments on commit a9cd1a6

Please sign in to comment.