Add meaningless close buttons to filters

This commit is contained in:
mez 2024-06-05 21:05:43 +01:00
parent 72202acc41
commit 6f84d8f4ae
2 changed files with 20 additions and 7 deletions

View file

@ -112,7 +112,7 @@ def sublibrary(local=False):
filewrite.write(variables.localpath + "build/library/all-" + status + "/index.html")
else:
filewrite.write(variables.serverpath + "library/all-" + status)
filewrite.write("\">1 Platform</a></span>\n")
filewrite.write("\">1 Platform<span class=\"filter_clear\">x</span></a></span>\n")
if status != "all":
filewrite.write(" <span class=\"item\"><a href=\"")
if console["shortname"] == "all":
@ -125,7 +125,7 @@ def sublibrary(local=False):
filewrite.write(variables.localpath + "build/library/" + console["shortname"].lower() + "-all/index.html")
else:
filewrite.write(variables.serverpath + "library/" + console["shortname"].lower() + "-all")
filewrite.write("\">1 Status</a></span>\n")
filewrite.write("\">1 Status<span class=\"filter_clear\">x</span></a></span>\n")
filewrite.write(" </div>\n</div> <div class=\"unibar\">\n <div>\n <span>Total Found</span> " + str(gamesort.total(filterlist)) + "\n </div>\n")
if gamesort.unplayed(filterlist) > 0:
filewrite.write(" <div class=\"unplayed\" style=\"flex: " + str(gamesort.unplayed(filterlist)) + " 1 0%;\">" + str(gamesort.unplayed(filterlist)) + "</div>\n")