FossilRepo
| 4ce269c… | ragelink | 1 | {% extends "base.html" %} |
| 4ce269c… | ragelink | 2 | {% block title %}{{ team.name }} — Fossilrepo{% endblock %} |
| 4ce269c… | ragelink | 3 | |
| 4ce269c… | ragelink | 4 | {% block content %} |
| 4ce269c… | ragelink | 5 | <div class="mb-6"> |
| 4ce269c… | ragelink | 6 | <a href="{% url 'organization:team_list' %}" class="text-sm text-brand-light hover:text-brand">← Back to Teams</a> |
| 4ce269c… | ragelink | 7 | </div> |
| 4ce269c… | ragelink | 8 | |
| 4ce269c… | ragelink | 9 | <div class="overflow-hidden rounded-lg bg-gray-800 shadow border border-gray-700"> |
| 4ce269c… | ragelink | 10 | <div class="px-6 py-5 sm:flex sm:items-center sm:justify-between"> |
| 4ce269c… | ragelink | 11 | <div> |
| 4ce269c… | ragelink | 12 | <h1 class="text-2xl font-bold text-gray-100">{{ team.name }}</h1> |
| 4ce269c… | ragelink | 13 | <p class="mt-1 text-sm text-gray-400">{{ team.slug }}</p> |
| 4ce269c… | ragelink | 14 | </div> |
| 4ce269c… | ragelink | 15 | <div class="mt-4 flex gap-3 sm:mt-0"> |
| 4ce269c… | ragelink | 16 | {% if perms.organization.change_team %} |
| 4ce269c… | ragelink | 17 | <a href="{% url 'organization:team_update' slug=team.slug %}" |
| 4ce269c… | ragelink | 18 | 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 | 19 | Edit |
| 4ce269c… | ragelink | 20 | </a> |
| 4ce269c… | ragelink | 21 | {% endif %} |
| 4ce269c… | ragelink | 22 | {% if perms.organization.delete_team %} |
| 4ce269c… | ragelink | 23 | <a href="{% url 'organization:team_delete' slug=team.slug %}" |
| 4ce269c… | ragelink | 24 | class="rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500"> |
| 4ce269c… | ragelink | 25 | Delete |
| 4ce269c… | ragelink | 26 | </a> |
| 4ce269c… | ragelink | 27 | {% endif %} |
| 4ce269c… | ragelink | 28 | </div> |
| 4ce269c… | ragelink | 29 | </div> |
| 4ce269c… | ragelink | 30 | |
| 4ce269c… | ragelink | 31 | <div class="border-t border-gray-700 px-6 py-5"> |
| 4ce269c… | ragelink | 32 | <dl class="grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2"> |
| 4ce269c… | ragelink | 33 | <div class="sm:col-span-2"> |
| 4ce269c… | ragelink | 34 | <dt class="text-sm font-medium text-gray-400">Description</dt> |
| 4ce269c… | ragelink | 35 | <dd class="mt-1 text-sm text-gray-100">{{ team.description|default:"No description." }}</dd> |
| 4ce269c… | ragelink | 36 | </div> |
| 4ce269c… | ragelink | 37 | <div> |
| 4ce269c… | ragelink | 38 | <dt class="text-sm font-medium text-gray-400">GUID</dt> |
| 4ce269c… | ragelink | 39 | <dd class="mt-1 text-sm text-gray-400 font-mono">{{ team.guid }}</dd> |
| 4ce269c… | ragelink | 40 | </div> |
| 4ce269c… | ragelink | 41 | <div> |
| 4ce269c… | ragelink | 42 | <dt class="text-sm font-medium text-gray-400">Created</dt> |
| 4ce269c… | ragelink | 43 | <dd class="mt-1 text-sm text-gray-400">{{ team.created_at|date:"N j, Y g:i a" }} by {{ team.created_by|default:"system" }}</dd> |
| 4ce269c… | ragelink | 44 | </div> |
| 4ce269c… | ragelink | 45 | </dl> |
| 4ce269c… | ragelink | 46 | </div> |
| 4ce269c… | ragelink | 47 | </div> |
| 4ce269c… | ragelink | 48 | |
| 4ce269c… | ragelink | 49 | <div class="mt-8"> |
| 4ce269c… | ragelink | 50 | <div class="md:flex md:items-center md:justify-between mb-4"> |
| 4ce269c… | ragelink | 51 | <h2 class="text-lg font-semibold text-gray-100">Team Members</h2> |
| 4ce269c… | ragelink | 52 | {% if perms.organization.change_team %} |
| 4ce269c… | ragelink | 53 | <a href="{% url 'organization:team_member_add' slug=team.slug %}" |
| 4ce269c… | ragelink | 54 | class="mt-4 md:mt-0 inline-flex items-center rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover"> |
| 4ce269c… | ragelink | 55 | Add Member |
| 4ce269c… | ragelink | 56 | </a> |
| 4ce269c… | ragelink | 57 | {% endif %} |
| 4ce269c… | ragelink | 58 | </div> |
| 4ce269c… | ragelink | 59 | |
| 4ce269c… | ragelink | 60 | {% include "organization/partials/team_member_table.html" %} |
| 4ce269c… | ragelink | 61 | </div> |
| 4ce269c… | ragelink | 62 | {% endblock %} |