summaryrefslogtreecommitdiff
path: root/web/template/authorize.tmpl
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2021-06-21 19:46:10 +0200
committerLibravatar GitHub <noreply@github.com>2021-06-21 19:46:10 +0200
commitf9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe (patch)
treec7312570819f998a51ad79e950baf523ae6426f8 /web/template/authorize.tmpl
parentDeletes+unboosts (#52) (diff)
downloadgotosocial-f9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe.tar.xz
new styling for frontpage, update login and authorize templates (#46)
* new styling for frontpage, update login and authorize templates * run go fmt * add AssetBaseDir to command flag parsing * untested: move landing page to it's own router * go fmt, fix typo * fix package, adapt to proper Route structure
Diffstat (limited to 'web/template/authorize.tmpl')
-rw-r--r--web/template/authorize.tmpl43
1 files changed, 12 insertions, 31 deletions
diff --git a/web/template/authorize.tmpl b/web/template/authorize.tmpl
index fa6338b35..bc609ed66 100644
--- a/web/template/authorize.tmpl
+++ b/web/template/authorize.tmpl
@@ -1,34 +1,15 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <title>GoToSocial Authorization</title>
- <link
- rel="stylesheet"
- href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
- />
- <script src="//code.jquery.com/jquery-2.2.4.min.js"></script>
- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
- </head>
-
- <body>
- <div class="container">
- <div class="jumbotron">
- <form action="/oauth/authorize" method="POST">
- <h1>Hi {{.user}}!</h1>
- <p>Application <b>{{.appname}}</b> {{if len .appwebsite | eq 0 | not}}({{.appwebsite}}) {{end}}would like to perform actions on your behalf, with scope <em>{{.scope}}</em>.</p>
- <p>The application will redirect to {{.redirect}} to continue.</p>
- <p>
+{{ template "header.tmpl" .}}
+ <form action="/oauth/authorize" method="POST">
+ <h1>Hi {{.user}}!</h1>
+ <p>Application <b>{{.appname}}</b> {{if len .appwebsite | eq 0 | not}}({{.appwebsite}}) {{end}}would like to perform actions on your behalf, with scope <em>{{.scope}}</em>.</p>
+ <p>The application will redirect to {{.redirect}} to continue.</p>
+ <p>
<button
- type="submit"
- class="btn btn-primary btn-lg"
- style="width:200px;"
+ type="submit"
+ style="width:200px;"
>
- Allow
+ Allow
</button>
- </p>
- </form>
- </div>
- </div>
- </body>
-</html>
+ </p>
+ </form>
+{{ template "footer.tmpl" .}} \ No newline at end of file