FossilRepo

fossilrepo / templates / pages / partials / page_table.html
Source Blame History 42 lines
4ce269c… ragelink 1 <div id="page-table">
313537c… ragelink 2 <div class="overflow-x-auto rounded-lg border border-gray-700 bg-gray-800 shadow-sm">
4ce269c… ragelink 3 <table class="min-w-full divide-y divide-gray-700">
2f13242… ragelink 4 <thead class="bg-gray-900/80">
4ce269c… ragelink 5 <tr>
2f13242… ragelink 6 <th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Title</th>
2f13242… ragelink 7 <th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Status</th>
2f13242… ragelink 8 <th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Updated</th>
2f13242… ragelink 9 <th class="px-6 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Actions</th>
4ce269c… ragelink 10 </tr>
4ce269c… ragelink 11 </thead>
2f13242… ragelink 12 <tbody class="divide-y divide-gray-700/70 bg-gray-800">
4ce269c… ragelink 13 {% for page in pages %}
2f13242… ragelink 14 <tr class="hover:bg-gray-700/40 transition-colors">
4ce269c… ragelink 15 <td class="px-6 py-4 whitespace-nowrap">
4ce269c… ragelink 16 <a href="{% url 'pages:detail' slug=page.slug %}" class="text-brand-light hover:text-brand font-medium">
4ce269c… ragelink 17 {{ page.name }}
4ce269c… ragelink 18 </a>
4ce269c… ragelink 19 </td>
4ce269c… ragelink 20 <td class="px-6 py-4 whitespace-nowrap">
4ce269c… ragelink 21 {% if page.is_published %}
4ce269c… ragelink 22 <span class="inline-flex rounded-full bg-green-900/50 px-2 text-xs font-semibold leading-5 text-green-300">Published</span>
4ce269c… ragelink 23 {% else %}
4ce269c… ragelink 24 <span class="inline-flex rounded-full bg-yellow-900/50 px-2 text-xs font-semibold leading-5 text-yellow-300">Draft</span>
4ce269c… ragelink 25 {% endif %}
4ce269c… ragelink 26 </td>
4ce269c… ragelink 27 <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">{{ page.updated_at|date:"N j, Y" }}</td>
4ce269c… ragelink 28 <td class="px-6 py-4 whitespace-nowrap text-right text-sm">
4ce269c… ragelink 29 {% if perms.pages.change_page %}
4ce269c… ragelink 30 <a href="{% url 'pages:update' slug=page.slug %}" class="text-brand-light hover:text-brand">Edit</a>
4ce269c… ragelink 31 {% endif %}
4ce269c… ragelink 32 </td>
4ce269c… ragelink 33 </tr>
4ce269c… ragelink 34 {% empty %}
4ce269c… ragelink 35 <tr>
4ce269c… ragelink 36 <td colspan="4" class="px-6 py-8 text-center text-sm text-gray-400">No pages found.</td>
4ce269c… ragelink 37 </tr>
4ce269c… ragelink 38 {% endfor %}
4ce269c… ragelink 39 </tbody>
4ce269c… ragelink 40 </table>
4ce269c… ragelink 41 </div>
4ce269c… ragelink 42 </div>

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button