From 2cf2a68bd1c25d8fe4f3126f40bd57982cc6b2a4 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 3 Dec 2023 19:22:12 +0100 Subject: initial commit --- src/jwebmail/templates/_bot_nav.html | 48 +++++++++++++++++ src/jwebmail/templates/_folders.html | 48 +++++++++++++++++ src/jwebmail/templates/_main_table.html | 37 +++++++++++++ src/jwebmail/templates/_top_nav.html | 48 +++++++++++++++++ src/jwebmail/templates/about.html | 62 ++++++++++++++++++++++ src/jwebmail/templates/displayheaders.html | 32 ++++++++++++ src/jwebmail/templates/exception_.html | 30 +++++++++++ src/jwebmail/templates/login.html | 83 ++++++++++++++++++++++++++++++ src/jwebmail/templates/mainlayout.html | 34 ++++++++++++ src/jwebmail/templates/not_found.html | 25 +++++++++ src/jwebmail/templates/readmail.html | 17 ++++++ src/jwebmail/templates/writemail.html | 82 +++++++++++++++++++++++++++++ 12 files changed, 546 insertions(+) create mode 100644 src/jwebmail/templates/_bot_nav.html create mode 100644 src/jwebmail/templates/_folders.html create mode 100644 src/jwebmail/templates/_main_table.html create mode 100644 src/jwebmail/templates/_top_nav.html create mode 100644 src/jwebmail/templates/about.html create mode 100644 src/jwebmail/templates/displayheaders.html create mode 100644 src/jwebmail/templates/exception_.html create mode 100644 src/jwebmail/templates/login.html create mode 100644 src/jwebmail/templates/mainlayout.html create mode 100644 src/jwebmail/templates/not_found.html create mode 100644 src/jwebmail/templates/readmail.html create mode 100644 src/jwebmail/templates/writemail.html (limited to 'src/jwebmail/templates') diff --git a/src/jwebmail/templates/_bot_nav.html b/src/jwebmail/templates/_bot_nav.html new file mode 100644 index 0000000..e54fd4c --- /dev/null +++ b/src/jwebmail/templates/_bot_nav.html @@ -0,0 +1,48 @@ +
+ +
+ {{ pgn.links }} +
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+ {# csrf_field #} +
+ +
+
+
+
+
+
+ +
+
+ {# csrf_field #} +
+ +
+
+
+ +
+ + +
+ +
diff --git a/src/jwebmail/templates/_folders.html b/src/jwebmail/templates/_folders.html new file mode 100644 index 0000000..fd62ab2 --- /dev/null +++ b/src/jwebmail/templates/_folders.html @@ -0,0 +1,48 @@ +
+ +
+ +
+ +
+
+ + {{ pgn.info }} + + + {% if total_new_mails %} + {% trans %}{{ total_new_mails }} new{% endtrans %} + {% endif %} + + + {% if total_size %} + {% trans %}mailbox size: {% endtrans %} + {{ total_size|byte_size10 }} + {% endif %} + +
+
+ +
diff --git a/src/jwebmail/templates/_main_table.html b/src/jwebmail/templates/_main_table.html new file mode 100644 index 0000000..02f9f81 --- /dev/null +++ b/src/jwebmail/templates/_main_table.html @@ -0,0 +1,37 @@ +
+ + {% for msg in msgs %} + + +
+ {{ loop.index + (pgn.page - 1) * pgn.per_page }} +
+ +
+
+
+ {{ msg.head.sender.0.display_name or msg.head.sender.0.address or msg.head.from.0.display_name or msg.head.from.0.address }} +
+ +
+ {{ parse_iso_date(msg.head.date)|datetimeformat }} +
+ + + +
+ {{ msg.byte_size|byte_size10 }} +
+
+
+ +
+ +
+
+ + {% endfor %} + +
diff --git a/src/jwebmail/templates/_top_nav.html b/src/jwebmail/templates/_top_nav.html new file mode 100644 index 0000000..bc4afa5 --- /dev/null +++ b/src/jwebmail/templates/_top_nav.html @@ -0,0 +1,48 @@ +
+ + + +
+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+ {{ pgn.links }} +
+ +
diff --git a/src/jwebmail/templates/about.html b/src/jwebmail/templates/about.html new file mode 100644 index 0000000..e197275 --- /dev/null +++ b/src/jwebmail/templates/about.html @@ -0,0 +1,62 @@ +{% extends 'mainlayout.html' %} + +{% block content %} +
+ +
+ +

About JWebmail {{ version }}

+ +

+ JWebmail {{ version }} is a Webmail solution meant to be used with + s/qmail +

+ +

Features

+
    + +
  • multiple language support
  • +
  • session management
  • +
  • search for mails
  • +
  • CGI support but also psgi/plack and fcgi
  • +
+ +

+ This is a + GPL + licensed project, created by Oliver 'omnis' Müller + and currently maintained by + Jannis M. Hoffmann +

+ +

Supported languages

+
    +{% for lang in languages %} +
  • + {{ get_locale().languages[lang.language] }} +
  • +{% endfor %} +
+ +

+ JWebmail is programmed in Perl, and is + a complete rewrite of oMail-webmail. +

+ +
+ + + +
+{% endblock %} diff --git a/src/jwebmail/templates/displayheaders.html b/src/jwebmail/templates/displayheaders.html new file mode 100644 index 0000000..ce9ea6e --- /dev/null +++ b/src/jwebmail/templates/displayheaders.html @@ -0,0 +1,32 @@ +{% extends 'mainlayout.html' %} + +{% block scripts %} + +{% endblock %} + +{% block content %} +
+ + {% include '_folders.html' %} + + {% if loginmessage is defined %} +

+ {{ loginmessage }} +

+ {% endif %} + + {% include '_top_nav.html' %} + + {% if msgs %} + {% include '_main_table.html' %} + {% else %} +

+ {% trans %}This folder is empty!{% endtrans %} +

+ {% endif %} + + {% include '_bot_nav.html' %} + +
+{% endblock %} diff --git a/src/jwebmail/templates/exception_.html b/src/jwebmail/templates/exception_.html new file mode 100644 index 0000000..0b093b1 --- /dev/null +++ b/src/jwebmail/templates/exception_.html @@ -0,0 +1,30 @@ + + + + + + Error + + + +

Error

+

+ {% if error is defined %} + {{ error }} + {% else %} + Uwu :( + {% endif %} +

+ + {% if links is defined %} + See: + + {% endif %} + + + diff --git a/src/jwebmail/templates/login.html b/src/jwebmail/templates/login.html new file mode 100644 index 0000000..2915de3 --- /dev/null +++ b/src/jwebmail/templates/login.html @@ -0,0 +1,83 @@ +{% extends 'mainlayout.html' %} + +{% block content %} +
+
+ +

+ {% trans %}Login{% endtrans %} +

+

+ JWebmail +

+ +{% if login_form.errors %} +
+
+ {{ login_form.errors }} +
+
+{% endif %} +{% if warn %} +
+
+ {{ warn }} +
+
+{% endif %} + +
+ + {{ login_form.csrf_token }} + +
+
+ {{ login_form.username.label(class='label') }} +
+
+
+
+ {{ login_form.username(class='input') }} +
+
+
+
+ +
+
+ {{ login_form.password.label(class='label') }} +
+
+
+
+ {{ login_form.password(class='input') }} +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/src/jwebmail/templates/mainlayout.html b/src/jwebmail/templates/mainlayout.html new file mode 100644 index 0000000..46a07af --- /dev/null +++ b/src/jwebmail/templates/mainlayout.html @@ -0,0 +1,34 @@ + + + + + + + + + + + + {{ title or 'JWebmail' }} + + + + + {% block content required %}{% endblock %} + + + + {% block scripts %}{% endblock %} + + + + diff --git a/src/jwebmail/templates/not_found.html b/src/jwebmail/templates/not_found.html new file mode 100644 index 0000000..1dc8f0c --- /dev/null +++ b/src/jwebmail/templates/not_found.html @@ -0,0 +1,25 @@ + + + + + + + Not Found + + + + + +
+
+

+ Not the page you are looking for. +

+

+ Go back or go to the {% trans %}start page{% endtrans %}. +

+
+
+ + + diff --git a/src/jwebmail/templates/readmail.html b/src/jwebmail/templates/readmail.html new file mode 100644 index 0000000..f41197a --- /dev/null +++ b/src/jwebmail/templates/readmail.html @@ -0,0 +1,17 @@ +{% extends 'mainlayout.html' %} + +{% block content %} +
+ +

Read Mail

+ + {{ format_mail(msg) }} + + + +
+{% endblock %} diff --git a/src/jwebmail/templates/writemail.html b/src/jwebmail/templates/writemail.html new file mode 100644 index 0000000..31adff1 --- /dev/null +++ b/src/jwebmail/templates/writemail.html @@ -0,0 +1,82 @@ +{% extends 'mainlayout.html' %} + +{% block content %} +
+ +

Write Message

+ + {% if warning is defined %} +

{{ warning }}

+ {% endif %} + +
+ +
+ {{ form.send_to.label(class='label') }} +
+ {{ form.send_to(class='input') }} +
+
+ +
+ {{ form.subject.label(class='label') }} +
+ {{ form.subject(class='input') }} +
+
+ +
+ {{ form.cc.label(class='label') }} +
+ {{ form.cc(class='input') }} +
+
+ +
+ {{ form.bcc.label(class='label') }} +
+ {{ form.bcc(class='input') }} +
+
+ +
+ {{ form.answer_to.label(class='label') }} +
+ {{ form.answer_to(class='input') }} +
+
+ +
+ {{ form.content.label(class='label') }} +
+ {{ form.content(class='textarea', rows=10) }} +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + +
+{% endblock %} -- cgit v1.2.3