0001-misc-use-POST-for-logout-40525.patch
gadjo/static/css/gadjo.scss | ||
---|---|---|
49 | 49 |
height: 100%; |
50 | 50 |
} |
51 | 51 | |
52 |
.sr-only { |
|
53 |
position: absolute; |
|
54 |
width: 1px; |
|
55 |
height: 1px; |
|
56 |
padding: 0; |
|
57 |
margin: -1px; |
|
58 |
overflow: hidden; |
|
59 |
clip: rect(0,0,0,0); |
|
60 |
border: 0; |
|
61 |
} |
|
62 | ||
52 | 63 |
a { |
53 | 64 |
color: $link-color; |
54 | 65 |
text-decoration: none; |
... | ... | |
145 | 156 |
.ui-logout { |
146 | 157 |
padding-left: 0; |
147 | 158 |
font-size: 150%; |
148 |
a {
|
|
159 |
button {
|
|
149 | 160 |
display: block; |
161 |
color: white; |
|
150 | 162 |
border: none; |
151 |
padding: 0 2rem;
|
|
163 |
padding: 0; |
|
152 | 164 |
margin-left: 1rem; |
165 |
height: $header-height; |
|
166 |
background: transparent; |
|
167 |
overflow: hidden; |
|
153 | 168 |
} |
154 |
a::before { |
|
169 |
button::after { |
|
170 |
display: block; |
|
171 |
padding: 0 2rem; |
|
155 | 172 |
font-family: FontAwesome; |
156 | 173 |
font-weight: normal; |
157 | 174 |
content: "\f05c"; // times-circle-o |
175 |
transition: transform 0.1s linear; |
|
176 |
} |
|
177 |
&:hover { |
|
178 |
button::after { |
|
179 |
transform: scale(1.8); |
|
180 |
} |
|
158 | 181 |
} |
159 | 182 |
} |
160 | 183 |
.ui-platform-name { |
... | ... | |
173 | 196 |
} |
174 | 197 |
.ui-logout { |
175 | 198 |
padding-left: 0; |
176 |
a {
|
|
199 |
button {
|
|
177 | 200 |
margin-left: 0; |
178 | 201 |
} |
179 | 202 |
} |
gadjo/templates/gadjo/root.html | ||
---|---|---|
32 | 32 |
{% if user.is_authenticated %} |
33 | 33 |
<li class="ui-avatar">{{ user.get_full_name|slice:":1" }}</li> |
34 | 34 |
<li class="ui-name">{% block user-name %}{{ user.get_full_name }}{% endblock %}</li> |
35 |
<li class="ui-logout"><a href="{% block logout-url %}index.html{% endblock %}" |
|
36 |
title="{% trans "Logout" %}"></a></li> |
|
35 |
<li class="ui-logout"> |
|
36 |
<form action="{% block logout-url %}{% endblock %}" method="post"> |
|
37 |
{% csrf_token %} |
|
38 |
<button title="{% trans "Logout" %}"><span class="sr-only">{% trans "Logout" %}</span></button> |
|
39 |
</form> |
|
40 |
</li> |
|
37 | 41 |
{% endif %} |
38 | 42 |
{% block help-link %} |
39 | 43 |
{% endblock %} |
40 |
- |