Commit 67a7adc7 authored by Marius DAVID's avatar Marius DAVID
Browse files

Add a banner for 2025

parent 54e7446a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,9 +17,13 @@ def process_edition(year, community):
		if known_year == year:
			index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "<!--")
			index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "-->")
			index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "")
			index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "")
		else:
			index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "")
			index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "")
			index = index.replace("{NOT" + known_year + "ONLYCOMMENTSTART}", "<!--")
			index = index.replace("{NOT" + known_year + "ONLYCOMMENTEND}", "-->")

	with open(os.path.join(sys.argv[2], "index.html"), "w") as f:
		f.write(index)
+7 −0
Original line number Diff line number Diff line
@@ -56,6 +56,13 @@
						<a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a>
					</div>
				</aside>{2025ONLYCOMMENTEND}
				{NOT2025ONLYCOMMENTSTART}<aside class="container-fluid alert-primary collapse" id="headerNotice">
					<div class="d-flex w-100 py-2 align-items-center">
						<i class="bi bi-info-circle-fill fs-5"></i>
						<p class="mb-0 flex-grow-1 px-2">The 2025 atlas is now ready for placing, this year with the ability to view the canvas at different time.</p>
						<a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a>
					</div>
				</aside>{NOT2025ONLYCOMMENTEND}
				<nav id="main-navbar" class="navbar navbar-expand-lg bg-body border-bottom">
					<div class="container-fluid">
						<a class="navbar-brand text-body d-flex align-items-center" href="./">