2022-03-09 18:37:04 +00:00
|
|
|
extends partials/layout.pug
|
|
|
|
|
|
|
|
block title
|
2022-03-19 10:25:37 +00:00
|
|
|
|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
|
|
|
|
.authorize__user-content
|
|
|
|
span.authorize__user-title #{user.display_name}
|
|
|
|
span.authorize__user-user @#{user.username}
|
|
|
|
.authorize__center
|
|
|
|
.authorize__client
|
|
|
|
.authorize__client-image
|
|
|
|
.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
|
|
|
|
|
|
|
|
h2.text-center This application will have access to..
|
|
|
|
|
|
|
|
.scopes
|
|
|
|
each allowed in allowedScopes
|
|
|
|
span.scopes__scope.scopes__scope--allowed #{allowed}
|
|
|
|
|
|
|
|
|
|
|
|
h2.text-center This application will not have access to..
|
|
|
|
|
|
|
|
.scopes
|
|
|
|
each allowed in disallowedScopes
|
|
|
|
span.scopes__scope.scopes__scope--disallowed #{allowed}
|
|
|
|
|
|
|
|
form(method="POST", action="")
|
|
|
|
div.form-container
|
|
|
|
input(type="hidden", name="csrf", value=csrf)
|
|
|
|
input(type="hidden", name="decision", value="1")
|
|
|
|
button.btn.btn-primary(type="submit") Authorize
|
|
|
|
|
|
|
|
form(method="POST", action="")
|
|
|
|
div.form-container
|
|
|
|
input(type="hidden", name="csrf", value=csrf)
|
|
|
|
input(type="hidden", name="decision", value="0")
|
|
|
|
button.btn.btn-link(type="submit") Reject
|