my eye

Clean up project index

Committed 71f760

- Collapse commit line - Dampen ignorrables color - Simplify and clean up package details

--- a/webint_code/templates/project/index.html
+++ b/webint_code/templates/project/index.html

   display: inline-block;
   height: .9em;
   width: .9em; }
+aside small strong {
+  text-transform: small-caps; }
 </style>
 
 $ issues = 0
     $# <a class=u-author href="$author_url">$commit["author_name"]</a>
     <span class=p-name>$:str(mkdn(commit["message"]))[3:-4]</span>
     $if "errors" in test_results:
-        <p>
         $if test_results["errors"]:
             $ test_color = "red"
             $ test_indicator = "&#x25a0;"
                 $ plural = "s"
             $ test_msg = f"{test_results['tests']} test{plural} passing"
         <span style=color:$test_color>$:test_indicator</span>
-        $test_msg in $test_results["time"]<small>s</small></p>
+        $test_msg in $test_results["time"]<small>s</small>
     <small><small>
     <a class=u-url href=/projects/$project/commits/$commit["hash"]>\
     <code>$commit["hash"][:7].upper()</code> <time class=dt-published \
     </ul>
     $ prev_file = None
     $ known_files = [f for f in files if str(f).partition("/")[0] in ignorable_files]
-    <p>\
+    <p style=color:#586e75>\
     $for file in known_files:
         $ file, is_dir, _ = str(file).partition("/")
         $if file == prev_file:
             $continue
-        <a style=color:#888 href=/projects/$project/files/$file>$file</a>\
+        <a href=/projects/$project/files/$file>$file</a>\
         $if is_dir:
             /\
         $ prev_file = file
             </small>
         </p>
 
-        <p><small><strong>Package:</strong><br>
-        <code>$py_project_name</code>
+        <p><small><strong>Package</strong><br>
+        <small><code>$py_project_name</code>
         $for source in py_project.pop("source", []):
             $if source["name"] == "main":
-                <code>@<a href="$source['url']">$source["url"]</a></code>
-        </small></p>
+                <code>@<a href="$source['url']">$source["url"].removeprefix("https://")</a></code>
+        </small></small></p>
 
         $if py_deps := py_project.pop("dependencies", None):
-            <p><small><strong>Requires:</strong><br>
-            <code>python&thinsp;$py_deps.pop("python")</code><br>
+            <p><small><strong>Requires</strong><br>
+            <small><code>python&thinsp;$py_deps.pop("python")</code><br>
+            <small>
             $for dep, version in sorted(py_deps.items()):
                 $ dep_nobreak = dep.replace("-", "&zwj;-&zwj;")
                 <code><a href=https://pypi.org/project/$dep>$:dep_nobreak</a></code>\
                 $if not loop.last:
                     ,
-            </small></p>
+            </small></small></small></p>
 
         $ plugins = py_project.pop("plugins", None)
         $ scripts = py_project.pop("scripts", None)
         $if plugins or scripts:
-            <p><small><strong>Provides:</strong></small><br>
+            <p><small><strong>Provides</strong><br>
+            <small>
         $if plugins:
             $if webapps := plugins.pop("webapps", None):
                 webapps (
                         , \
                  )
             $if websites := plugins.pop("websites", None):
+                <form method=post action=$tx.origin/sites/machines>
+                <input type=hidden name=package value=$py_project_name>
                 websites (
                 $for webapp, webapp_callable in websites.items():
                     $ webapp_path = webapp_callable.replace(".", "/").replace(":", "#")
                     <a href="/projects/$project/api/$webapp_path">$webapp</a>\
-                    <form method=post action=$tx.origin/sites/machines>
-                        <input type=hidden name=package value=$py_project_name>
-                        <input type=hidden name=app value=$webapp_callable>
-                        <button>Spawn</button>
-                    </form>
+                    <button name=app valaue=$webapp_callable>Spawn</button>
                     $if not loop.last:
                         , \
-                 )
+                )
+                </form>
         $if scripts:
             scripts (
             $for script, script_callable in scripts.items():
                     , \
              )
         $if plugins or scripts:
-            </p>
+            </small></small></p>
 
         $ license = py_project.pop("license")
         $ licenses = {"0BSD": '<abbr title="Berkeley Software Distribution">BSD</abbr> Zero Clause License',
         $             "BSD-2-Clause": '<abbr title="Berkeley Software Distribution">BSD</abbr> 2-Clause "Simplified" License',
         $             "BSD-3-Clause": '<abbr title="Berkeley Software Distribution">BSD</abbr> 3-Clause "Modified" License',
         $             "AGPL-3.0-or-later": 'GNU <abbr title="Affero General Public License">AGPL</abbr> v3.0 or later'}
-        <p><small><strong>License:</strong><br>
-        <a href=https://spdx.org/licenses/$(license).html><code>$:licenses[license]</code></a></small></p>
+        <p><small><strong>License</strong><br>
+        <small><a href=https://spdx.org/licenses/$(license).html>\
+        <code>$:licenses[license]</code></a></small></small></p>
 
     $if package_releases:
         $ release, entry = package_releases[0]
-        <p class=h-entry><small><strong>Releases <code><a
-        href=/projects/$project/releases>$len(package_releases)</a></code>:</strong><br>
+        <p class=h-entry><small><strong>Releases <code>(<a
+        href=/projects/$project/releases>$len(package_releases)</a>)</code></strong><br>
         <span class=p-name>v$release</span>
         <a class=u-url href=/projects/$project/releases/$release><time
         class=dt-published datetime=$entry["published"][0].isoformat()>\