DEV: Resolve link-to deprecation for Ember upgrade (#192)
This commit is contained in:
parent
1d39cd8c80
commit
51af568c92
|
@ -3,11 +3,13 @@
|
||||||
{{#if model.length}}
|
{{#if model.length}}
|
||||||
<div class="content-list">
|
<div class="content-list">
|
||||||
<div class="house-ads-actions">
|
<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"}}
|
{{d-icon "plus"}}
|
||||||
<span>{{i18n "admin.adplugin.house_ads.new"}}</span>
|
<span>{{i18n "admin.adplugin.house_ads.new"}}</span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{#link-to "adminPlugins.houseAds.index" class="btn btn-default"}}
|
{{#link-to route="adminPlugins.houseAds.index" class="btn btn-default"}}
|
||||||
{{d-icon "cog"}}
|
{{d-icon "cog"}}
|
||||||
<span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
|
<span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
|
@ -15,7 +17,7 @@
|
||||||
<ul class="house-ads-list">
|
<ul class="house-ads-list">
|
||||||
{{#each model as |ad|}}
|
{{#each model as |ad|}}
|
||||||
<li class="house-ads-list-item">
|
<li class="house-ads-list-item">
|
||||||
{{#link-to "adminPlugins.houseAds.show" ad.id}}
|
{{#link-to route="adminPlugins.houseAds.show" model=ad.id}}
|
||||||
{{ad.name}}
|
{{ad.name}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue