parent
a8a9d9ddfa
commit
69a4bf1c16
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
||||
{% extends "templates/lilcity/index.html" %} |
||||
{% load static %} |
||||
{% block content %} |
||||
<script> |
||||
{% if request.user.is_authenticated %} |
||||
{% autoescape off %} |
||||
window.USER = {{ request.user.serialized }} |
||||
{% endautoescape %} |
||||
{% if request.user.auth_token %} |
||||
AUTH_TOKEN = "{{ request.user.auth_token }}" |
||||
{% else %} |
||||
AUTH_TOKEN = null |
||||
{% endif %} |
||||
{% else %} |
||||
windows.USER = null |
||||
{% endif %} |
||||
</script> |
||||
<div class="section section_border"> |
||||
<div class="section__center center center_sm"> |
||||
{{course}} |
||||
{{course.id}} |
||||
</div> |
||||
</div> |
||||
{% endblock content %} |
||||
Loading…
Reference in new issue