From 329be9aa19d4529d8f37567e832230cb1f1c6794 Mon Sep 17 00:00:00 2001 From: QBai <31238531+qifeng-bai@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:59:04 +1100 Subject: [PATCH] #259 Email templates use Roboto --- grails-app/views/email/_footer.gsp | 4 +-- grails-app/views/email/_unsubscribe.gsp | 2 +- grails-app/views/email/annotations.gsp | 14 ++++----- grails-app/views/email/biocache.gsp | 14 ++++----- grails-app/views/email/biocacheImages.gsp | 14 ++++----- grails-app/views/email/biosecurity.gsp | 36 +++++++++++------------ grails-app/views/email/blogs.gsp | 6 ++-- grails-app/views/email/dataresource.gsp | 14 ++++----- grails-app/views/email/datasets.gsp | 14 ++++----- grails-app/views/email/layers.gsp | 16 +++++----- grails-app/views/email/myAnnotations.gsp | 16 +++++----- grails-app/views/email/specieslist.gsp | 14 ++++----- grails-app/views/email/specieslists.gsp | 2 +- 13 files changed, 83 insertions(+), 83 deletions(-) diff --git a/grails-app/views/email/_footer.gsp b/grails-app/views/email/_footer.gsp index 39c3edbd..8408eee4 100644 --- a/grails-app/views/email/_footer.gsp +++ b/grails-app/views/email/_footer.gsp @@ -1,12 +1,12 @@ - +

The Atlas of Living Australia acknowledges Australia's Traditional Owners and pays respect to the past and present Elders of the nation's Aboriginal and Torres Strait Islander communities.

We honour and celebrate the spiritual, cultural and customary connections of Traditional Owners to Country and the biodiversity that forms part of that Country.

- +

NCRIS logo   CSIRO logo  diff --git a/grails-app/views/email/_unsubscribe.gsp b/grails-app/views/email/_unsubscribe.gsp index bf17c941..534a4a54 100644 --- a/grails-app/views/email/_unsubscribe.gsp +++ b/grails-app/views/email/_unsubscribe.gsp @@ -1,5 +1,5 @@ - +
diff --git a/grails-app/views/email/annotations.gsp b/grails-app/views/email/annotations.gsp index 380c9727..ecdfe89e 100644 --- a/grails-app/views/email/annotations.gsp +++ b/grails-app/views/email/annotations.gsp @@ -10,11 +10,11 @@ - + -
- +
+ - - @@ -39,7 +39,7 @@ -
@@ -25,13 +25,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+ @@ -51,7 +51,7 @@ ${i+1}.
- + ${oc.scientificName?: oc.vernacularName ?: oc.raw_raw_scientificName }

diff --git a/grails-app/views/email/biocache.gsp b/grails-app/views/email/biocache.gsp index 8fac5b5b..ade013ab 100644 --- a/grails-app/views/email/biocache.gsp +++ b/grails-app/views/email/biocache.gsp @@ -13,11 +13,11 @@ color: #003A70; } - + -
- +
+ - - @@ -42,14 +42,14 @@ -
@@ -28,13 +28,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+
- ${i+1}. ${oc.scientificName?: oc.vernacularName ?: oc.raw_raw_scientificName} + ${i+1}. ${oc.scientificName?: oc.vernacularName ?: oc.raw_raw_scientificName}

