FossilRepo
| 4ce269c… | ragelink | 1 | {% extends "base.html" %} |
| 4ce269c… | ragelink | 2 | {% block title %}{{ page.name }} — Fossilrepo{% endblock %} |
| 4ce269c… | ragelink | 3 | |
| 4ce269c… | ragelink | 4 | {% block content %} |
| 4ce269c… | ragelink | 5 | <div class="overflow-hidden rounded-lg bg-gray-800 shadow border border-gray-700"> |
| 4ce269c… | ragelink | 6 | <div class="px-6 py-5 sm:flex sm:items-center sm:justify-between border-b border-gray-700"> |
| 4ce269c… | ragelink | 7 | <div> |
| 4ce269c… | ragelink | 8 | <h1 class="text-2xl font-bold text-gray-100">{{ page.name }}</h1> |
| 4ce269c… | ragelink | 9 | <p class="mt-1 text-sm text-gray-400"> |
| 4ce269c… | ragelink | 10 | {% if not page.is_published %} |
| 4ce269c… | ragelink | 11 | <span class="inline-flex rounded-full bg-yellow-900/50 px-2 text-xs font-semibold leading-5 text-yellow-300 mr-2">Draft</span> |
| 4ce269c… | ragelink | 12 | {% endif %} |
| 4ce269c… | ragelink | 13 | Updated {{ page.updated_at|date:"N j, Y g:i a" }}{% if page.updated_by %} by {{ page.updated_by }}{% endif %} |
| 4ce269c… | ragelink | 14 | </p> |
| 4ce269c… | ragelink | 15 | </div> |
| 4ce269c… | ragelink | 16 | <div class="mt-4 flex gap-3 sm:mt-0"> |
| 4ce269c… | ragelink | 17 | {% if perms.pages.change_page %} |
| 4ce269c… | ragelink | 18 | <a href="{% url 'pages:update' slug=page.slug %}" |
| 4ce269c… | ragelink | 19 | class="rounded-md bg-gray-700 px-3 py-2 text-sm font-semibold text-gray-100 shadow-sm ring-1 ring-inset ring-gray-600 hover:bg-gray-600"> |
| 4ce269c… | ragelink | 20 | Edit |
| 4ce269c… | ragelink | 21 | </a> |
| 4ce269c… | ragelink | 22 | {% endif %} |
| 4ce269c… | ragelink | 23 | {% if perms.pages.delete_page %} |
| 4ce269c… | ragelink | 24 | <a href="{% url 'pages:delete' slug=page.slug %}" |
| 4ce269c… | ragelink | 25 | class="rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500"> |
| 4ce269c… | ragelink | 26 | Delete |
| 4ce269c… | ragelink | 27 | </a> |
| 4ce269c… | ragelink | 28 | {% endif %} |
| 4ce269c… | ragelink | 29 | </div> |
| 4ce269c… | ragelink | 30 | </div> |
| 4ce269c… | ragelink | 31 | |
| 4ce269c… | ragelink | 32 | <div class="px-6 py-6"> |
| 4ce269c… | ragelink | 33 | <div class="prose prose-invert prose-gray max-w-none"> |
| 4ce269c… | ragelink | 34 | {{ content_html }} |
| 4ce269c… | ragelink | 35 | </div> |
| 4ce269c… | ragelink | 36 | </div> |
| 4ce269c… | ragelink | 37 | </div> |
| 4ce269c… | ragelink | 38 | {% endblock %} |