mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 10:51:21 +02:00
feat(admin-plugin): update admin entries layout #211
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% else %}
|
||||
{% set _entries = entries.fetch(entry.slug, {}) %}
|
||||
{% set _entries_length = _entries | length %}
|
||||
{% do
|
||||
{% do
|
||||
cache.save(entry.slug ~ '_counter', _entries_length) %}
|
||||
{% endif %}
|
||||
<div class="w-full md:w-3/12 lg:w-2/12 text-center p-4 relative">
|
||||
@@ -113,9 +113,6 @@
|
||||
<th>
|
||||
{{ tr('admin_slug') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ tr('admin_created_at') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ tr('admin_updated_at') }}
|
||||
</th>
|
||||
@@ -148,7 +145,7 @@
|
||||
{% else %}
|
||||
{% set _entries = entries.fetch(entry.slug, {}) %}
|
||||
{% set _entries_length = _entries | length %}
|
||||
{% do
|
||||
{% do
|
||||
cache.save(entry.slug ~ '_counter', _entries_length) %}
|
||||
{% endif %}
|
||||
<a href="{% if _entries_length > 0 %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}{% else %}{{ path_for('admin.entries.edit') }}?id={{ entry.slug }}&type=editor{% endif %}">
|
||||
@@ -174,14 +171,11 @@
|
||||
{% endif %}
|
||||
</a>
|
||||
</td>
|
||||
<td class="truncate">
|
||||
<td class="truncate {% if entry.visibility == 'hidden' or entry.visibility == 'draft' or entry.routable == false %}opacity-50{% endif %}">
|
||||
/
|
||||
{{ entry.slug }}
|
||||
</td>
|
||||
<td>
|
||||
{{ entry.created_at }}
|
||||
</td>
|
||||
<td>
|
||||
<td class="{% if entry.visibility == 'hidden' or entry.visibility == 'draft' or entry.routable == false %}opacity-50{% endif %}">
|
||||
{{ entry.published_at }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@@ -213,8 +207,7 @@
|
||||
<i class="icon icon--white mr-3">{{ icon('far fa-list-alt') }}</i>
|
||||
{{ tr('admin_type') }}</a>
|
||||
<div class="dropdown__divider"></div>
|
||||
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault(); deleteEntry('{{ entry.slug }}',
|
||||
{{ loop.index0 }});">
|
||||
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault(); deleteEntry('{{ entry.slug }}', {{ loop.index0 }});">
|
||||
<i class="icon icon--white mr-3">{{ icon('fas fa-trash-alt') }}</i>
|
||||
{{ tr('admin_delete') }}</a>
|
||||
<form id="duplicate-id-{{ entry.slug }}" action="{{ path_for('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">
|
||||
@@ -297,4 +290,4 @@
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user