Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-09-14 13:18:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-09-14 13:18:14 +0200
commite9a7c61175caf1e7fca688fe69443b509335a2af (patch)
tree31bf3798fdf650ffd1aa46ff7306897da436ed02 /templates
parentc6b8602075156e9997d0504fc861f11cd60ab613 (diff)
generating first statistics page with M4
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.m431
-rw-r--r--templates/header.m426
-rw-r--r--templates/summary.m417
-rw-r--r--templates/table.m4 (renamed from templates/main.m4)9
4 files changed, 78 insertions, 5 deletions
diff --git a/templates/footer.m4 b/templates/footer.m4
new file mode 100644
index 0000000..b026089
--- /dev/null
+++ b/templates/footer.m4
@@ -0,0 +1,31 @@
+m4_define(`_FOOTER',
+`
+ <div id="footer">
+ <p>
+ Copyright &#169; 2002-2019 <a href="mailto:jvinet@zeroflux.org" title="Contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org" title="Contact Aaron Griffin">Aaron Griffin</a>.
+ Copyright &#169; 2018-2022 <a href="mailto:arch@eckner.net" title="Contact Erich Eckner">Erich Eckner</a>.
+ Copyright &#169; 2024 <a href="mailto:mail@andreasbaumann.cc" title="Contact Andreas Baumann">Andreas Baumann</a>.
+ </p>
+ <p>
+ The Arch Linux&#174; name and logo are recognized <a href="https://wiki.archlinux.org/index.php/DeveloperWiki:TrademarkPolicy" title="Arch Linux Trademark Policy">trademarks</a>. Some rights reserved.
+ </p>
+ <p>
+ The registered trademark Linux&#174;; is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
+ </p>
+ </div>
+ </div>
+ <script type="application/ld+json">
+ {
+ "@context": "http://schema.org",
+ "@type": "WebSite",
+ "url": "/",
+ "potentialAction": {
+ "@type": "SearchAction",
+ "target": "/?q={search_term}",
+ "query-input": "required name=search_term"
+ }
+ }
+ </script>
+ </body>
+</html>
+')
diff --git a/templates/header.m4 b/templates/header.m4
new file mode 100644
index 0000000..45335e1
--- /dev/null
+++ b/templates/header.m4
@@ -0,0 +1,26 @@
+m4_define(`_HEADER',
+`<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <title>Arch Linux 32 - $1</title>
+ <link rel="stylesheet" type="text/css" href="/static/archweb.css" media="screen, projection" />
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico" />
+ <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />
+ </head>
+ <body class="">
+ <div id="archnavbar" class="$2">
+ <div id="archnavbarlogo">
+ <h1><a href="/" title="Return to the main page">Arch Linux</a></h1>
+ </div>
+ <div id="archnavbarmenu">
+ <ul id="archnavbarlist">
+ <li id="anb-home"><a href="https://www.archlinux32.org/">Home</a></li>
+ <li id="anb-stats"><a href="http://euronuc.lan/summary.html">Statistics</a></li>
+ <li id="anb-packages"><a href="https://www.archlinux32.org/packages">Packages</a></li>
+ <li id="anb-arch-linux-official"><a href="https://www.archlinux.org/">Arch Linux Official</a></li>
+ </ul>
+ </div>
+ </div>
+ <div id="content">
+')
diff --git a/templates/summary.m4 b/templates/summary.m4
new file mode 100644
index 0000000..23c3b1c
--- /dev/null
+++ b/templates/summary.m4
@@ -0,0 +1,17 @@
+m4_include(header.m4)
+m4_include(footer.m4)
+
+_HEADER(`Archlinux32 Consistency Checker',`anb-stats')
+
+<h2>Statistics</h2>
+Generated on m4_esyscmd(date)
+<pre>
+m4_esyscmd(cat ../data/stats)
+</pre>
+<h2>Duplicate States in State Repo</h2>
+<pre>
+m4_esyscmd(cat ../data/duplicates)
+</pre>
+
+_FOOTER()
+
diff --git a/templates/main.m4 b/templates/table.m4
index 604a8da..4913ad7 100644
--- a/templates/main.m4
+++ b/templates/table.m4
@@ -6,7 +6,6 @@
<link rel="stylesheet" type="text/css" href="/static/archweb.css" media="screen, projection" />
<link rel="icon" type="image/x-icon" href="/static/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />
- <link rel="stylesheet" type="text/css" href="/static/flags/fam.47411010d402.css" media="screen, projection" />
</head>
<body class="">
<div id="archnavbar" class="anb-packages">
@@ -632,14 +631,14 @@
</div>
<div id="footer">
<p>
- Copyright © 2002-2019 <a href="mailto:jvinet@zeroflux.org" title="Contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org" title="Contact Aaron Griffin">Aaron Griffin</a>.
- Copyright © 2018-2022 <a href="mailto:arch@eckner.net" title="Contact Erich Eckner">Erich Eckner</a>.
+ Copyright &#169; 2002-2019 <a href="mailto:jvinet@zeroflux.org" title="Contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org" title="Contact Aaron Griffin">Aaron Griffin</a>.
+ Copyright &#169; 2018-2024 <a href="mailto:arch@eckner.net" title="Contact Erich Eckner">Erich Eckner</a>.
</p>
<p>
- The Arch Linux name and logo are recognized <a href="https://wiki.archlinux.org/index.php/DeveloperWiki:TrademarkPolicy" title="Arch Linux Trademark Policy">trademarks</a>. Some rights reserved.
+ The Arch Linux&#174; name and logo are recognized <a href="https://wiki.archlinux.org/index.php/DeveloperWiki:TrademarkPolicy" title="Arch Linux Trademark Policy">trademarks</a>. Some rights reserved.
</p>
<p>
- The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
+ The registered trademark Linux&tm; is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
</p>
</div>
</div>