Release v2.5.6
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-table-sort-key="description">Description</th>
|
||||
<th>Screens</th>
|
||||
<th>Screen Groups</th>
|
||||
<th data-table-sort-key="type">Type</th>
|
||||
<th data-table-sort-key="color">Color</th>
|
||||
<th data-table-sort-key="status">Status</th>
|
||||
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
{{!-- <div class="text-secondary small text-break">{{#if message}}{{truncateText message 50}}{{else}}No message provided.{{/if}}</div> --}}
|
||||
</td>
|
||||
<td data-label="Screens" class="text-break">
|
||||
<td data-label="Screen Groups" class="text-break">
|
||||
<span class="small text-secondary">{{screenTargetsLabel}}</span>
|
||||
</td>
|
||||
<td data-label="Type">{{announcement_type}}</td>
|
||||
@@ -66,17 +66,20 @@
|
||||
{{/if}}
|
||||
</td>
|
||||
<td data-label="Actions">
|
||||
{{#if (anyPermission ../currentUser 'announcements.update' 'announcements.delete')}}
|
||||
{{#if (anyPermission ../currentUser 'announcements.create' 'announcements.update' 'announcements.delete')}}
|
||||
<div class="actions">
|
||||
{{#if (hasPermission ../currentUser 'announcements.update')}}
|
||||
<form class="inline-form" method="post" action="{{actionButtonPath}}" data-confirm-message="{{actionButtonConfirmMessage}}" data-async-command>
|
||||
<button class="btn btn-sm {{actionButtonClassName}}" type="submit"><i class="bi {{actionButtonIcon}} me-1" aria-hidden="true"></i>{{actionButtonLabel}}</button>
|
||||
<button class="btn btn-sm {{actionButtonClassName}}" type="submit" {{#if actionButtonDisabled}}disabled title="{{actionButtonDisabledTitle}}"{{/if}}><i class="bi {{actionButtonIcon}} me-1" aria-hidden="true"></i>{{actionButtonLabel}}</button>
|
||||
</form>
|
||||
<a class="btn btn-sm btn-primary" href="/announcements/{{id}}/edit">Edit</a>
|
||||
{{/if}}
|
||||
{{#if (hasPermission ../currentUser 'announcements.create')}}
|
||||
<a class="btn btn-sm btn-secondary" href="/announcements/{{id}}/duplicate">Dupe</a>
|
||||
{{/if}}
|
||||
{{#if (hasPermission ../currentUser 'announcements.delete')}}
|
||||
<form class="inline-form" method="post" action="/announcements/{{id}}/delete" data-confirm-message="Delete this announcement?">
|
||||
<button class="btn btn-sm btn-danger" type="submit">Delete</button>
|
||||
<button class="btn btn-sm {{#if deleteDisabled}}btn-outline-danger{{else}}btn-danger{{/if}}" type="submit" {{#if deleteDisabled}}disabled title="{{deleteBlockedMessage}}"{{/if}}>Delete</button>
|
||||
</form>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user