Skip to content

Commit

Permalink
Move templates out of tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliix42 committed Sep 12, 2020
1 parent 817b8e7 commit 21f5238
Show file tree
Hide file tree
Showing 48 changed files with 76 additions and 76 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base-shell.html' %}
{% extends 'base-shell.html' %}
{% load i18n %}

{% block header_nav %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
<h1>{% trans "Privacy Policy" %}</h1>

{% include "new_ui_foo/privacy-policy.html" %}
{% include "privacy-policy.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "new_ui_foo/base.html" %}
{% extends "base.html" %}
{% load i18n %}

{% block content %}
Expand Down
18 changes: 9 additions & 9 deletions course/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def course(request: HttpRequest, course_id: str):

return render(
request,
'new_ui_foo/course/info.html',
'course/info.html',
context
)
except Course.DoesNotExist:
Expand All @@ -80,7 +80,7 @@ def participants_list(request, course_id):

return render(
request,
'new_ui_foo/course/attendees.html',
'course/attendees.html',
{'course': current_course}
)
except Course.DoesNotExist:
Expand Down Expand Up @@ -117,7 +117,7 @@ def edit_course(request: HttpRequest, course_id: str):
form = CourseForm(instance=current_course,initial={'schedule_type':current_schedule.get_type()})
return render(
request,
'new_ui_foo/course/edit.html',
'course/edit.html',
{
'title': _('Edit course'),
'form': form,
Expand Down Expand Up @@ -191,7 +191,7 @@ def create(request):

return render(
request,
'new_ui_foo/course/edit.html',
'course/edit.html',
{
'title': _('New Course'),
'form': form,
Expand Down Expand Up @@ -257,7 +257,7 @@ def add_teacher(request, course_id):

return render(
request,
'new_ui_foo/course/teachers.html',
'course/teachers.html',
context
)

Expand Down Expand Up @@ -319,7 +319,7 @@ def notify(request: HttpRequest, course_id):

return render(
request,
'new_ui_foo/course/notify.html',
'course/notify.html',
{
'title': _('Notify Course'),
'form': form,
Expand All @@ -331,7 +331,7 @@ def notify(request: HttpRequest, course_id):
def notify_done(request, course_id):
return render(
request,
'new_ui_foo/course/notify-done.html',
'course/notify-done.html',
{
'course_id': course_id
}
Expand Down Expand Up @@ -367,7 +367,7 @@ def attendee_list(request, course_id):

return render(
request,
'new_ui_foo/course/attendee-list.html',
'course/attendee-list.html',
{
'attendees': course.participants.all(),
'slots': range(slots)
Expand Down Expand Up @@ -397,7 +397,7 @@ def contact_teachers(request, course_id):

return render(
request,
'new_ui_foo/course/contact-teachers.html',
'course/contact-teachers.html',
{
'title': _('Notify Course'),
'form': form,
Expand Down
10 changes: 5 additions & 5 deletions course/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def index(request):
return render(
request,
'new_ui_foo/index.html',
'index.html',
{
'title': _('Welcome'),
'news': news.News.objects.order_by('-id')
Expand All @@ -17,21 +17,21 @@ def index(request):
def privacy_policy(request):
return render(
request,
'new_ui_foo/privacy.html',
'privacy.html',
{
'title': _('Privacy Policy')
}
)


def handler404(request, exception, template_name="new_ui_foo/error/404.html"):
def handler404(request, exception, template_name="error/404.html"):
response = render_to_response(template_name)
response.status_code = 404
return response


def handler500(request): #t, exception, template_name="new_ui_foo/error/500.html"):
template_name = "new_ui_foo/error/500.html"
def handler500(request): #t, exception, template_name="error/500.html"):
template_name = "error/500.html"
response = render_to_response(template_name)
response.status_code = 500
return response
4 changes: 2 additions & 2 deletions course/views/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create(request):

return render(
request,
'new_ui_foo/news/edit.html',
'news/edit.html',
{
'title': _('New News'),
'create': True,
Expand Down Expand Up @@ -67,7 +67,7 @@ def edit(request: HttpRequest, news_id: str):
form = NewsForm(instance=cur_news)
return render(
request,
'new_ui_foo/news/edit.html',
'news/edit.html',
{
'title': _('Edit News'),
'create': False,
Expand Down
8 changes: 4 additions & 4 deletions course/views/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def course_overview(request, subjectname):

return render(
request,
'new_ui_foo/subject/info.html',
'subject/info.html',
{
'title': subjectname,
'subject': active_subject,
Expand All @@ -45,7 +45,7 @@ def course_overview(request, subjectname):
def subject_overview(request):
return render(
request,
'new_ui_foo/subject/overview.html',
'subject/overview.html',
{
'title': _('Subject Overview'),
'visible_subjects': subject.Subject.get_visible(),
Expand Down Expand Up @@ -74,7 +74,7 @@ def create(request):

return render(
request,
'new_ui_foo/subject/edit.html',
'subject/edit.html',
{
'title': _('New Subject'),
'create': True,
Expand Down Expand Up @@ -104,7 +104,7 @@ def edit(request, subjectname):

return render(
request,
'new_ui_foo/subject/edit.html',
'subject/edit.html',
{
'title': subj.name,
'create': False,
Expand Down
2 changes: 1 addition & 1 deletion course/views/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def edit_slot(request: HttpRequest, course_id):

return render(
request,
'new_ui_foo/course/timetable.html',
'course/timetable.html',
{
'title': _('Edit Schedule'),
'form': form,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}
{% block content %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand All @@ -16,7 +16,7 @@ <h3 class="card-header">{% trans 'New privacy policy' %}</h3>

<hr class="mb-3">

{% include 'new_ui_foo/privacy-policy.html' %}
{% include 'privacy-policy.html' %}

<hr class="mt-3 mb-3">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'new_ui_foo/base.html' %}
{% extends 'base.html' %}
{% load i18n %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "new_ui_foo/base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}

Expand Down
Loading

0 comments on commit 21f5238

Please sign in to comment.