remove create account CTA if user signed in

This commit is contained in:
Chris Hill-Scott
2019-04-09 15:20:40 +01:00
parent c9bfca3c32
commit 22cbd8fd11
4 changed files with 38 additions and 30 deletions

View File

@@ -23,7 +23,9 @@
<li>letters</li> <li>letters</li>
</ul> </ul>
<p>You dont need any technical knowledge to use Notify.</p> <p>You dont need any technical knowledge to use Notify.</p>
<p><a href="{{ url_for('main.register') }}">Create an account</a> for free and try it yourself.</p> {% if not current_user.is_authenticated %}
<p><a href="{{ url_for('main.register') }}">Create an account</a> for free and try it yourself.</p>
{% endif %}
<h2 class="heading-medium">Reusable message templates</h2> <h2 class="heading-medium">Reusable message templates</h2>
<p>To send an email, text or letter with Notify, first create a reusable message template.</p> <p>To send an email, text or letter with Notify, first create a reusable message template.</p>

View File

@@ -16,7 +16,9 @@
<h1 class="heading heading-large">Emails</h1> <h1 class="heading heading-large">Emails</h1>
<p>Send an unlimited number of emails for free with GOV.UK Notify.</p> <p>Send an unlimited number of emails for free with GOV.UK Notify.</p>
<p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p> {% if not current_user.is_authenticated %}
<p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p>
{% endif %}
<h2 class="heading heading-medium">Features</h2> <h2 class="heading heading-medium">Features</h2>
<p>Notify makes it easy to:</p> <p>Notify makes it easy to:</p>

View File

@@ -16,7 +16,9 @@
<h1 class="heading heading-large">Letters</h1> <h1 class="heading heading-large">Letters</h1>
<p>GOV.UK Notify will print, pack and post your letters for you.</p> <p>GOV.UK Notify will print, pack and post your letters for you.</p>
<p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p> {% if not current_user.is_authenticated %}
<p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p>
{% endif %}
<h2 class="heading heading-medium">Features</h2> <h2 class="heading heading-medium">Features</h2>
<p>Notify makes it easy to:</p> <p>Notify makes it easy to:</p>

View File

@@ -16,7 +16,9 @@
<h1 class="heading heading-large">Text messages</h1> <h1 class="heading heading-large">Text messages</h1>
<p>With GOV.UK Notify you can send thousands of free text messages to UK and international numbers.</p> <p>With GOV.UK Notify you can send thousands of free text messages to UK and international numbers.</p>
{% if not current_user.is_authenticated %}
<p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p> <p><a href="https://www.notifications.service.gov.uk/register">Create an account</a> and try Notify for yourself.</p>
{% endif %}
<h2 class="heading heading-medium">Features</h2> <h2 class="heading heading-medium">Features</h2>
<p>Notify makes it easy to:</p> <p>Notify makes it easy to:</p>