Skip to content

Commit

Permalink
Link email address in html instead of separate link
Browse files Browse the repository at this point in the history
Use mailto: anchor for email address, remove redundant "send email now"
link, remove unneeded line from translations.
  • Loading branch information
rowanthorpe committed Jul 26, 2017
1 parent c3cdf24 commit b292f23
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions code.gs
Expand Up @@ -183,7 +183,6 @@ var i18n = {
'version': 'εκδοχή',
'by': 'από τον', // τον=masculine,την=feminine (using the masculine, in one place, for now but may need more context in future)
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'στείλε email τώρα',
'Mobile phone': 'Κινητό',
'Work phone': 'Τηλέφωνο εργασίας',
'Home phone': 'Τηλέφωνο οικίας',
Expand All @@ -206,7 +205,6 @@ var i18n = {
'version': 'versión',
'by': 'por',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'enviar mail ahora',
'Mobile phone': 'Celular',
'Work phone': 'Teléfono del trabajo',
'Home phone': 'Teléfono del hogar',
Expand All @@ -229,7 +227,6 @@ var i18n = {
'version': 'versione',
'by': 'by',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'invia email ora',
'Mobile phone': 'Cellulare',
'Work phone': 'Telefono di lavoro',
'Home phone': 'Telefono di casa',
Expand All @@ -252,7 +249,6 @@ var i18n = {
'version': 'versi',
'by': 'oleh',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'kirim email sekarang',
'Mobile phone': 'Telp. selular',
'Work phone': 'Telp. kantor',
'Home phone': 'Telp. rumah',
Expand All @@ -275,7 +271,6 @@ var i18n = {
'version': 'Version',
'by': 'von',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'Jetzt eine E-Mail schicken',
'Mobile phone': 'Mobiltelefon',
'Work phone': 'Geschäftlich',
'Home phone': 'Privat',
Expand All @@ -298,7 +293,6 @@ var i18n = {
'version': 'wersja',
'by': 'od',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'Wyślij e-mail teraz',
'Mobile phone': 'Telefon komórkowy',
'Work phone': 'Telefon praca',
'Home phone': 'Telefon domowy',
Expand Down Expand Up @@ -665,7 +659,7 @@ var Contact = function (event, eventType) {
line.push(' (');
// Email address.
if (self.email !== '') {
line.push(self.email);
line.push('<a href="mailto:', self.email, '">', self.email, '</a>');
}
// Phone fields.
self.phoneFields.forEach(function (phoneField, i) {
Expand All @@ -681,10 +675,6 @@ var Contact = function (event, eventType) {
});
line.push(')');
}
// Mailto link.
if (self.email !== '') {
line.push(' <a href="mailto:', self.email, '">', _('send email now'), '</a>');
}
lines.push(line);
});
return lines.map(function (x) { return x.join(''); }).join('\n');
Expand Down

0 comments on commit b292f23

Please sign in to comment.