This repository has been archived on 2024-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
icynet-auth-server/views/authorize.pug

66 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2022-03-09 18:37:04 +00:00
extends partials/layout.pug
block title
|Authorize application | Icy Network
2022-03-09 18:37:04 +00:00
block body
2022-03-16 18:37:50 +00:00
include partials/logo.pug
div.container
div.center-box
h1 Authorize application
.authorize
.authorize__user
.authorize__user-image
2022-03-20 14:50:12 +00:00
if user.picture
img(src='/uploads/' + user.picture.file, alt=user.username)
else
img(src='/public/image/avatar.png', alt='No picture')
2022-03-16 18:37:50 +00:00
.authorize__user-content
span.authorize__user-title #{user.display_name}
span.authorize__user-user @#{user.username}
.authorize__center
.authorize__client
.authorize__client-image
2022-03-20 14:50:12 +00:00
if client.picture
img(src='/uploads/' + client.picture.file, alt=client.title)
else
img(src='/public/image/application.png', alt='No picture')
2022-03-16 18:37:50 +00:00
.authorize__client-content
span.authorize__client-title #{client.title}
span.authorize__client-description #{client.description}
.authorize__client-urls
each url in client.urls
if url.type == 'website'
a.authorize__client-url(href=url.url, target="_blank", rel="nofollow") Visit website
if url.type == 'privacy'
a.authorize__client-url(href=url.url, target="_blank", rel="nofollow") Privacy Policy
if url.type == 'terms'
a.authorize__client-url(href=url.url, target="_blank", rel="nofollow") Terms of Service
if allowedScopes
h2.text-center This application will have access to..
2022-03-16 18:37:50 +00:00
.scopes
each allowed in allowedScopes
span.scopes__scope.scopes__scope--allowed #{allowed}
2022-03-16 18:37:50 +00:00
if disallowedScopes
h2.text-center This application will not have access to..
2022-03-16 18:37:50 +00:00
.scopes
each allowed in disallowedScopes
span.scopes__scope.scopes__scope--disallowed #{allowed}
2022-03-16 18:37:50 +00:00
form(method="POST", action="")
div.form-container
2022-03-20 14:50:12 +00:00
input(type="hidden", name="_csrf", value=csrf)
2022-03-16 18:37:50 +00:00
input(type="hidden", name="decision", value="1")
button.btn.btn-primary(type="submit") Authorize
form(method="POST", action="")
div.form-container
2022-03-20 14:50:12 +00:00
input(type="hidden", name="_csrf", value=csrf)
2022-03-16 18:37:50 +00:00
input(type="hidden", name="decision", value="0")
button.btn.btn-link(type="submit") Reject