|
|
|
@ -195,7 +195,13 @@ def printdeck(deck,fold=True):
|
|
|
|
|
deckstring += " </tr>\n"
|
|
|
|
|
test += 1
|
|
|
|
|
if deckmastered(deck):
|
|
|
|
|
deckstring += " <tr>\n <td colspan=\"5\" align=\"center\"><img src=\"/decks/" + deck + "/master.gif\" title=\"mastered " + deck + "\"><td>\n</tr>\n"
|
|
|
|
|
deckstring += " <tr>\n <td colspan=\"5\" align=\"center\"><img src=\"/decks/" + deck + "/master.gif\" title=\"mastered " + deck
|
|
|
|
|
try:
|
|
|
|
|
if deck in variables.firstmasteries:
|
|
|
|
|
deckstring += " (first)\" class=\"first"
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
deckstring += "\"><td>\n</tr>\n"
|
|
|
|
|
deckstring += "</tbody>\n</table>\n"
|
|
|
|
|
if fold:
|
|
|
|
|
deckstring += "</details>\n"
|
|
|
|
@ -204,7 +210,7 @@ def printdeck(deck,fold=True):
|
|
|
|
|
def filterwrite(page,colour=False,sigs=False):
|
|
|
|
|
filterstring = "<p class=\"typefilter\">"
|
|
|
|
|
if colour:
|
|
|
|
|
filterstring += "Filtered to <b>"
|
|
|
|
|
filterstring += "Filtered to <span class=\"" + colour + "\"><b>"
|
|
|
|
|
if colour == "gray":
|
|
|
|
|
if variables.british:
|
|
|
|
|
filterstring += "grey"
|
|
|
|
@ -212,7 +218,7 @@ def filterwrite(page,colour=False,sigs=False):
|
|
|
|
|
filterstring += "gray"
|
|
|
|
|
else:
|
|
|
|
|
filterstring += colour
|
|
|
|
|
filterstring += "</b>. <a href=\"/" + page + "\">Show all</a>"
|
|
|
|
|
filterstring += "</b></span>. <a href=\"/" + page + "\">Show all</a>"
|
|
|
|
|
else:
|
|
|
|
|
filterstring += "Filter: <a href=\"/" + page + "/red\" title=\"red\">🔴</a> <a href=\"/" + page + "/orange\" title=\"orange\">🟠</a> <a href=\"/" + page + "/yellow\" title=\"yellow\">🟡</a> <a href=\"/" + page + "/green\" title=\"green\">🟢</a> <a href=\"/" + page + "/blue\" title=\"blue\">🔵</a> <a href=\"/" + page + "/purple\" title=\"purple\">🟣</a> <a href=\"/" + page + "/brown\" title=\"brown\">🟤</a> <a href=\"/" + page + "/gray\" title=\""
|
|
|
|
|
if variables.british:
|
|
|
|
|