fix issues with 'lots of decks' msg

https://anki.tenderapp.com/discussions/beta-testing/460-anki-210-alpha-13#comment_42641183
This commit is contained in:
Damien Elmes 2017-05-28 11:13:16 +10:00
parent 7f7b8fc52f
commit 476aedbd6b

View File

@ -173,11 +173,11 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
return "" return ""
return "<br><div style='width:50%;border: 1px solid #000;padding:5px;'>"+( return "<br><div style='width:50%;border: 1px solid #000;padding:5px;'>"+(
_("You have a lot of decks. Please see %(a)s. %(b)s") % dict( _("You have a lot of decks. Please see %(a)s. %(b)s") % dict(
a=("<a href=# onclick='pycmd('lots')>%s</a>" % _( a=("<a href=# onclick=\"pycmd('lots')\">%s</a>" % _(
"this page")), "this page")),
b=("<br><small><a href=# onclick='pycmd(\"hidelots\")'>(" b=("<br><small><a href=# onclick='pycmd(\"hidelots\")'>("
"%s)</a></small>" % (_("hide"))+ "%s)</a></small>" % (_("hide"))+
"</div"))) "</div>")))
def _renderDeckTree(self, nodes, depth=0): def _renderDeckTree(self, nodes, depth=0):
if not nodes: if not nodes: