Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
9c2bf35e
Commit
9c2bf35e
authored
Apr 02, 2018
by
Virgílio N Santos
Browse files
social plugins: add close url and template
parent
bb1dcdf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
base_django_project/templates/users/close.html
base_django_project/templates/users/close.html
+14
-0
base_django_project/users/urls.py
base_django_project/users/urls.py
+2
-0
No files found.
base_django_project/templates/users/close.html
0 → 100644
View file @
9c2bf35e
{% extends "base.html" %}
{% block header %}{% endblock header %}
{% block content %}
<script>
(
function
()
{
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
()
{
window
.
close
();
});
}());
</script>
<p>
Feche esta janela para continuar...
</p>
{% endblock content %}
base_django_project/users/urls.py
View file @
9c2bf35e
from
django.views.generic.base
import
TemplateView
from
rest_framework.routers
import
SimpleRouter
from
django.conf.urls
import
url
...
...
@@ -13,6 +14,7 @@ urlpatterns = [
view
=
views
.
get_api_key
,
name
=
'api-key'
),
url
(
r
'^close/$'
,
TemplateView
.
as_view
(
template_name
=
'users/close.html'
)),
]
urlpatterns
.
extend
(
router
.
urls
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment