From 0437eab92af7b2556f748a29021e9edd1805794a Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 1 Feb 2026 19:18:04 -0600 Subject: [PATCH] Add missing card templates for PostgreSQL deployment - Recovered player_card.html and related templates from old server - Required for card generation endpoints (/players/{id}/battingcard) - Fixes TemplateNotFound errors in production --- storage/templates/player_card.html | 65 +++++++++++++++ storage/templates/result_columns.html | 37 +++++++++ storage/templates/results_vl.html | 15 ++++ storage/templates/results_vr.html | 11 +++ storage/templates/style.html | 103 ++++++++++++++++++++++++ storage/templates/topright_batter.html | 7 ++ storage/templates/topright_pitcher.html | 9 +++ 7 files changed, 247 insertions(+) create mode 100644 storage/templates/player_card.html create mode 100644 storage/templates/result_columns.html create mode 100644 storage/templates/results_vl.html create mode 100644 storage/templates/results_vr.html create mode 100644 storage/templates/style.html create mode 100644 storage/templates/topright_batter.html create mode 100644 storage/templates/topright_pitcher.html diff --git a/storage/templates/player_card.html b/storage/templates/player_card.html new file mode 100644 index 0000000..83750ed --- /dev/null +++ b/storage/templates/player_card.html @@ -0,0 +1,65 @@ + + + + {% include 'style.html' %} + + + + + +
+ +
+
+
+
+ {{ 1 if card_type == 'batter' else 4 }} +
+
+ {{ 2 if card_type == 'batter' else 5 }} +
+
+ {{ 3 if card_type == 'batter' else 6 }} +
+
+
+
+ {{ 1 if card_type == 'batter' else 4 }} +
+
+ {{ 2 if card_type == 'batter' else 5 }} +
+
+ {{ 3 if card_type == 'batter' else 6 }} +
+
+
+
+ {% include 'result_columns.html' %} +
+
+
+ + \ No newline at end of file diff --git a/storage/templates/result_columns.html b/storage/templates/result_columns.html new file mode 100644 index 0000000..ca552dc --- /dev/null +++ b/storage/templates/result_columns.html @@ -0,0 +1,37 @@ +
+
+
+
{{ vl_one_2d6|safe }}
+
{{ vl_one_results|safe }}
+
{{ vl_one_d20|safe }}
+
+
+
{{ vl_two_2d6|safe }}
+
{{ vl_two_results|safe }}
+
{{ vl_two_d20|safe }}
+
+
+
{{ vl_three_2d6|safe }}
+
{{ vl_three_results|safe }}
+
{{ vl_three_d20|safe }}
+
+
+ +
+
+
{{ vr_one_2d6|safe }}
+
{{ vr_one_results|safe }}
+
{{ vr_one_d20|safe }}
+
+
+
{{ vr_two_2d6|safe }}
+
{{ vr_two_results|safe }}
+
{{ vr_two_d20|safe }}
+
+
+
{{ vr_three_2d6|safe }}
+
{{ vr_three_results|safe }}
+
{{ vr_three_d20|safe }}
+
+
+
\ No newline at end of file diff --git a/storage/templates/results_vl.html b/storage/templates/results_vl.html new file mode 100644 index 0000000..55656d8 --- /dev/null +++ b/storage/templates/results_vl.html @@ -0,0 +1,15 @@ +
+
+
1-
+
{{ results_vl_one }}
+
1-20
+
+
+
1-
+
{{ results_vl_two }}
+
1-20
+
+
+ {{ results_vl_three }} +
+
\ No newline at end of file diff --git a/storage/templates/results_vr.html b/storage/templates/results_vr.html new file mode 100644 index 0000000..f57f172 --- /dev/null +++ b/storage/templates/results_vr.html @@ -0,0 +1,11 @@ +
+
+ {{ results_vr_one }} +
+
+ {{ results_vr_two }} +
+
+ {{ results_vr_three }} +
+
\ No newline at end of file diff --git a/storage/templates/style.html b/storage/templates/style.html new file mode 100644 index 0000000..6ca98a2 --- /dev/null +++ b/storage/templates/style.html @@ -0,0 +1,103 @@ + \ No newline at end of file diff --git a/storage/templates/topright_batter.html b/storage/templates/topright_batter.html new file mode 100644 index 0000000..bb90e46 --- /dev/null +++ b/storage/templates/topright_batter.html @@ -0,0 +1,7 @@ +
+
stealing {{ stealing_string }}
+
running {{ bat_card.running }}
+
bunting {{ bat_card.bunting }}
+
hit & run {{ bat_card.hit_and_run }}
+
{{ cardset_name }}
+
\ No newline at end of file diff --git a/storage/templates/topright_pitcher.html b/storage/templates/topright_pitcher.html new file mode 100644 index 0000000..a05a021 --- /dev/null +++ b/storage/templates/topright_pitcher.html @@ -0,0 +1,9 @@ +
+
bat {{ pit_card.batting[1:] if pit_card.batting.startswith('#') else pit_card.batting }}
+
hold {% if pit_card.hold >= 0 %}+{% endif %}{{ pit_card.hold }}
+
starter({{ pit_card.starter_rating }})
+
{{ cardset_name }}
+
wp {{ pit_card.wild_pitch }}
+
bk {{ pit_card.balk }}
+
relief({{ pit_card.relief_rating }})/{{ pit_card.closer_rating if pit_card.closer_rating is not none else 'N' }}
+
\ No newline at end of file