Commit 9c2bf35e authored by Virgílio N Santos's avatar Virgílio N Santos
Browse files

social plugins: add close url and template

parent bb1dcdf6
{% 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 %}
from django.views.generic.base import TemplateView
from rest_framework.routers import SimpleRouter from rest_framework.routers import SimpleRouter
from django.conf.urls import url from django.conf.urls import url
...@@ -13,6 +14,7 @@ urlpatterns = [ ...@@ -13,6 +14,7 @@ urlpatterns = [
view=views.get_api_key, view=views.get_api_key,
name='api-key' name='api-key'
), ),
url(r'^close/$', TemplateView.as_view(template_name='users/close.html')),
] ]
urlpatterns.extend(router.urls) urlpatterns.extend(router.urls)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment