Remove asset restrictions and make asset groups smarter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% load cache %}
|
||||
{% load cachalot cache %}
|
||||
{% get_last_invalidation 'core.AssetGroup' 'core.AssetRestriction' as last %}
|
||||
{% get_last_invalidation 'core.AssetGroup' as last %}
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{% cache 600 objects_assetgroups request.user.id object_list last %}
|
||||
<table
|
||||
@@ -16,7 +16,7 @@
|
||||
<th>name</th>
|
||||
<th>description</th>
|
||||
<th>status</th>
|
||||
<th>restrictions</th>
|
||||
<th>hook</th>
|
||||
<th>actions</th>
|
||||
</thead>
|
||||
{% for item in object_list %}
|
||||
@@ -35,7 +35,15 @@
|
||||
{{ item.matches }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ item.restrictions }}</td>
|
||||
<td>
|
||||
<a
|
||||
class="has-text-grey"
|
||||
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{settings.URL}}/{{settings.ASSET_PATH}}/{{ item.webhook_id }}/');">
|
||||
<span class="icon" data-tooltip="Copy to clipboard">
|
||||
<i class="fa-solid fa-copy" aria-hidden="true"></i>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="buttons">
|
||||
<button
|
||||
@@ -65,15 +73,6 @@
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
<a href="{% url 'assetrestrictions' type='page' group=item.id %}"><button
|
||||
class="button">
|
||||
<span class="icon-text">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-eye"></i>
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user