From 910714d435cc714115e4f8b729d6fb30e341e1c1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 12 Oct 2021 11:14:18 -0700 Subject: [PATCH] email_server: Refactor the home directory page - Add a header to the page. - Move message outside the form. - Remove warning and strong emphasis. Since this is only content in the page. - Derive from regular base. - Drop unnecessary reference to bootstrap forms. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../email_server/templates/my_mail.html | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/plinth/modules/email_server/templates/my_mail.html b/plinth/modules/email_server/templates/my_mail.html index aab62ad3a..cb02e7702 100644 --- a/plinth/modules/email_server/templates/my_mail.html +++ b/plinth/modules/email_server/templates/my_mail.html @@ -1,27 +1,25 @@ {# SPDX-License-Identifier: AGPL-3.0-or-later #} -{% extends "email_form_base.html" %} +{% extends "base.html" %} -{% load bootstrap %} {% load i18n %} {% block content %} - {{ block.super }} +

Setup My Home

{% if not has_homedir %} +

+ {% trans "You do not have a home directory." %} + + {% trans "Create one to begin receiving emails." %} + +

+
- + {% csrf_token %} +
{% else %}

{% trans "Your home directory is ready to receive emails." %}