44< head >
55 < meta charset ="UTF-8 ">
66 < title > Authorize</ title >
7+ < script type ="text/javascript ">
8+ window . onload = function ( ) {
9+ const element = document . getElementById ( "logout-link" )
10+ element . href += encodeURIComponent ( window . location . pathname + window . location . search )
11+ }
12+ </ script >
713</ head >
8- < div class ="page-wrap gradient-primary ">
9- < div class ="container ">
10- < h1 class ="logo "> < a href ="https://www.drycc.cc " title ="Drycc "> Drycc</ a > </ h1 >
11- < div class ="panel ">
12- {% if not error %}
13- < h2 class ="h3 "> {% trans "Authorize" %} {{ application.name }}?</ h2 >
14- {{ updated }}
15- < form id ="authorizationForm " method ="post ">
16- {% csrf_token %}
17- {% for field in form %}
18- {% if field.is_hidden %}
19- {{ field }}
20- {% endif %}
21- {% endfor %}
22- {{ form.errors }}
23- {{ form.non_field_errors }}
24- < br >
25- < input type ="submit " class ="btn btn-primary btn-lg btn-block " name ="allow " value ="{% trans 'Authorize' %} "/>
26- </ form >
27- {% else %}
28- < h2 class ="h3 "> {{ error.error }}</ h2 >
29- < p class ="tc gray-90 inverted-wrapper "> {{ error.description }}</ p >
30- < div class ="inverted-wrapper "> </ div >
31- {% endif %}
14+ < body >
15+ < div class ="page-wrap gradient-primary ">
16+ < div class ="container ">
17+ < h1 class ="logo "> < a href ="https://www.drycc.cc " title ="Drycc "> Drycc</ a > </ h1 >
18+ < div class ="panel ">
19+ {% if not error %}
20+ < h2 class ="h3 "> {% trans "Authorize" %} {{ application.name }}?</ h2 >
21+ {{ updated }}
22+ < div > {{ application.name }} wants to access your {{ request.user.username }} account</ div >
23+ < form id ="authorizationForm " method ="post ">
24+ {% csrf_token %}
25+ {% for field in form %}
26+ {% if field.is_hidden %}
27+ {{ field }}
28+ {% endif %}
29+ {% endfor %}
30+ {{ form.errors }}
31+ {{ form.non_field_errors }}
32+ < br >
33+ < input type ="submit " class ="btn btn-primary btn-lg btn-block " name ="allow " value ="{% trans 'Authorize' %} "/>
34+ </ form >
35+ < a id ="logout-link " class ="panel-footer " href ="/user/logout?next= "> With another account? < span > Sigin In</ span > </ a >
36+ {% else %}
37+ < h2 class ="h3 "> {{ error.error }}</ h2 >
38+ < p class ="tc gray-90 inverted-wrapper "> {{ error.description }}</ p >
39+ < div class ="inverted-wrapper "> </ div >
40+ {% endif %}
41+ </ div >
3242 </ div >
3343 </ div >
34- </ div >
44+ </ body >
0 commit comments