From cac5475f75a4215fa84672bedc42cfef6093b5c0 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sat, 18 Jan 2020 17:55:31 +0100
Subject: [PATCH] Refactor template filenames

---
 .../templates/chronos/{quicklaunch.html => all.html}      | 0
 .../templates/chronos/{hintform.html => hint_form.html}   | 0
 .../templates/chronos/{myplan.html => my_timetable.html}  | 0
 .../hints/{hintsinsub.html => substitutions.html}         | 0
 .../{hintsinsubprint.html => substitutions_print.html}    | 0
 .../partials/hints/{hintsinplan.html => timetable.html}   | 0
 .../chronos/{substitution.html => substitutions.html}     | 0
 .../{substitutionprint.html => substitutions_print.html}  | 0
 .../templates/chronos/{plan.html => timetable.html}       | 0
 aleksis/apps/chronos/views.py                             | 8 ++++----
 10 files changed, 4 insertions(+), 4 deletions(-)
 rename aleksis/apps/chronos/templates/chronos/{quicklaunch.html => all.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/{hintform.html => hint_form.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/{myplan.html => my_timetable.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/partials/hints/{hintsinsub.html => substitutions.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/partials/hints/{hintsinsubprint.html => substitutions_print.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/partials/hints/{hintsinplan.html => timetable.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/{substitution.html => substitutions.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/{substitutionprint.html => substitutions_print.html} (100%)
 rename aleksis/apps/chronos/templates/chronos/{plan.html => timetable.html} (100%)

diff --git a/aleksis/apps/chronos/templates/chronos/quicklaunch.html b/aleksis/apps/chronos/templates/chronos/all.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/quicklaunch.html
rename to aleksis/apps/chronos/templates/chronos/all.html
diff --git a/aleksis/apps/chronos/templates/chronos/hintform.html b/aleksis/apps/chronos/templates/chronos/hint_form.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/hintform.html
rename to aleksis/apps/chronos/templates/chronos/hint_form.html
diff --git a/aleksis/apps/chronos/templates/chronos/myplan.html b/aleksis/apps/chronos/templates/chronos/my_timetable.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/myplan.html
rename to aleksis/apps/chronos/templates/chronos/my_timetable.html
diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/hintsinsub.html b/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/partials/hints/hintsinsub.html
rename to aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html
diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/hintsinsubprint.html b/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/partials/hints/hintsinsubprint.html
rename to aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html
diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/hintsinplan.html b/aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/partials/hints/hintsinplan.html
rename to aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html
diff --git a/aleksis/apps/chronos/templates/chronos/substitution.html b/aleksis/apps/chronos/templates/chronos/substitutions.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/substitution.html
rename to aleksis/apps/chronos/templates/chronos/substitutions.html
diff --git a/aleksis/apps/chronos/templates/chronos/substitutionprint.html b/aleksis/apps/chronos/templates/chronos/substitutions_print.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/substitutionprint.html
rename to aleksis/apps/chronos/templates/chronos/substitutions_print.html
diff --git a/aleksis/apps/chronos/templates/chronos/plan.html b/aleksis/apps/chronos/templates/chronos/timetable.html
similarity index 100%
rename from aleksis/apps/chronos/templates/chronos/plan.html
rename to aleksis/apps/chronos/templates/chronos/timetable.html
diff --git a/aleksis/apps/chronos/views.py b/aleksis/apps/chronos/views.py
index bdb68d00..da2181ae 100644
--- a/aleksis/apps/chronos/views.py
+++ b/aleksis/apps/chronos/views.py
@@ -74,7 +74,7 @@ def all(request: HttpRequest) -> HttpResponse:
     context['classes'] = classes
     context['rooms'] = rooms
 
-    return render(request, 'chronos/quicklaunch.html', context)
+    return render(request, 'chronos/all.html', context)
 
 
 @login_required
@@ -89,7 +89,7 @@ def my_timetable(
     else:
         wanted_day = get_next_relevant_day(timezone.now().date(), datetime.now().time())
 
-    return render(request, "chronos/myplan.html", context)
+    return render(request, "chronos/my_timetable.html", context)
 
 
 @login_required
@@ -179,7 +179,7 @@ def timetable(
     context["url_prev"] = reverse("timetable_by_week", args=[type_, pk, week_prev.year, week_prev.week])
     context["url_next"] = reverse("timetable_by_week", args=[type_, pk, week_next.year, week_next.week])
 
-    return render(request, "chronos/plan.html", context)
+    return render(request, "chronos/timetable.html", context)
 
 
 @login_required
@@ -294,4 +294,4 @@ def substitutions(
         reverse("substitutions_by_day", args=[day_next.year, day_next.month, day_next.day])
     )
 
-    return render(request, "chronos/substitution.html", context)
+    return render(request, "chronos/substitutions.html", context)
-- 
GitLab