From bb3d16d273bb3e4552e4869dd22cb2c2d81f5387 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 26 Aug 2018 02:54:52 +0200 Subject: Added Twig template renderer, closes #338 --- templates/guest_credits.html | 36 ---------------- templates/layout.html | 62 --------------------------- templates/layouts/app.twig | 80 +++++++++++++++++++++++++++++++++++ templates/layouts/maintenance.html | 86 ++++++++++++++++++++++++++++++++++++++ templates/maintenance.html | 86 -------------------------------------- templates/pages/credits.html | 36 ++++++++++++++++ templates/pages/user-shifts.html | 74 ++++++++++++++++++++++++++++++++ templates/user_shifts.html | 74 -------------------------------- 8 files changed, 276 insertions(+), 258 deletions(-) delete mode 100644 templates/guest_credits.html delete mode 100644 templates/layout.html create mode 100644 templates/layouts/app.twig create mode 100644 templates/layouts/maintenance.html delete mode 100644 templates/maintenance.html create mode 100644 templates/pages/credits.html create mode 100644 templates/pages/user-shifts.html delete mode 100644 templates/user_shifts.html (limited to 'templates') diff --git a/templates/guest_credits.html b/templates/guest_credits.html deleted file mode 100644 index db7fac57..00000000 --- a/templates/guest_credits.html +++ /dev/null @@ -1,36 +0,0 @@ -
-

Credits

-
-
-

Source code

-

- The original system was written by cookie. - It was then completely rewritten and enhanced by - msquare (maintainer), - MyIgel, - mortzu, - jplitza and - gnomus. -

-

- Please look at the contributor - list on github for a more complete version. -

-
-
-

Hosting

-

- Webspace, development platform and domain on engelsystem.de - is currently provided by would you buy this? (ichdasich) - and adminstrated by mortzu, - derf and ichdasich. -

-
-
-

Translation

-

- Many thanks for the german translation: e7p -

-
-
-
diff --git a/templates/layout.html b/templates/layout.html deleted file mode 100644 index 12a91086..00000000 --- a/templates/layout.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - %title% - Engelsystem - - - - - - - - %atom_link% - - - -
-
%content%
- -
- - - - - - - - - - - diff --git a/templates/layouts/app.twig b/templates/layouts/app.twig new file mode 100644 index 00000000..6b6bd16f --- /dev/null +++ b/templates/layouts/app.twig @@ -0,0 +1,80 @@ + + + + {% block head %} + {% block title %}{{ title }}{% endblock %} - Engelsystem + + + + + + + + {{ atom_link|raw }} + {% endblock %} + + + +{% block body %} + + +
+
{% block content %}{{ content|raw }}{% endblock %}
+ +
+ + + + + + + + + + +{% endblock %} + + + diff --git a/templates/layouts/maintenance.html b/templates/layouts/maintenance.html new file mode 100644 index 00000000..bd73bd74 --- /dev/null +++ b/templates/layouts/maintenance.html @@ -0,0 +1,86 @@ + + + + Maintenance - Engelsystem + + + + + + + + + + +
+
+
+
+

+ + + +

+
+

+ The ENGELSYSTEM is in maintenance mode. +

+

This may be due to...

+

+ ...archangels closing the gates of heaven.
+ ...somebody's stolen the power chord and now the battery is empty.
+ ...DHCP decided to give me another ip address. +

+
+
+ +
+
+
+
+ +
+ + + + + + + + + + diff --git a/templates/maintenance.html b/templates/maintenance.html deleted file mode 100644 index bd73bd74..00000000 --- a/templates/maintenance.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - Maintenance - Engelsystem - - - - - - - - - - -
-
-
-
-

- - - -

-
-

- The ENGELSYSTEM is in maintenance mode. -

-

This may be due to...

-

- ...archangels closing the gates of heaven.
- ...somebody's stolen the power chord and now the battery is empty.
- ...DHCP decided to give me another ip address. -

-
-
- -
-
-
-
- -
- - - - - - - - - - diff --git a/templates/pages/credits.html b/templates/pages/credits.html new file mode 100644 index 00000000..4e247113 --- /dev/null +++ b/templates/pages/credits.html @@ -0,0 +1,36 @@ +
+

Credits

+
+
+

Source code

+

+ The original system was written by cookie. + It was then completely rewritten and enhanced by + msquare (maintainer), + MyIgel, + mortzu, + jplitza and + gnomus. +

+

+ Please look at the + contributor list on github for a more complete version. +

+
+
+

Hosting

+

+ Webspace, development platform and domain on engelsystem.de + is currently provided by would you buy this? (ichdasich) + and adminstrated by mortzu, + derf and ichdasich. +

+
+
+

Translation

+

+ Many thanks for the german translation: e7p +

+
+
+
diff --git a/templates/pages/user-shifts.html b/templates/pages/user-shifts.html new file mode 100644 index 00000000..e137210c --- /dev/null +++ b/templates/pages/user-shifts.html @@ -0,0 +1,74 @@ + + +
+ +
+
+

%title%

+
%start_select%
+
+
+ +
+ +
+
+
+ – +
%end_select%
+
+
+ +
+ +
+
+
+ +
+
+ %buttons% +
+
+
+
%room_select%
+
%type_select%
+
%filled_select%
+
+
+
+

%task_notice%

+ +
+
+
+%shifts_table% %ical_text% diff --git a/templates/user_shifts.html b/templates/user_shifts.html deleted file mode 100644 index e137210c..00000000 --- a/templates/user_shifts.html +++ /dev/null @@ -1,74 +0,0 @@ - - -
- -
-
-

%title%

-
%start_select%
-
-
- -
- -
-
-
- – -
%end_select%
-
-
- -
- -
-
-
- -
-
- %buttons% -
-
-
-
%room_select%
-
%type_select%
-
%filled_select%
-
-
-
-

%task_notice%

- -
-
-
-%shifts_table% %ical_text% -- cgit v1.2.3-54-g00ecf