diff --git a/cmd/wg-portal/assets/css/custom.css b/cmd/wg-portal/assets/css/custom.css index 5a7d603..78572ca 100644 --- a/cmd/wg-portal/assets/css/custom.css +++ b/cmd/wg-portal/assets/css/custom.css @@ -100,4 +100,8 @@ .text-blue { color: #0057bb; +} + +.text-large { + font-size: 150%; } \ No newline at end of file diff --git a/cmd/wg-portal/assets/tpl/admin_create_interface.gohtml b/cmd/wg-portal/assets/tpl/admin_create_interface.gohtml new file mode 100644 index 0000000..4cb32f7 --- /dev/null +++ b/cmd/wg-portal/assets/tpl/admin_create_interface.gohtml @@ -0,0 +1,24 @@ + + + + + + + {{ .Static.WebsiteTitle }} - Create Interface + + + + + + + + {{template "prt_nav.gohtml" .}} +
+ +
+ {{template "prt_footer.gohtml" .}} + + + + + \ No newline at end of file diff --git a/cmd/wg-portal/assets/tpl/admin_import_interface.gohtml b/cmd/wg-portal/assets/tpl/admin_import_interface.gohtml new file mode 100644 index 0000000..966be97 --- /dev/null +++ b/cmd/wg-portal/assets/tpl/admin_import_interface.gohtml @@ -0,0 +1,24 @@ + + + + + + + {{ .Static.WebsiteTitle }} - Import Interface + + + + + + + + {{template "prt_nav.gohtml" .}} +
+ +
+ {{template "prt_footer.gohtml" .}} + + + + + \ No newline at end of file diff --git a/cmd/wg-portal/assets/tpl/admin_index.gohtml b/cmd/wg-portal/assets/tpl/admin_index.gohtml index fe99d77..94e6b90 100644 --- a/cmd/wg-portal/assets/tpl/admin_index.gohtml +++ b/cmd/wg-portal/assets/tpl/admin_index.gohtml @@ -20,9 +20,16 @@ {{template "prt_flashes.gohtml" .}}
+ {{with not $.Interfaces}} +
+

No interfaces found...

+ + Create new interface +
+ {{else}}
- Interface status for {{.Interface.Identifier}} {{if eq $.Interface.Type "server"}}(server mode){{end}}{{if eq $.Interface.Type "client"}}(client mode){{end}} + Interface status for {{$.Interface.Identifier}} {{if eq $.Interface.Type "server"}}(server mode){{end}}{{if eq $.Interface.Type "client"}}(client mode){{end}}
    @@ -130,9 +137,12 @@
+ {{end}}
+ + {{with $.Interface}}
{{if eq $.Interface.Type "server"}} @@ -293,6 +303,7 @@
+ {{end}} {{template "prt_footer.gohtml" .}} diff --git a/cmd/wg-portal/assets/tpl/admin_new_interface.gohtml b/cmd/wg-portal/assets/tpl/admin_new_interface.gohtml new file mode 100644 index 0000000..d54c0cf --- /dev/null +++ b/cmd/wg-portal/assets/tpl/admin_new_interface.gohtml @@ -0,0 +1,77 @@ + + + + + + + {{ .Static.WebsiteTitle }} - New Interface + + + + + + + +{{template "prt_nav.gohtml" .}} +
+ + {{template "prt_flashes.gohtml" .}} +
+
+
+
+
Create new interface
+
+

Create a new WireGuard interface. This action will also create the interface on + the host system.

+ Create +
+
+ +
+
Import interface
+
+ {{if not $.ImportableInterfaces}} +

No interfaces available...

+ {{else}} +
+ + + + + + + + + + + + + {{range $i, $ps := $.ImportableInterfaces}} + + + + + + + + + {{end}} + +
InterfacePublic KeySourceTypePeers
{{$i.Identifier}}{{$i.PublicKey}}{{$i.ImportLocation}}{{$i.ImportType}}{{len $ps}}
+
+ {{end}} +
+
+
+
+
+
+ {{template "prt_footer.gohtml" .}} + + + + + \ No newline at end of file diff --git a/cmd/wg-portal/assets/tpl/prt_nav.gohtml b/cmd/wg-portal/assets/tpl/prt_nav.gohtml index 3f68770..58e5b98 100644 --- a/cmd/wg-portal/assets/tpl/prt_nav.gohtml +++ b/cmd/wg-portal/assets/tpl/prt_nav.gohtml @@ -27,6 +27,8 @@