diff --git a/grails-app/views/email/biocacheImages.gsp b/grails-app/views/email/biocacheImages.gsp index 3def261d..0ff2f541 100644 --- a/grails-app/views/email/biocacheImages.gsp +++ b/grails-app/views/email/biocacheImages.gsp @@ -36,11 +36,11 @@ - + -
- +
+ - - -
@@ -51,13 +51,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} ${totalRecords == 1 ? ' record with images ' : ' records with images'} ${totalRecords == 1 ? 'has' : 'have'} been added @@ -71,7 +71,7 @@
+ @@ -99,7 +99,7 @@
- + ${message(code:
${oc.scientificName}
diff --git a/grails-app/views/email/biosecurity.gsp b/grails-app/views/email/biosecurity.gsp index 8980b8a7..3498dad7 100644 --- a/grails-app/views/email/biosecurity.gsp +++ b/grails-app/views/email/biosecurity.gsp @@ -8,29 +8,29 @@ ${title} - - + +
-
- +
+ - - - -
- + + Logo
+

Biosecurity Alerts

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

Alerts service for new ALA records listing potential invasive species

+
${totalRecords} new ${totalRecords == 1 ? 'record' : 'records'} for
@@ -45,11 +45,11 @@
- +
+ - - - - - -
- + + ${i+1}. ${oc.scientificName ?: 'N/A'}

@@ -79,12 +79,12 @@

- + + Map Image + @@ -103,19 +103,19 @@
+

If you notice a record has been misidentified, we encourage you to use your expertise to improve the quality of Australia's biosecurity data.

Please either annotate the record in the provider platform itself or notify us at biosecurity@ala.org.au for assistance.

+

The Atlas of Living Australia acknowledges Australia's Traditional Owners and pays respect to the past and present Elders of the nation's Aboriginal and Torres Strait Islander communities.

We honour and celebrate the spiritual, cultural and customary connections of Traditional Owners to Country and the biodiversity that forms part of that Country.

+

NCRIS logo   CSIRO logo  diff --git a/grails-app/views/email/blogs.gsp b/grails-app/views/email/blogs.gsp index 9723bf5e..193b4319 100644 --- a/grails-app/views/email/blogs.gsp +++ b/grails-app/views/email/blogs.gsp @@ -12,16 +12,16 @@ ${title} -

+
-
Latest ALA Blog Updates
+
Latest ALA Blog Updates

-
+
${new SimpleDateFormat("dd MMM yyyy").format(new Date())}
diff --git a/grails-app/views/email/dataresource.gsp b/grails-app/views/email/dataresource.gsp index ba13883c..a170eb06 100644 --- a/grails-app/views/email/dataresource.gsp +++ b/grails-app/views/email/dataresource.gsp @@ -22,11 +22,11 @@ color: #003A70; } - + -
- +
+ - - -
@@ -37,13 +37,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} ${totalRecords == 1 ? 'dataset' : 'datasets'} ${totalRecords == 1 ? 'has' : 'have'} been updated
@@ -54,7 +54,7 @@
+ @@ -65,7 +65,7 @@ ${i+1}.
- + ${oc.label}

diff --git a/grails-app/views/email/datasets.gsp b/grails-app/views/email/datasets.gsp index 2f4aa9ca..83cbe7cd 100644 --- a/grails-app/views/email/datasets.gsp +++ b/grails-app/views/email/datasets.gsp @@ -13,11 +13,11 @@ a { color: #003A70; } - + -
- +
+ - - @@ -42,7 +42,7 @@ a { -
@@ -28,13 +28,13 @@ a {
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} ${totalRecords == 1 ? 'dataset' : 'datasets'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+ @@ -53,7 +53,7 @@ a { ${i+1}.
- + ${oc.name}

diff --git a/grails-app/views/email/layers.gsp b/grails-app/views/email/layers.gsp index 4ab38197..595ed05f 100644 --- a/grails-app/views/email/layers.gsp +++ b/grails-app/views/email/layers.gsp @@ -14,11 +14,11 @@ text-decoration: none; } - + -
- +
+ - - @@ -43,12 +43,12 @@ -
@@ -29,13 +29,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} ${totalRecords == 1 ? 'spatial layer ' : 'spatial layers'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+
- + ${i+1}. ${oc.displayname}

@@ -62,7 +62,7 @@ Extents: Latitude ${oc.minlatitude} to ${oc.maxlatitude}, Longitude ${oc.minlongitude} to ${oc.maxlongitude}
- Licence: ${oc.licence_notes}
+ Licence: ${oc.licence_notes}

diff --git a/grails-app/views/email/myAnnotations.gsp b/grails-app/views/email/myAnnotations.gsp index d0241f3b..62f5153f 100644 --- a/grails-app/views/email/myAnnotations.gsp +++ b/grails-app/views/email/myAnnotations.gsp @@ -10,11 +10,11 @@ - + -
- +
+ - - @@ -39,7 +39,7 @@ - -
@@ -25,13 +25,13 @@
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+ @@ -52,7 +52,7 @@ ${i+1}.
- + ${oc.scientificName?:oc.vernacularName ?: oc.raw_raw_scientificName } @@ -74,7 +74,7 @@
+ <% def latestAssertion = oc.processed_assertions[0] // Get the first (latest) assertion diff --git a/grails-app/views/email/specieslist.gsp b/grails-app/views/email/specieslist.gsp index 5f5e2b5a..c5c96489 100644 --- a/grails-app/views/email/specieslist.gsp +++ b/grails-app/views/email/specieslist.gsp @@ -13,11 +13,11 @@ a { color: #003A70; } - + -
- +
+ - - @@ -42,12 +42,12 @@ a { -
@@ -28,13 +28,13 @@ a {
+

ALA Alerts - ${query.name}

${new SimpleDateFormat("dd MMM yyyy").format(new Date())}

+
${totalRecords} ${totalRecords == 1 ? ' species list' : ' species lists'} ${totalRecords == 1 ? 'has' : 'have'} been updated
+
- ${i+1}. ${oc.listName} + ${i+1}. ${oc.listName}

<% // Initialize a list to collect tags diff --git a/grails-app/views/email/specieslists.gsp b/grails-app/views/email/specieslists.gsp index 8fb7584a..06fc4e38 100644 --- a/grails-app/views/email/specieslists.gsp +++ b/grails-app/views/email/specieslists.gsp @@ -9,7 +9,7 @@