diff --git a/app/dashboard/templates/dashboard/alias_log.html b/app/dashboard/templates/dashboard/alias_log.html index ef98b165..fee55ca7 100644 --- a/app/dashboard/templates/dashboard/alias_log.html +++ b/app/dashboard/templates/dashboard/alias_log.html @@ -74,28 +74,28 @@
-
+
{{ total }} Email Handled
-
+
{{ email_forwarded }} Email Forwarded
-
+
{{ email_replied }} Email Replied
-
+
{{ email_blocked }} diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 66048a32..b80650c4 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -151,7 +151,7 @@
{% if gen_email.enabled %} - /", methods=["GET", "POST"]) +@dashboard_bp.route("/alias_contact_manager//", methods=["GET", "POST"]) @dashboard_bp.route( - "/alias_contact_manager//", methods=["GET", "POST"] + "/alias_contact_manager//", methods=["GET", "POST"] ) @login_required -def alias_contact_manager(alias, forward_email_id=None): - gen_email = GenEmail.get_by(email=alias) +def alias_contact_manager(alias_id, forward_email_id=None): + gen_email = GenEmail.get(alias_id) # sanity check if not gen_email: @@ -83,7 +83,7 @@ def alias_contact_manager(alias, forward_email_id=None): ): flash(f"{website_email} is already added", "error") return redirect( - url_for("dashboard.alias_contact_manager", alias=alias) + url_for("dashboard.alias_contact_manager", alias_id=alias_id) ) forward_email = ForwardEmail.create( @@ -100,7 +100,7 @@ def alias_contact_manager(alias, forward_email_id=None): return redirect( url_for( "dashboard.alias_contact_manager", - alias=alias, + alias_id=alias_id, forward_email_id=forward_email.id, ) ) @@ -110,10 +110,14 @@ def alias_contact_manager(alias, forward_email_id=None): if not forward_email: flash("Unknown error. Refresh the page", "warning") - return redirect(url_for("dashboard.alias_contact_manager", alias=alias)) + return redirect( + url_for("dashboard.alias_contact_manager", alias_id=alias_id) + ) elif forward_email.gen_email_id != gen_email.id: flash("You cannot delete reverse-alias", "warning") - return redirect(url_for("dashboard.alias_contact_manager", alias=alias)) + return redirect( + url_for("dashboard.alias_contact_manager", alias_id=alias_id) + ) contact_name = forward_email.website_from ForwardEmail.delete(forward_email_id) @@ -121,7 +125,9 @@ def alias_contact_manager(alias, forward_email_id=None): flash(f"Reverse-alias for {contact_name} has been deleted", "success") - return redirect(url_for("dashboard.alias_contact_manager", alias=alias)) + return redirect( + url_for("dashboard.alias_contact_manager", alias_id=alias_id) + ) # make sure highlighted forward_email is at array start forward_emails = gen_email.forward_emails diff --git a/templates/emails/welcome.html b/templates/emails/welcome.html index 3ad5777d..f2129955 100644 --- a/templates/emails/welcome.html +++ b/templates/emails/welcome.html @@ -1,18 +1,22 @@ {% extends "base.html" %} {% block content %} - {{ render_text("Hi " + name) }} + {% if name %} + {{ render_text("Hi " + name + ",") }} + {% else %} + {{ render_text("Hi,") }} + {% endif %} {{ render_text("My name is Son. I’m the founder of SimpleLogin and I wanted to be the first to welcome you on board.") }} {{ render_text('To better secure your account, I recommend enabling Multi-Factor Authentication (MFA) on your Setting page.') }} - {{ render_text('If you use Chrome or Firefox, SimpleLogin extension could be quite handy to quickly create aliases. Chrome extension can be installed on Chrome Store and Firefox on Firefox Store.') }} + {{ render_text('If you use Chrome or Firefox, SimpleLogin extension could be handy to quickly create aliases. Chrome extension can be installed on Chrome Store and Firefox on Firefox Store.') }} {{ render_text('If you have a domain, for example for your business or your project, you can import your domain into SimpleLogin and create your business emails backed by your personal email. This is cheaper and more convenient than buying a GSuite account. By the way, all our business emails are actually aliases :).') }} - {{ render_text('Importing domain is only available for Premium plan though, shoot me an email if you need a trial period.') }} + {{ render_text('Importing domain is only available for Premium plan though, shoot me an email by replying to this email if you need a trial period.') }} {% endblock %}