summaryrefslogtreecommitdiff
path: root/web/template/authorize.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/authorize.tmpl')
-rw-r--r--web/template/authorize.tmpl44
1 files changed, 21 insertions, 23 deletions
diff --git a/web/template/authorize.tmpl b/web/template/authorize.tmpl
index ada078968..9be094137 100644
--- a/web/template/authorize.tmpl
+++ b/web/template/authorize.tmpl
@@ -17,26 +17,24 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ -}}
-{{ template "header.tmpl" .}}
- <main>
- <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"
- style="width:200px;"
- >
- Allow
- </button>
- </p>
- </form>
- </main>
-{{ template "footer.tmpl" .}} \ No newline at end of file
+{{- with . }}
+<main>
+ <form action="/oauth/authorize" method="POST">
+ <h1>Hi {{ .user -}}!</h1>
+ <p>
+ Application
+ {{- if .appwebsite }}
+ <a href="{{- .appwebsite -}}" rel="nofollow noreferrer noopener" target="_blank">{{- .appname -}}</a>
+ {{- else }}
+ <b>{{- .appname -}}</b>
+ {{- end }}
+ would like to perform actions on your behalf, with scope
+ <em>{{- .scope -}}</em>.
+ </p>
+ <p>
+ To continue, the application will redirect to: <code>{{- .redirect -}}</code>
+ </p>
+ <button type="submit" style="width:200px;">Allow</button>
+ </form>
+</main>
+{{- end }} \ No newline at end of file