From fda7315f43b02cfae3050ece68a4d7cb26a826b4 Mon Sep 17 00:00:00 2001 From: toufic ar Date: Fri, 15 May 2026 02:24:12 +0300 Subject: restructure webUI --- web/templates/base.html | 74 ++++++++++++++++++++++++++++ web/templates/home.html | 66 +++++++++++++++++++++++++ web/templates/project.html | 119 +++++++++++++++++++++++++++++++++++++++++++++ web/templates/run.html | 19 ++++++++ 4 files changed, 278 insertions(+) create mode 100644 web/templates/base.html create mode 100644 web/templates/home.html create mode 100644 web/templates/project.html create mode 100644 web/templates/run.html (limited to 'web/templates') diff --git a/web/templates/base.html b/web/templates/base.html new file mode 100644 index 0000000..81d6a59 --- /dev/null +++ b/web/templates/base.html @@ -0,0 +1,74 @@ + + + + {% block head %} + + makeshiftci{% block title %}{% endblock %} + + {% endblock %} + + {% block extrastyle %}{% endblock %} + + +
+
+

makeshiftci{% block path %}{% endblock %}

+ {% block headingcontent %}{% endblock %} +
+ {% block content %}{% endblock %} +
+ + + diff --git a/web/templates/home.html b/web/templates/home.html new file mode 100644 index 0000000..20ef75a --- /dev/null +++ b/web/templates/home.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} {% block extrastyle %} + +{% endblock %} {% block content %} +
+ {% for project in projects %} + + {% endfor %} +
+{% endblock %} + + diff --git a/web/templates/project.html b/web/templates/project.html new file mode 100644 index 0000000..9b0aa58 --- /dev/null +++ b/web/templates/project.html @@ -0,0 +1,119 @@ +{% extends "base.html" %} {% block title %}/{{ project_path }}{% endblock %} {% +block path %}/{{ project_path }}{% endblock %} +{% block extrastyle %} + +{% endblock %} {% block headingcontent %} +

{{ project.name }}

+

{{ project.url }}{{ project.cron }}

+{% endblock %} {% block content %} + +
+ {% for run in runlist %} +
+

run + #{{ run.number }}{{ run.date }}

+
+

+
+ {% endfor %} +
+{% endblock %} + + diff --git a/web/templates/run.html b/web/templates/run.html new file mode 100644 index 0000000..77f9f90 --- /dev/null +++ b/web/templates/run.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} {% block title %}/{{ project_path }}/{{ run_number +}}{% endblock %} {% block path %}/{{ project_path }}/{{ run_number }}{% endblock +%} {% block content %} +

+
+{% for n in run %}
+
+{% endfor %} {% endblock %}
+
+
-- 
cgit v1.2.3