From f5aaaf03e86917ff68f12b24d582937f97daa473 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Tue, 17 Mar 2020 15:39:00 +0100 Subject: [PATCH] Remove old templates for hints (replaced by announcements) --- .../chronos/partials/hints/substitutions.html | 27 -------- .../partials/hints/substitutions_print.html | 16 ----- .../chronos/partials/hints/timetable.html | 63 ------------------- 3 files changed, 106 deletions(-) delete mode 100644 aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html delete mode 100644 aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html delete mode 100644 aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html b/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html deleted file mode 100644 index 037925c8..00000000 --- a/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load martortags %} -{% if hints %} - <ul class="collapsible"> - <li> - <div class="collapsible-header " style="font-size: 16px;"> - <div class="col s12"> - <i class="material-icons left">announcement</i>Es gibt {{ hints|length }} - Hinweis{{ hints|pluralize:"e" }} für diesen Tag. - <i class="material-icons right collapsible-trigger"></i> - </div> - </div> - <div class="collapsible-body"> - {% for hint in hints %} - <div> - <strong> - {{ hint.classes_formatted }}{% if hint.teachers and hint.classes.all %},{% endif %} - </strong> - {% if hint.teachers %} - <span class="badge new green no-float no-margin">Lehrkräfte</span> - {% endif %}: - {{ hint.text|safe_markdown }} - </div> - {% endfor %} - </div> - </li> - </ul> -{% endif %} diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html b/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html deleted file mode 100644 index d39760fa..00000000 --- a/aleksis/apps/chronos/templates/chronos/partials/hints/substitutions_print.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load martortags %} -{% if c.hints %} - {% for hint in c.hints %} - <div class="alert primary"> - <div> - <strong> - {{ hint.classes_formatted }}{% if hint.teachers and hint.classes.all %}, Lehrkräfte{% endif %}: - </strong> - - <i class="material-icons left">announcement</i> - - {{ hint.text|safe_markdown }} - </div> - </div> - {% endfor %} -{% endif %} diff --git a/aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html b/aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html deleted file mode 100644 index a8f09d1c..00000000 --- a/aleksis/apps/chronos/templates/chronos/partials/hints/timetable.html +++ /dev/null @@ -1,63 +0,0 @@ -{% load martortags %} -{% if hints %} - {% for hint in hints %} - <div class="alert primary"> - <div> - <em class="right hide-on-small-and-down">Hinweis für {{ hint.from_date|date:"D, d.m." }}, - {% if hint.from_date != hint.to_date %} - bis {{ hint.to_date|date:"D, d.m." }} - {% endif %} </em> - - <i class="material-icons left">announcement</i> - - {{ hint.text|safe_markdown }} - - <em class="hide-on-med-and-up">Hinweis für {{ hint.from_date|date:"D, d.m." }}, - {% if hint.from_date != hint.to_date %} - bis {{ hint.to_date|date:"D, d.m." }} - {% endif %} </em> - </div> - </div> - {% endfor %} -{% endif %} - -{% if hints_b %} - <ul class="collapsible"> - <li> - <div class="collapsible-header " style="font-size: 16px;"> - <div class="col s12"> - <i class="material-icons left">add</i> - Es gibt - {% if hints_b_mode == "week" %} - diese Woche - {% else %} - heute - {% endif %} - {% if hints %} - noch - {% endif %} - {{ hints_b|length }} - {% if hints %} - weitere{{ hints_b|pluralize:"n," }} - {% endif %} - Hinweis{{ hints_b|pluralize:"e" }}. - <i class="material-icons right collapsible-trigger"></i> - </div> - </div> - <div class="collapsible-body"> - {% for hint in hints_b %} - {% if not hint.teachers %} - <div> - <strong> - {{ hint.classes_formatted }}, - </strong> - {{ hint.from_date|date:"D, d.m." }}{% if hint.from_date != hint.to_date %}, bis - {{ hint.to_date|date:"D, d.m." }}{% endif %}: - {{ hint.text|safe_markdown }} - </div> - {% endif %} - {% endfor %} - </div> - </li> - </ul> -{% endif %} -- GitLab