Make device list live and add cursor pointer to breadcrumbs

This commit is contained in:
Peter Stockings
2023-01-24 21:16:23 +11:00
parent 763f8832c8
commit 245c2d0b0b
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
<div class="h-full w-full bg-gray-50 relative overflow-y-auto container mx-auto"> <div class="h-full w-full bg-gray-50 relative overflow-y-auto container mx-auto">
<main> <main>
<div class="px-4 pt-8" id="container"> <div class="px-4 pt-8" id="container">
<div hx-get="{{ url_for('devices') }}" hx-trigger="load"> <div hx-get="{{ url_for('devices') }}" hx-trigger="load, every 5s">
<div class="flex justify-center"> <div class="flex justify-center">
<div role="status"> <div role="status">
<svg aria-hidden="true" <svg aria-hidden="true"

View File

@@ -3,7 +3,7 @@
<ol class="inline-flex items-center space-x-1 md:space-x-3"> <ol class="inline-flex items-center space-x-1 md:space-x-3">
<li class="inline-flex items-center"> <li class="inline-flex items-center">
<a hx-get="{{ url_for('devices') }}" hx-push-url="true" hx-target="#container" <a hx-get="{{ url_for('devices') }}" hx-push-url="true" hx-target="#container"
class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white"> class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white cursor-pointer">
<svg aria-hidden="true" class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20" <svg aria-hidden="true" class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"> xmlns="http://www.w3.org/2000/svg">
<path <path

View File

@@ -3,7 +3,7 @@
<ol class="inline-flex items-center space-x-1 md:space-x-3"> <ol class="inline-flex items-center space-x-1 md:space-x-3">
<li class="inline-flex items-center"> <li class="inline-flex items-center">
<a hx-get="{{ url_for('devices') }}" hx-target="#container" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 <a hx-get="{{ url_for('devices') }}" hx-target="#container" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600
dark:text-gray-400 dark:hover:text-white"> dark:text-gray-400 dark:hover:text-white cursor-pointer">
<svg aria-hidden="true" class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20" <svg aria-hidden="true" class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"> xmlns="http://www.w3.org/2000/svg">
<path <path