aboutsummaryrefslogtreecommitdiff
path: root/templates/home.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-26 17:45:25 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-26 17:45:25 +0100
commitd1b66d30883c9e5fda0c4cace494dec74d7df024 (patch)
tree02d4b8a244ae2538966ea6384da11edd171de679 /templates/home.html
parent4270202972ec80ca98a5159e30978378194c1b41 (diff)
downloadeasybridge-d1b66d30883c9e5fda0c4cace494dec74d7df024.tar.gz
easybridge-d1b66d30883c9e5fda0c4cace494dec74d7df024.zip
Stub web interface
Diffstat (limited to 'templates/home.html')
-rw-r--r--templates/home.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html
new file mode 100644
index 0000000..40a0e5c
--- /dev/null
+++ b/templates/home.html
@@ -0,0 +1,30 @@
+{{define "title"}}{{end}}
+
+{{define "body"}}
+<div class="alert alert-info">
+ Logged in as <strong>{{ .Login.MxId }}</strong>
+</div>
+<div class="d-flex">
+ <a class="ml-auto btn btn-sm btn-dark" href="/logout">Log out</a>
+</div>
+
+<table class="table mt-4">
+ <thead>
+ <tr>
+ <th>Account name</th>
+ <th>Protocol</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{range $name, $acc := .Accounts}}
+ <tr>
+ <td>{{ $name }}</td>
+ <td>{{ $acc.Protocol }}</td>
+ <td>Modifier etc</td>
+ </tr>
+ {{end}}
+ </tbody>
+</table>
+
+{{end}}