You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/09/17 15:01:06 UTC

[airavata-django-portal] branch master updated: AIRAVATA-3511 Change "a" to "an" when password account name starts vowel

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 68b3425  AIRAVATA-3511 Change "a" to "an" when password account name starts vowel
68b3425 is described below

commit 68b3425b05d3d5b3b9c85279c21ed4da5498212b
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Sep 17 11:00:26 2021 -0400

    AIRAVATA-3511 Change "a" to "an" when password account name starts vowel
---
 .../apps/auth/templates/django_airavata_auth/create_account.html        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html b/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html
index 137b8cb..5befc76 100644
--- a/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html
+++ b/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html
@@ -17,7 +17,7 @@
           {% if not options.password.name %}
           <h5 class="card-title">Create an account</h5>
           {% else %}
-          <h5 class="card-title">Create a {{ options.password.name }} account</h5>
+          <h5 class="card-title">Create a{% if options.password.name|first|lower in 'aeiou' %}n{% endif %} {{ options.password.name }} account</h5>
           {% endif %}
           {% include "./partials/messages.html" %}
           {% url 'django_airavata_auth:create_account' as form_url %}