{{i18n "admin.permalink.title"}}
{{i18n "admin.permalink.description"}}
{{text-field value=filter class="url-input" placeholderKey="admin.permalink.form.filter" autocorrect="off" autocapitalize="off"}}
{{permalink-form action=(action "recordAdded")}}
{{#conditional-loading-spinner condition=loading}}
{{#if model.length}}
{{i18n "admin.permalink.url"}} |
{{i18n "admin.permalink.destination"}} |
|
{{#each model as |pl|}}
{{pl.url}} |
{{#if pl.topic_id}}
{{pl.topic_title}}
{{/if}}
{{#if pl.post_id}}
{{pl.post_topic_title}} #{{pl.post_number}}
{{/if}}
{{#if pl.category_id}}
{{category-link pl.category}}
{{/if}}
{{#if pl.external_url}}
{{#if pl.linkIsExternal}}
{{d-icon "external-link-alt"}}
{{/if}}
{{pl.external_url}}
{{/if}}
|
{{d-button action=(action "destroy") actionParam=pl icon="far-trash-alt" class="btn-danger"}}
|
{{/each}}
{{else}}
{{i18n "search.no_results"}}
{{/if}}
{{/conditional-loading-spinner}}