aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/main.template.html2
-rw-r--r--src/templates/wifi.template.html36
-rw-r--r--src/templates/wired.template.html33
3 files changed, 52 insertions, 19 deletions
diff --git a/src/templates/main.template.html b/src/templates/main.template.html
index e37c935..f121092 100644
--- a/src/templates/main.template.html
+++ b/src/templates/main.template.html
@@ -49,7 +49,7 @@
<div class="col-1">
<i class="fas fa-network-wired"></i>
</div>
- <div class="col-9">
+ <div class="col-9" onclick="window.wired.show()">
Wired
</div>
<div class="col-2 text-right">
diff --git a/src/templates/wifi.template.html b/src/templates/wifi.template.html
index 72b93b4..e36c56c 100644
--- a/src/templates/wifi.template.html
+++ b/src/templates/wifi.template.html
@@ -13,25 +13,25 @@
</div>
</h2>
<div class="list-group scrollable">
- {{ #devices }}
- <div class="row border-bottom py-3 list-group-action">
- <div class="col-1">
- <i class="fas fa-wifi"></i>
+ {{ #devices }}
+ <div class="row border-bottom py-3 list-group-action">
+ <div class="col-1">
+ <i class="fas fa-wifi"></i>
+ </div>
+ <div class="col-6">
+ <div>
+ {{ properties.name }}
</div>
- <div class="col-6">
- <div>
- {{ properties.name }}
- </div>
- <div class="badge badge-secondary">
- {{ properties.ethernet.address}}
- </div>
+ <div class="badge badge-secondary">
+ {{ properties.ethernet.address}}
</div>
- <div class="col-5 text-right">
- <div class="progress">
- <div class="progress-bar" role="progressbar" style="width: {{properties.strength}}%;" aria-valuenow="{{properties.strength}}" aria-valuemin="0" aria-valuemax="100"></div>
- </div>
+ </div>
+ <div class="col-5 text-right">
+ <div class="progress">
+ <div class="progress-bar" role="progressbar" style="width: {{properties.strength}}%;" aria-valuenow="{{properties.strength}}" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
- {{ /devices }}
- </div>
- </div> \ No newline at end of file
+ </div>
+ {{ /devices }}
+ </div>
+</div> \ No newline at end of file
diff --git a/src/templates/wired.template.html b/src/templates/wired.template.html
new file mode 100644
index 0000000..23f1d80
--- /dev/null
+++ b/src/templates/wired.template.html
@@ -0,0 +1,33 @@
+<div class="container">
+ <h2 class="my-5">
+ <div class="row">
+ <div class="col-1" onclick="wired.hide()">
+ <i class="fas fa-chevron-left"></i>
+ </div>
+ <div class="col-10">
+ Wired
+ </div>
+ </div>
+ </h2>
+ <div class="list-group scrollable">
+ {{ #devices }}
+ <div class="row border-bottom py-3 list-group-action">
+ <div class="col-1">
+ <i class="fas fa-network-wired"></i>
+ </div>
+ <div class="col-9">
+ <div>
+ {{ properties.name }}
+ </div>
+ <div class="badge badge-secondary">
+ {{ properties.ipv4.address}}
+ </div>
+ </div>
+ <div class="col-2 text-right">
+
+ </div>
+ </div>
+ {{ /devices }}
+ </div>
+</div>
+</div> \ No newline at end of file