diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 20 | ||||
-rw-r--r-- | templates/repo-list.html | 19 | ||||
-rw-r--r-- | templates/repo.html | 18 |
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 %} + |