Fix course edit title

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 563d560e83
commit 6d2c0cd3cd
  1. 4
      apps/course/templates/course/course_edit.html
  2. 1
      apps/course/views.py

@ -2,9 +2,9 @@
{% load static %}
{% block title %}
{% if object %}
Редактирование {% if not live %}курса{% else %}стрима{% endif %} {{ object.title }}
Редактирование {% if live %}стрима{% else %}курса{% endif %} {{ object.title }}
{% else %}
Создание {% if not live %}курса{% else %}стрима{% endif %}
Создание {% if live %}стрима{% else %}курса{% endif %}
{% endif %}
{% endblock title%}
{% block content %}

@ -173,7 +173,6 @@ class CourseEditView(TemplateView):
def get_context_data(self):
context = super().get_context_data()
context['live'] = 'false'
context['object'] = self.object
return context

Loading…
Cancel
Save