Archipelago/WebHostLib/templates
Remy Jette 3bff20a3cf
WebHost: Round percentage of checks, fix possible 500 error (#2270)
* WebHost: Round percentage of checks, fix possible 500 error

* Round using str.format in the template

How the percentage of checks done should be displayed is a display
concern, so it makes sense to just always do it in the template. That
way, along with using .format() instead of .round, means we always get
exactly the same presentation regardless of whether it ends in .00
(which would not round to two decimal places), is an int (which
`round(2)` wouldn't touch at all), etc.

* Round percent_total_checks_done in lttp multitracker

* Fix non-LttP games showing as 0% done in LttP MultiTracker
2023-10-31 17:20:07 -04:00
..
header [Webhost] header closing tag moved after mobile menu (#1650) 2023-04-05 19:27:56 -04:00
404.html Add subdirectory handling for zelda3, factorio, and minecraft. Add generic 404 page. 2021-06-14 19:35:02 -04:00
autotablepage.html update jinja templates to use base static files 2021-05-13 00:41:49 +02:00
check.html WebHost: Support multi-select during check/generate file upload (#2138) 2023-09-11 16:57:14 -04:00
checkResult.html WebHost: offer combined yaml file on /check if successful (#2337) 2023-10-22 02:02:30 +02:00
checksfinderTracker.html WebHost: Add a ChecksFinder tracker (#1333) 2023-03-05 14:17:04 +01:00
faq.html Updates to WebHost 2021-08-22 20:01:58 -04:00
gameInfo.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
generate.html WebHost: Support multi-select during check/generate file upload (#2138) 2023-09-11 16:57:14 -04:00
genericTracker.html WebHost: Fix generic tracker Datatables (#1519) 2023-03-09 19:24:38 +01:00
glossary.html docs: add common terms documentation to website (#680) 2022-06-27 23:34:47 -04:00
hintTable.html LttP: free core of checks_in_area (#1798) 2023-07-02 13:00:05 +02:00
hostGame.html WebHost: Fixed some document titles (#1063) 2022-10-06 18:01:07 -04:00
hostRoom.html WebHost: offer room owner log download link 2023-04-28 05:31:19 +02:00
islandFooter.html WebHost: Update copyright year in footer. (#1951) 2023-07-09 13:23:50 -05:00
landing.html WebHost: link to stats from the use statistics directly on landing (#2242) 2023-10-02 20:52:58 -04:00
lttpMultiTracker.html WebHost: Round percentage of checks, fix possible 500 error (#2270) 2023-10-31 17:20:07 -04:00
lttpTracker.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
macros.html WebHost: Fix upload of .archipelago file (#1657) 2023-04-07 00:24:03 +02:00
minecraftTracker.html [Minecraft] AP Tracker (Items & Advancements) Update to 1.19 (#1168) 2022-11-05 06:41:03 -07:00
multiFactorioTracker.html WebHost/Factorio: use "better" jinja practices in web tracker (#2257) 2023-10-08 11:30:34 +02:00
multiTracker.html WebHost: Round percentage of checks, fix possible 500 error (#2270) 2023-10-31 17:20:07 -04:00
multiTrackerNavigation.html Fix broken styling of multitracker navigation (#1644) 2023-04-01 19:56:08 +02:00
ootTracker.html Update small and boss key counters during the normal update cycle 2021-09-24 23:10:26 +00:00
pageWrapper.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
player-options.html WebHost: consistent naming for player options (#2037) 2023-10-24 02:20:08 +02:00
sc2wolTracker.html SC2 WoL - Mod, Item and Location update (#2113) 2023-09-15 02:22:10 +02:00
seedError.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
siteMap.html WebHost: consistent naming for player options (#2037) 2023-10-24 02:20:08 +02:00
startPlaying.html WebHost: Fixed some document titles (#1063) 2022-10-06 18:01:07 -04:00
stats.html Fix chart indent 2022-04-20 14:30:36 -07:00
supermetroidTracker.html [WebHost] Add Super Metroid support to Web Tracker (#153) 2021-12-14 17:04:24 +01:00
supportedGames.html WebHost: consistent naming for player options (#2037) 2023-10-24 02:20:08 +02:00
tablepage.html update jinja templates to use base static files 2021-05-13 00:41:49 +02:00
templates.html [WebHost] Fix /templates page referencing the wrong directory 2022-01-24 19:11:44 -05:00
timespinnerTracker.html Timespinner: many new stuffs (#1433) 2023-02-19 21:22:30 +01:00
tutorial.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
tutorialLanding.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
userContent.html [WebHost] Fix /user-content styles (#408) 2022-04-03 20:16:15 -04:00
viewSeed.html WebHost: fix indentation (#2240) 2023-10-02 20:07:31 +02:00
waitSeed.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
weighted-options.html WebHost: consistent naming for player options (#2037) 2023-10-24 02:20:08 +02:00