about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorRabbit Whispers <us@starfall.systems>2025-04-25 20:28:26 -0500
committerRabbit Whispers <us@starfall.systems>2025-04-25 20:38:14 -0500
commit22ef524b9602ea39b08e18f689ef1b135de8ca2f (patch)
tree7308f35cbcf822cf10bdf5ebcd4ff9b09aaf8dcf /templates
Initial commit HEAD main
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html20
-rw-r--r--templates/repo-list.html19
-rw-r--r--templates/repo.html18
3 files changed, 57 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..126d559
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html lang=en-US dir=ltr>
+<head>
+	{% block head %}
+	<title>{{title}}</title>
+	<meta charset=UTF-8>
+	<meta name=viewport content="width=device-width, initial-scale=1">
+	<link rel=stylesheet href=/static/simple.css>
+	{% endblock %}
+</head>
+
+<section>
+	<h1><a href=/>Shadowbox</a></h1>
+</section>
+
+<section>
+{% block content %}{% endblock %}
+</section>
+
+
diff --git a/templates/repo-list.html b/templates/repo-list.html
new file mode 100644
index 0000000..b05f479
--- /dev/null
+++ b/templates/repo-list.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+
+{% block content %}
+<table>
+	<thead>
+		<tr><th>Name
+			<th>Description
+			<th>Last Update
+	</thead>
+	<tbody>
+		{% for repo in repos %}
+		<tr><td><a href={{repo.name}}>{{repo.name}}</a>
+			<td>{{repo.description}}
+			<td>{{repo.last_update}}
+		{% endfor %}
+	</tbody>
+</table>
+{% endblock %}
+
diff --git a/templates/repo.html b/templates/repo.html
new file mode 100644
index 0000000..db03325
--- /dev/null
+++ b/templates/repo.html
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h2>{{repo.name}}</h2>
+{{repo.description}}
+
+{% if readme %}
+<h3>README</h3>
+{{readme | safe}}
+{% endif %}
+
+<h3>Commit History</h3>
+<ul>
+{% for commit in commits %}
+<li>{{commit}}
+{% endfor %}
+{% endblock %}
+