|
|
@ -195,7 +195,13 @@ def printdeck(deck,fold=True):
|
|
|
|
deckstring += " </tr>\n"
|
|
|
|
deckstring += " </tr>\n"
|
|
|
|
test += 1
|
|
|
|
test += 1
|
|
|
|
if deckmastered(deck):
|
|
|
|
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"
|
|
|
|
deckstring += "</tbody>\n</table>\n"
|
|
|
|
if fold:
|
|
|
|
if fold:
|
|
|
|
deckstring += "</details>\n"
|
|
|
|
deckstring += "</details>\n"
|
|
|
@ -204,7 +210,7 @@ def printdeck(deck,fold=True):
|
|
|
|
def filterwrite(page,colour=False,sigs=False):
|
|
|
|
def filterwrite(page,colour=False,sigs=False):
|
|
|
|
filterstring = "<p class=\"typefilter\">"
|
|
|
|
filterstring = "<p class=\"typefilter\">"
|
|
|
|
if colour:
|
|
|
|
if colour:
|
|
|
|
filterstring += "Filtered to <b>"
|
|
|
|
filterstring += "Filtered to <span class=\"" + colour + "\"><b>"
|
|
|
|
if colour == "gray":
|
|
|
|
if colour == "gray":
|
|
|
|
if variables.british:
|
|
|
|
if variables.british:
|
|
|
|
filterstring += "grey"
|
|
|
|
filterstring += "grey"
|
|
|
@ -212,7 +218,7 @@ def filterwrite(page,colour=False,sigs=False):
|
|
|
|
filterstring += "gray"
|
|
|
|
filterstring += "gray"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
filterstring += colour
|
|
|
|
filterstring += colour
|
|
|
|
filterstring += "</b>. <a href=\"/" + page + "\">Show all</a>"
|
|
|
|
filterstring += "</b></span>. <a href=\"/" + page + "\">Show all</a>"
|
|
|
|
else:
|
|
|
|
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=\""
|
|
|
|
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:
|
|
|
|
if variables.british:
|
|
|
|