From 346cfa3f5f2ea121c6a9fe39041bdb469c5c4f6d Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 5 Dec 2025 22:47:52 +0000 Subject: [PATCH] remove unused card templates and related files --- cards/templates/cards/_card_item.html | 3 - cards/templates/cards/_card_preview.html | 4 - templates/cards/_card_item.html | 70 -------- templates/cards/_cards_list.html | 10 -- templates/cards/_form.html | 193 ----------------------- templates/cards/base.html | 147 ----------------- templates/cards/bulk_edit.html | 134 ---------------- templates/cards/list.html | 24 --- 8 files changed, 585 deletions(-) delete mode 100644 templates/cards/_card_item.html delete mode 100644 templates/cards/_cards_list.html delete mode 100644 templates/cards/_form.html delete mode 100644 templates/cards/base.html delete mode 100644 templates/cards/bulk_edit.html delete mode 100644 templates/cards/list.html diff --git a/cards/templates/cards/_card_item.html b/cards/templates/cards/_card_item.html index a369592..03b7494 100644 --- a/cards/templates/cards/_card_item.html +++ b/cards/templates/cards/_card_item.html @@ -31,7 +31,6 @@
Speed (km/h)
-
{{ card.speed_display }}
@@ -42,7 +41,6 @@
Weight (kg)
-
{{ card.weight_display }}
@@ -53,7 +51,6 @@
Intelligence (score)
-
{% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} diff --git a/cards/templates/cards/_card_preview.html b/cards/templates/cards/_card_preview.html index 82ece5e..5ce2ccc 100644 --- a/cards/templates/cards/_card_preview.html +++ b/cards/templates/cards/_card_preview.html @@ -31,7 +31,6 @@
Speed (km/h)
-
{{ card.speed_display }}
{% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.speed_orig }})
@@ -39,7 +38,6 @@
Weight (kg)
-
{{ card.weight_display }}
{% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.weight_orig }})
@@ -47,7 +45,6 @@
Intelligence (score)
-
{% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %}
(orig: {{ card.intelligence_orig }})
@@ -55,7 +52,6 @@
Height (m)
-
{{ card.height_display }}
{% for t in card.height_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} (orig: {{ card.height_orig }})
diff --git a/templates/cards/_card_item.html b/templates/cards/_card_item.html deleted file mode 100644 index 5cb9ff8..0000000 --- a/templates/cards/_card_item.html +++ /dev/null @@ -1,70 +0,0 @@ -
-
-
- {% if card.image %} - {{ card.name }} - {% endif %} -
-
{{ card.name }}
-
-
Era: {{ card.get_era_display }} — Diet: {{ card.get_diet_display }}
- {% if card.facts_list %} -
    - {% for fact in card.facts_list|slice:":2" %} -
  • {{ fact }}
  • - {% endfor %} -
- {% endif %} -
-
-
Speed (km/h)
-
-
-
{{ card.speed_display }}
-
- {% for t in card.speed_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} - (orig: {{ card.speed_orig }}) -
-
-
-
-
Weight (kg)
-
-
-
{{ card.weight_display }}
-
- {% for t in card.weight_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} - (orig: {{ card.weight_orig }}) -
-
-
-
-
Height (m)
-
-
-
{{ card.height_display }}
-
- {% for t in card.height_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} - (orig: {{ card.height_orig }}) -
-
-
-
-
Intelligence (score)
-
-
-
- {% for t in card.intelligence_star_types %}{% if t == 'full' %}★{% else %}☆{% endif %}{% endfor %} -
-
(orig: {{ card.intelligence_orig }})
-
-
-
-
- - - -
-
-
-
diff --git a/templates/cards/_cards_list.html b/templates/cards/_cards_list.html deleted file mode 100644 index b2d249a..0000000 --- a/templates/cards/_cards_list.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load static %} -
- {% for card in cards %} -
- {% include 'cards/_card_item.html' with card=card background=background %} -
- {% empty %} -
No dinosaurs yet — add one!
- {% endfor %} -
diff --git a/templates/cards/_form.html b/templates/cards/_form.html deleted file mode 100644 index 050cd9f..0000000 --- a/templates/cards/_form.html +++ /dev/null @@ -1,193 +0,0 @@ -
- {% if card %} -
- {% else %} - - {% endif %} - {% csrf_token %} - {{ form.non_field_errors }} -
- -
- {{ form.name }} -
-
- -
-
-
- -
-
{{ form.era }}
-
-
-
- -
-
{{ form.diet }}
-
-
-
-
- -
- -
- {{ form.description }} -
-
- -
- -
- {{ form.facts }} -

One fact per line — will be shown as bullet points on the card.

-
-
- -
- -
-
- -
-
-
-
- -
-
{{ form.background }}
-
-
-
Use site default
- {% for bg in backgrounds %} -
- {{ bg.title }} -
- {% endfor %} -
-

Optional: choose a background image to use for this card.

-
-
-
- - - -
-
-
- -
-
-
{{ form.speed }}
-
- km/h -
-
-
-
-
- -
-
-
{{ form.weight }}
-
- kg -
-
-
-
-
- -
-
-
{{ form.intelligence }}
-
- score -
-
-
-
-
- -
-
-
{{ form.height }}
-
- m -
-
-
-
-
-
- -
-
- -
-
- -
-
-
-
diff --git a/templates/cards/base.html b/templates/cards/base.html deleted file mode 100644 index 6ca5306..0000000 --- a/templates/cards/base.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - TopTrumps - Dinosaurs - - - - - - - -
-
-
-
-

TopTrumps — Dinosaurs

-
-
-
- -
-
-
-
- {% block content %}{% endblock %} - -
-
- - - - diff --git a/templates/cards/bulk_edit.html b/templates/cards/bulk_edit.html deleted file mode 100644 index a8a3a9d..0000000 --- a/templates/cards/bulk_edit.html +++ /dev/null @@ -1,134 +0,0 @@ -{% extends "cards/base.html" %} - -{% block content %} -
-

Cards overview — bulk edit

-

Edit multiple cards inline and save changes in one go.

- - - -
-
- {% csrf_token %} -
- -
- -
-
- -
- {% csrf_token %} -
- - - - - - - - - - - - - - - {% if formset %} - {{ formset.management_form }} - {% for form in formset.forms %} - {{ form.id }} - - - - - - - - - - - {% endfor %} - {% else %} - {% for card in cards %} - - - - - - - - - - - {% endfor %} - {% endif %} - -
PreviewNameBackgroundSpeedWeightHeightIntel
- {% if form.instance.image %} - {{ form.instance.name }} - {% else %} -
- {% endif %} -
{{ form.name }}{{ form.background }}{{ form.speed }}{{ form.weight }}{{ form.height }}{{ form.intelligence }}ID: {{ form.instance.pk }}
- {% if card.image %} - {{ card.name }} - {% else %} -
- {% endif %} -
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
ID: {{ card.pk }}
-
- -
-
- - Back to list -
-
-
-
-{% endblock %} diff --git a/templates/cards/list.html b/templates/cards/list.html deleted file mode 100644 index 22eb8c9..0000000 --- a/templates/cards/list.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'cards/base.html' %} - -{% block content %} -
-
-
- -
- -
- Bulk edit -
-
-
- -
- -
- {% include 'cards/_cards_list.html' %} -
- -{% endblock %}