Skip to content

Commit

Permalink
DEV: Resolve link-to deprecation for Ember upgrade (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Dec 13, 2023
1 parent 1d39cd8 commit 51af568
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
{{#if model.length}}
<div class="content-list">
<div class="house-ads-actions">
{{#link-to "adminPlugins.houseAds.show" "new" class="btn btn-primary"}}
{{#link-to
route="adminPlugins.houseAds.show" model="new" class="btn btn-primary"
}}
{{d-icon "plus"}}
<span>{{i18n "admin.adplugin.house_ads.new"}}</span>
{{/link-to}}
{{#link-to "adminPlugins.houseAds.index" class="btn btn-default"}}
{{#link-to route="adminPlugins.houseAds.index" class="btn btn-default"}}
{{d-icon "cog"}}
<span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
{{/link-to}}
</div>
<ul class="house-ads-list">
{{#each model as |ad|}}
<li class="house-ads-list-item">
{{#link-to "adminPlugins.houseAds.show" ad.id}}
{{#link-to route="adminPlugins.houseAds.show" model=ad.id}}
{{ad.name}}
{{/link-to}}
</li>
Expand Down

0 comments on commit 51af568

Please sign in to comment.