From 223cc48052ffb349be11068cf306ec0fb426a30d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 28 Nov 2011 14:45:43 +0900 Subject: [PATCH] don't wrap template in div; reference #card instead We want the background color to fill the card area rather than only the size of the card content, so we need to set the CSS for the outer container instead. --- anki/sched.py | 2 +- anki/upgrade.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/anki/sched.py b/anki/sched.py index fdd438e18..cac2fa029 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -686,7 +686,7 @@ did in %s and queue = 2 and due <= :lim %s limit %d""" % ( def finishedMsg(self): return (""+_( - "Congratulations! You have finished the selected deck for now.")+ + "Congratulations! You have finished for now.")+ "

" + self._nextDueMsg()) def _nextDueMsg(self): diff --git a/anki/upgrade.py b/anki/upgrade.py index adf446aa4..c574f17f2 100644 --- a/anki/upgrade.py +++ b/anki/upgrade.py @@ -449,9 +449,13 @@ order by ordinal""", mid)): else: bg = t['bg'] t[k] = '''\ -
\n\n%s\n\n
''' % ( - ("center", "left", "right")[t['align']], - bg, t[k]) +\n\n%s''' % (("center", "left", "right")[t['align']], + bg, t[k]) # remove obsolete del t['bg'] del t['align']