|
12 | 12 | <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;">
|
13 | 13 | <tr>
|
14 | 14 | <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;"> |
16 | 16 | <!-- Logo -->
|
17 | 17 | <tr>
|
18 | 18 | <td align="center" style="padding: 20px; background-color: #fff;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
|
|
23 | 23 | </tr>
|
24 | 24 | <!-- Header -->
|
25 | 25 | <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"> |
27 | 27 | <h1 style="font-size: 24px; color: #fff;">Biosecurity Alerts</h1>
|
28 | 28 | <p style="font-size: 16px; color: #fff;"><strong>${new SimpleDateFormat("dd MMMM yyyy").format(new Date())}</strong></p>
|
29 | 29 | <p style="font-size: 16px; color: #fff;">Alerts service for new ALA records listing potential invasive species</p>
|
|
46 | 46 | <td style="padding: 20px;background-color: white;font-family: 'Arial', sans-serif;font-size: 16px;line-height: 1.5;">
|
47 | 47 | <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;">
|
48 | 48 | <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;"> |
50 | 50 | <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;">
|
51 | 51 | <strong>${i+1}. <em>${oc.scientificName ?: 'N/A'}</em></strong>
|
52 | 52 | </a>
|
|
77 | 77 | </g:if>
|
78 | 78 | </p>
|
79 | 79 | </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;"> |
81 | 81 | <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;"> |
83 | 83 | </a>
|
84 | 84 | </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}"> |
87 | 88 | <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%;" /> |
89 | 90 | </a>
|
90 | 91 | </g:if>
|
91 | 92 | <g:else>
|
92 | 93 | <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%;" /> |
94 | 95 | </a>
|
95 | 96 | </g:else>
|
96 | 97 | </td>
|
|
119 | 120 | <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>
|
120 | 121 | <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>
|
121 | 122 | </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;"> |
123 | 124 | <div>
|
124 | 125 | <p>Our mailing address is: </p>
|
125 | 126 | Atlas of Living Australia <br> GPO Box 1700<br> Canberra, ACT 2601<br>Australia
|
126 | 127 | </div>
|
127 |
| - <br> |
| 128 | + <br/> |
| 129 | + You are receiving this email because you opted in to ALA alerts. |
| 130 | + <br/> |
128 | 131 | Don't want to receive these emails? You can <a href="${unsubscribeOne}" style="color: #C44D34;">unsubscribe</a>.
|
129 | 132 | </div>
|
130 | 133 | </td>
|
|
0 commit comments