feat: display vlan id on main page

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 21:55:50 +00:00
parent 5850898d5b
commit 3e5ee0800e
2 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -27,7 +27,12 @@
<li class="p-4 bg-gray-300 hover:bg-gray-100 dark:bg-zinc-900 hover:dark:bg-zinc-700 rounded-lg shadow-md flex items-center justify-between">
<a href="/subnet/{{ subnet.id }}">
<p class="text-gray-900 dark:text-white text-lg font-medium">{{ subnet.name }}</p>
<p class="text-sm text-gray-800 dark:text-gray-400">{{ subnet.cidr }}</p>
<div class="flex items-center space-x-2">
<p class="text-sm text-gray-800 dark:text-gray-400">{{ subnet.cidr }}</p>
{% if subnet.vlan_id %}
<span class="px-2 py-0.5 text-xs font-semibold bg-gray-200 dark:bg-zinc-800 rounded-full">VLAN {{ subnet.vlan_id }}</span>
{% endif %}
</div>
</a>
<button type="button" class="export-csv-btn ml-2 bg-gray-200 hover:bg-gray-400 dark:bg-zinc-600 dark:hover:bg-zinc-500 hover:cursor-pointer flex items-center justify-center rounded-full w-9 h-9" title="Export as CSV" data-subnet-id="{{ subnet.id }}">
<i class="fas fa-file-csv"></i>