From 941d27782bec9a13fabaae32ec215d8810b5dd10 Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Tue, 19 Apr 2016 20:28:33 +0100 Subject: [PATCH] Extract reusable templates from the Flash Services package --- flash/templates/home.html | 12 +++++++++--- flash/templates/partials/ci-section.html | 9 +++++++++ flash/templates/partials/undefined-section.html | 4 ++++ flash/templates/partials/vcs-section.html | 9 +++++++++ requirements.txt | 2 +- 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 flash/templates/partials/ci-section.html create mode 100644 flash/templates/partials/undefined-section.html create mode 100644 flash/templates/partials/vcs-section.html diff --git a/flash/templates/home.html b/flash/templates/home.html index 5d35b14..e9cc7d4 100644 --- a/flash/templates/home.html +++ b/flash/templates/home.html @@ -2,8 +2,14 @@ {% block body %}
{% for service_id, service in config.services.items() %} - {% set template = 'partials/{}.html'.format(service.TEMPLATE) %} - {% include template %} +
+
+
{{ service.FRIENDLY_NAME }}
+
+
+ {% set template = 'partials/{}.html'.format(service.TEMPLATE) %} + {% include template %} +
{% endfor %}
-
{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/flash/templates/partials/ci-section.html b/flash/templates/partials/ci-section.html new file mode 100644 index 0000000..87e20bd --- /dev/null +++ b/flash/templates/partials/ci-section.html @@ -0,0 +1,9 @@ +
+ {% for _ in range(4) %} +
+
+
+
+
+ {% endfor %} +
\ No newline at end of file diff --git a/flash/templates/partials/undefined-section.html b/flash/templates/partials/undefined-section.html new file mode 100644 index 0000000..d0e298d --- /dev/null +++ b/flash/templates/partials/undefined-section.html @@ -0,0 +1,4 @@ +
+

No pane template defined for + {{ service.service_name }} service.

+
\ No newline at end of file diff --git a/flash/templates/partials/vcs-section.html b/flash/templates/partials/vcs-section.html new file mode 100644 index 0000000..ed67ca3 --- /dev/null +++ b/flash/templates/partials/vcs-section.html @@ -0,0 +1,9 @@ +
+ {% for _ in range(4) %} +
+
+
+
+
+ {% endfor %} +
\ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e1b2aa1..0051517 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ astroid==1.4.4 colorama==0.3.7 cookies==2.2.1 -flash-services==0.1.5 +flash-services==0.2.0 Flask==0.10.1 Flask-Humanize==0.3.0 humanize==0.5.1