2018-10-17 11:37:14 -04:00
|
|
|
<div class="permalink-title">
|
|
|
|
<h2>{{i18n "admin.permalink.title"}}</h2>
|
|
|
|
</div>
|
2019-05-07 07:42:41 -04:00
|
|
|
<div class="permalink-description">
|
|
|
|
<span>{{i18n "admin.permalink.description"}}</span>
|
|
|
|
</div>
|
2018-10-17 11:37:14 -04:00
|
|
|
<div class="permalink-search">
|
2015-07-15 08:54:28 -04:00
|
|
|
{{text-field value=filter class="url-input" placeholderKey="admin.permalink.form.filter" autocorrect="off" autocapitalize="off"}}
|
|
|
|
</div>
|
2019-01-10 05:06:01 -05:00
|
|
|
{{permalink-form action=(action "recordAdded")}}
|
2015-07-15 08:54:28 -04:00
|
|
|
<br>
|
|
|
|
|
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
|
|
|
{{#if model.length}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<table class="admin-logs-table permalinks grid">
|
|
|
|
<thead class="heading-container">
|
|
|
|
<th class="col heading first url">{{i18n "admin.permalink.url"}}</th>
|
2020-03-25 14:30:39 -04:00
|
|
|
<th class="col heading destination">{{i18n "admin.permalink.destination"}}</th>
|
2018-07-02 23:14:53 -04:00
|
|
|
<th class="col heading actions"></th>
|
|
|
|
</thead>
|
2020-02-10 02:14:26 -05:00
|
|
|
<tbody>
|
|
|
|
{{#each model as |pl|}}
|
|
|
|
<tr class="admin-list-item">
|
2020-06-21 23:14:16 -04:00
|
|
|
<td class="col first url">{{d-button title="admin.permalink.copy_to_clipboard" icon="far-clipboard" action=(action "copyUrl" pl)}} <span id="admin-permalink-{{pl.id}}" title={{pl.url}}>{{pl.url}}</span></td>
|
2020-03-25 14:30:39 -04:00
|
|
|
<td class="col destination">
|
2020-02-10 02:14:26 -05:00
|
|
|
{{#if pl.topic_id}}
|
2020-03-09 10:28:31 -04:00
|
|
|
<a href={{pl.topic_url}}>{{pl.topic_title}}</a>
|
2020-02-10 02:14:26 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if pl.post_id}}
|
2020-03-25 14:30:39 -04:00
|
|
|
<a href={{pl.post_url}}>{{pl.post_topic_title}} #{{pl.post_number}}</a>
|
2020-02-10 02:14:26 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if pl.category_id}}
|
2020-03-25 14:30:39 -04:00
|
|
|
{{category-link pl.category}}
|
2020-02-10 02:14:26 -05:00
|
|
|
{{/if}}
|
2020-05-25 05:48:54 -04:00
|
|
|
{{#if pl.tag_id}}
|
|
|
|
<a href={{pl.tag_url}}>{{pl.tag_name}}</a>
|
|
|
|
{{/if}}
|
2020-02-10 02:14:26 -05:00
|
|
|
{{#if pl.external_url}}
|
2020-03-25 14:30:39 -04:00
|
|
|
{{#if pl.linkIsExternal}}
|
|
|
|
{{d-icon "external-link-alt"}}
|
|
|
|
{{/if}}
|
2020-03-09 10:28:31 -04:00
|
|
|
<a href={{pl.external_url}}>{{pl.external_url}}</a>
|
2020-02-10 02:14:26 -05:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2020-06-21 23:14:16 -04:00
|
|
|
<td class="col action" style="text-align: right;">
|
2020-02-10 02:14:26 -05:00
|
|
|
{{d-button action=(action "destroy") actionParam=pl icon="far-trash-alt" class="btn-danger"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
2018-07-02 23:14:53 -04:00
|
|
|
</table>
|
2015-07-15 08:54:28 -04:00
|
|
|
{{else}}
|
|
|
|
{{i18n "search.no_results"}}
|
|
|
|
{{/if}}
|
|
|
|
{{/conditional-loading-spinner}}
|