FossilRepo

fossilrepo / templates / organization / partials / team_table.html
Source Blame History 36 lines
4ce269c… ragelink 1 <div id="team-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">Name</th>
2f13242… ragelink 7 <th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Members</th>
2f13242… ragelink 8 <th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Created</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 team in teams %}
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 'organization:team_detail' slug=team.slug %}" class="text-brand-light hover:text-brand font-medium">
4ce269c… ragelink 17 {{ team.name }}
4ce269c… ragelink 18 </a>
4ce269c… ragelink 19 </td>
4ce269c… ragelink 20 <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">{{ team.members.count }}</td>
4ce269c… ragelink 21 <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">{{ team.created_at|date:"N j, Y" }}</td>
4ce269c… ragelink 22 <td class="px-6 py-4 whitespace-nowrap text-right text-sm">
4ce269c… ragelink 23 {% if perms.organization.change_team %}
4ce269c… ragelink 24 <a href="{% url 'organization:team_update' slug=team.slug %}" class="text-brand-light hover:text-brand">Edit</a>
4ce269c… ragelink 25 {% endif %}
4ce269c… ragelink 26 </td>
4ce269c… ragelink 27 </tr>
4ce269c… ragelink 28 {% empty %}
4ce269c… ragelink 29 <tr>
4ce269c… ragelink 30 <td colspan="4" class="px-6 py-8 text-center text-sm text-gray-400">No teams found.</td>
4ce269c… ragelink 31 </tr>
4ce269c… ragelink 32 {% endfor %}
4ce269c… ragelink 33 </tbody>
4ce269c… ragelink 34 </table>
4ce269c… ragelink 35 </div>
4ce269c… ragelink 36 </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