File tree 1 file changed +15
-1
lines changed
src/sentry/templates/sentry/bases
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "sentry/layout.html" %}
2
2
3
+ {% load sentry_assets %}
3
4
{% load i18n %}
4
5
5
6
{% block wrapperclass %}{{ block.super }} narrow{% endblock %}
13
14
{% block modal_header_signout %}
14
15
{% if request.user.is_authenticated %}
15
16
< div class ="pull-right ">
16
- < a href ="# " onclick =" document.modalLogoutForm.submit() "> {% trans "Sign out" %}</ a >
17
+ < a href ="# " id =" sign-out "> {% trans "Sign out" %}</ a >
17
18
< form style ="display:none; " name ="modalLogoutForm " action ="{% url 'sentry-logout' %}?next={{ request.get_full_path|urlencode }} " method ="POST ">
18
19
{% csrf_token %}
19
20
</ form >
36
37
</ div >
37
38
</ section >
38
39
{% endblock %}
40
+
41
+ {% block scripts_bottom %}
42
+ {{ block.super }}
43
+ {% script %}
44
+ < script >
45
+ $ ( function ( ) {
46
+ $ ( '#sign-out' ) . on ( 'click' , function ( ) {
47
+ document . modalLogoutForm . submit ( ) ;
48
+ } ) ;
49
+ } ) ;
50
+ </ script >
51
+ {% endscript %}
52
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments