aboutsummaryrefslogtreecommitdiff
path: root/src/templates/viewHome.html
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:54:38 +0530
committerVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:54:38 +0530
commit6a16bbdcdb40406592e47ee8d489f857837e5c96 (patch)
tree8d1a9f72115a106657e059f56e5b47df1a92f483 /src/templates/viewHome.html
Initial commit
Diffstat (limited to 'src/templates/viewHome.html')
-rw-r--r--src/templates/viewHome.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/templates/viewHome.html b/src/templates/viewHome.html
new file mode 100644
index 0000000..bd841d2
--- /dev/null
+++ b/src/templates/viewHome.html
@@ -0,0 +1,29 @@
+{{ define "main" }}
+{{ $location := .File.URI }}
+{{ $path := .File.Path }}
+<header>
+ <a href="/"><h1>Cloud Maker</h1></a>
+ <a href="/profile"><img src="/static/icons/bs/person-circle.svg"></a>
+</header>
+
+<form id="device_manager" name="device_manager" method="POST">
+
+ <div class="drives">
+ {{ range .File.Data }}
+ {{ $name := .Info.Name }}
+ <a class="drive" href="/view/{{$location}}/{{$name}}">
+ <span><img src="/static/icons/bs/hdd.svg"></span>
+ <span>
+ <div>{{ $name }}</div>
+ <div class="desc">drive</div>
+ </span>
+ </a>
+ {{ end }}
+ </div>
+
+ {{ if not .FileCount }}
+ <p class="info">No Drives Mounted.</p>
+ {{ end }}
+
+</form>
+{{ end }}