Skip to content

Commit f518ab6

Browse files
authored
Merge pull request #295 from AtlasOfLivingAustralia/release/4.2.4
Release/4.2.4
2 parents 972e6e3 + e8679b4 commit f518ab6

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* rights and limitations under the License.
1212
*/
1313
buildscript {
14-
version "4.2.3"
14+
version "4.2.4"
1515
group "au.org.ala"
1616
}
1717

cicd/slack_notification.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Some fun, a different image for each environment
99
case $ENVIRONMENT in
1010
"production")
11-
IMAGE_URL=https://inaturalist-open-data.s3.amazonaws.com/photos/321044358/small.png
12-
ALT_TEXT="Photo by David Wesolowski. https://www.inaturalist.org/observations/147380645"
11+
IMAGE_URL=https://inaturalist-open-data.s3.amazonaws.com/photos/69895591/small.jpg
12+
ALT_TEXT="Photo by John D Reynolds. https://www.inaturalist.org/observations/44082017"
1313
;;
1414
"staging")
1515
IMAGE_URL=https://inaturalist-open-data.s3.amazonaws.com/photos/208429788/small.jpg
Loading

grails-app/views/email/biosecurity.gsp

+14-11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #f4f4f4;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;border-spacing: 0;border-collapse: collapse;">
1313
<tr>
1414
<td align="center" style="padding: 20px;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
15-
<table border="0" cellpadding="0" cellspacing="0" width="620" style="background-color: #ffffff;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;border-spacing: 0;border-collapse: collapse;">
15+
<table border="0" cellpadding="0" cellspacing="0" width="650" style="background-color: #ffffff;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;border-spacing: 0;border-collapse: collapse;">
1616
<!-- Logo -->
1717
<tr>
1818
<td align="center" style="padding: 20px; background-color: #fff;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
@@ -23,7 +23,7 @@
2323
</tr>
2424
<!-- Header -->
2525
<tr>
26-
<td align="center" bgcolor="#B53929" background="${grailsApplication.config.grails.serverURL}/assets/email/biosecurity-alert-header.png" width="620" height="120" style="color:white;background-color:#B53929;padding: 20px 10px 20px 10px;text-align: center;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;background-image:url(${grailsApplication.config.grails.serverURL}/assets/email/biosecurity-alert-header.png);">
26+
<td align="center" bgcolor="#B53929" background="${grailsApplication.config.grails.serverURL}/assets/email/biosecurity-alert-header.png" width="620" height="120" style="color:white;background-color:#B53929;padding: 20px 10px 20px 10px;text-align: center;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;background-image:url(${grailsApplication.config.grails.serverURL}/assets/email/biosecurity-alert-header.png);background-position: top center;background-size: cover;background-repeat: no-repeat">
2727
<h1 style="font-size: 24px; color: #fff;">Biosecurity Alerts</h1>
2828
<p style="font-size: 16px; color: #fff;"><strong>${new SimpleDateFormat("dd MMMM yyyy").format(new Date())}</strong></p>
2929
<p style="font-size: 16px; color: #fff;">Alerts service for new ALA records listing potential invasive species</p>
@@ -46,7 +46,7 @@
4646
<td style="padding: 20px;background-color: white;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
4747
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;border-spacing: 0;border-collapse: collapse;">
4848
<tr>
49-
<td width="50%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
49+
<td width="46%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
5050
<a href="${query.baseUrlForUI}/occurrences/${oc.uuid}" style="color: #C44D34;text-decoration: none;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
5151
<strong>${i+1}. <em>${oc.scientificName ?: 'N/A'}</em></strong>
5252
</a>
@@ -77,20 +77,21 @@
7777
</g:if>
7878
</p>
7979
</td>
80-
<td width="25%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
80+
<td width="28%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
8181
<a href="https://www.google.com/maps/place/${oc.latLong}" target="_blank" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
82-
<img src="https://maps.googleapis.com/maps/api/staticmap?center=${oc.latLong}&markers=|${oc.latLong}&zoom=12&size=130x118&maptype=roadmap&key=${grailsApplication.config.getProperty('google.apikey')}" alt="Map Image" style="width: 130px;height: 118px;display: block;border: 0;line-height: 100%;border-radius: 6px;">
82+
<img src="https://maps.googleapis.com/maps/api/staticmap?center=${oc.latLong}&markers=|${oc.latLong}&zoom=12&size=150x150&maptype=roadmap&key=${grailsApplication.config.getProperty('google.apikey')}" alt="Map Image" style="width: 150px;height: 150px;display: block;border: 0;line-height: 100%;border-radius: 6px;">
8383
</a>
8484
</td>
85-
<td width="25%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
86-
<g:if test="${oc.thumbnailUrl || oc.smallImageUrl }">
85+
<td width="26%" valign="top" style="font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
86+
<g:set var="imageUrl" value="${oc.imageUrls?.get(0) ?: oc.thumbnailUrl ?: oc.smallImageUrl}" />
87+
<g:if test="${imageUrl}">
8788
<a href="${query.baseUrlForUI}/occurrences/${oc.uuid}">
88-
<img src="${oc.thumbnailUrl ?: oc.smallImageUrl}" alt="Species Image" style="width: 130px;vertical-align: top;max-width: 130px;width: 130px;height: 118px;border-radius: 6px;line-height: 100%;" />
89+
<img src="${imageUrl}${imageUrl.contains('?') ? '&thumbnailType=square_white' : ''}" alt="Species Image" height="150" width="150" style="width: 150px;vertical-align: top;max-width: 150px;width: 150px;height: 150px;border-radius: 6px;line-height: 100%;" />
8990
</a>
9091
</g:if>
9192
<g:else>
9293
<a href="${query.baseUrlForUI}/occurrences/${oc.uuid}">
93-
<img src="${grailsApplication.config.grails.serverURL}/assets/email/no-img-gray-bg.png" alt="Species Image" style="width: 130px;vertical-align: top;max-width: 130px;width: 130px;height: 118px;border-radius: 6px;line-height: 100%;" />
94+
<img src="${grailsApplication.config.grails.serverURL}/assets/email/no-image-available.png" alt="Species Image" height="150" width="150" style="width: 150px;vertical-align: top;max-width: 150px;width: 150px;height: 150px;border-radius: 6px;line-height: 100%;" />
9495
</a>
9596
</g:else>
9697
</td>
@@ -119,12 +120,14 @@
119120
&nbsp;<a href="https://csiro.au/"><img loading="lazy" src="${grailsApplication.config.grails.serverURL}/assets/email/CSIRO_Solid_RGB-150x150.png" alt="CSIRO logo" width="90" height="90"></a>&nbsp;
120121
&nbsp;<a href="https://www.gbif.org/en/"><img loading="lazy" src="${grailsApplication.config.grails.serverURL}/assets/email/GBIF_109px.png" alt="GBIF logo" width="171" height="90"></a>
121122
</p>
122-
<div style="margin-top: 25px;">You are receiving this email because you opted in to ALA alerts.
123+
<div style="margin-top: 25px;">
123124
<div>
124125
<p>Our mailing address is: </p>
125126
Atlas of Living Australia <br> GPO Box 1700<br> Canberra, ACT 2601<br>Australia
126127
</div>
127-
<br>
128+
<br/>
129+
You are receiving this email because you opted in to ALA alerts.
130+
<br/>
128131
Don't want to receive these emails? You can <a href="${unsubscribeOne}" style="color: #C44D34;">unsubscribe</a>.
129132
</div>
130133
</td>

0 commit comments

Comments
 (0)