From d1b66d30883c9e5fda0c4cace494dec74d7df024 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 26 Feb 2020 17:45:25 +0100 Subject: Stub web interface --- templates/home.html | 30 ++++++++++++++++++++++++++++++ templates/layout.html | 18 ++++++++++++++++++ templates/login.html | 30 ++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 templates/home.html create mode 100644 templates/layout.html create mode 100644 templates/login.html (limited to 'templates') 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"}} +
+ Logged in as {{ .Login.MxId }} +
+
+ Log out +
+ + + + + + + + + + + {{range $name, $acc := .Accounts}} + + + + + + {{end}} + +
Account nameProtocol
{{ $name }}{{ $acc.Protocol }}Modifier etc
+ +{{end}} diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..e67da05 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,18 @@ + + + + + + + + + {{template "title"}} Easybridge + + +
+

Easybridge manager

+
+ {{template "body" .}} +
+ + diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..47435ac --- /dev/null +++ b/templates/login.html @@ -0,0 +1,30 @@ +{{define "title"}}{{end}} + +{{define "body"}} +

Log in

+ +
+ Log in using your Matrix credentials on {{ .MatrixDomain }} +
+ +
+ {{if .WrongPass}} +
Wrong password.
+ {{end}} + {{if .ErrorMessage}} +
Unable to log in. +
{{ .ErrorMessage }}
+
+ {{end}} +
+ + +
+
+ + +
+ +
+ +{{end}} -- cgit v1.2.3