cards 48–49 polarity-split titles; sea-stage mobile breakpoints; @comment fix — TDD
- migration 0015 fills card 49 levity_reversal=The Vibrational Mould of Man, gravity_reversal=The All-Bestowing Eagle (card 48 already seeded in 0004)
- _tarot_fan.html: 4 new data-* attrs (data-levity-emanation / data-gravity-emanation / data-levity-reversal / data-gravity-reversal); upright + reversal slots render full polarity-split title in name slot when set, qualifier slots blank
- StageCard.fromDataset: parse the 4 new attrs; populateCard: emanationOverride / reversalOverride per polarity bypasses the standard name+qualifier rendering
- model: emanation_for / reversal_for fall back to name_title (group prefix stripped) instead of full self.name; reversal_for uses self.reversal_qualifier (was leftover self.reversal post-rename)
- sea-stage-content: --sig-card-w lifted from inline style to SCSS w. portrait ≤480px / landscape ≤500h breakpoints both stepping to 130px (mirrors fan modal triggers); default 180px
- _tarot_fan.html: rewrite multi-line {# #} that rendered as page text into {% comment %}{% endcomment %}
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -291,21 +291,22 @@ class TarotCard(models.Model):
|
||||
|
||||
def emanation_for(self, polarity):
|
||||
"""Return the upright title for a given polarity ('levity' or 'gravity').
|
||||
Falls back to name for cards without a polarity split."""
|
||||
Falls back to name_title (group prefix stripped) for cards without a
|
||||
polarity split."""
|
||||
if polarity == 'levity' and self.levity_emanation:
|
||||
return self.levity_emanation
|
||||
if polarity == 'gravity' and self.gravity_emanation:
|
||||
return self.gravity_emanation
|
||||
return self.name
|
||||
return self.name_title
|
||||
|
||||
def reversal_for(self, polarity):
|
||||
"""Return the reversed title for a given polarity.
|
||||
Falls back to reversal (blank = same as emanation_for)."""
|
||||
Falls back to reversal_qualifier (blank = same as emanation_for)."""
|
||||
if polarity == 'levity' and self.levity_reversal:
|
||||
return self.levity_reversal
|
||||
if polarity == 'gravity' and self.gravity_reversal:
|
||||
return self.gravity_reversal
|
||||
return self.reversal or self.emanation_for(polarity)
|
||||
return self.reversal_qualifier or self.emanation_for(polarity)
|
||||
|
||||
@property
|
||||
def name_group(self):
|
||||
|
||||
Reference in New Issue
Block a user