Skip to content

Commit

Permalink
ics file update
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAppDev committed Jan 8, 2024
1 parent 33cc493 commit f31fae5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/assets/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"alternative_options": "Alternative Optionen zur Teilnahme",
"download_ics": ".ics-Kalenderdatei herunterladen",
"share_meeting": "Raum teilen",
"join_by_phone": "mit Telefoneinwahl beitreten"
"join_by_phone": "Mit Telefoneinwahl beitreten",
"location": "Videokonferenz, siehe Details im termin"
},
"presentation": {
"presentation": "Präsentation",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"alternative_options": "Alternative options to join",
"download_ics": "Download .ics calender file",
"share_meeting": "Share Room",
"join_by_phone": "join with telephone dial-up"
"join_by_phone": "Connect via telephone dial-up",
"location": "Video conference - Further details are provided below"
},
"presentation": {
"presentation": "Presentation",
Expand Down
8 changes: 5 additions & 3 deletions app/javascript/helpers/ICSDownloadHelper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const createICSWithoutHTML = (name, room_name, url, voice_bridge, voice_bridge_p
let description = `\n\n${t('room.meeting.invite_to_meeting', {name})}\n\n${t('room.meeting.join_by_url')}:\n${url}\n`;

if (typeof voice_bridge !== 'undefined' && typeof voice_bridge_phone_number !== 'undefined') {
description += `\n${t('or')} ${t('room.meeting.join_by_phone')}:\n${voice_bridge_phone_number},,${voice_bridge}`;
description += `\n${t('room.meeting.join_by_phone')}: ${voice_bridge_phone_number},,${voice_bridge}\nPIN: ${voice_bridge}`;
}

const date = new Date();
Expand All @@ -42,14 +42,15 @@ const createICSWithoutHTML = (name, room_name, url, voice_bridge, voice_bridge_p
url: url,
description: description,
title: room_name,
location: t('room.meeting.location')
};
}

const createICSWithHtml = (name, room_name, url, voice_bridge, voice_bridge_phone_number,t) => {
let phone_data = "";

if (typeof voice_bridge !== 'undefined' && typeof voice_bridge_phone_number !== 'undefined') {
phone_data = `<h6 style="padding-top: 0; padding-bottom: 0; font-weight: 500; vertical-align: baseline; font-size: 16px; line-height: 19.2px; margin: 0;" align="left">${t('or')} ${t('room.meeting.join_by_phone')}:</h6>
phone_data = `<h6 style="padding-top: 0; padding-bottom: 0; font-weight: 500; vertical-align: baseline; font-size: 16px; line-height: 19.2px; margin: 0;" align="left">${t('room.meeting.join_by_phone')}:</h6>
<p style="line-height: 24px; font-size: 16px; width: 100%; margin: 0;" align="left">${voice_bridge_phone_number},,${voice_bridge}</p>`;
}

Expand Down Expand Up @@ -134,7 +135,8 @@ const createICSWithHtml = (name, room_name, url, voice_bridge, voice_bridge_phon
start: [date.getFullYear(), date.getMonth() + 1, date.getDate(), 12, 0],
url: url,
htmlContent: HTML,
title: room_name
title: room_name,
location: t('room.meeting.location')
};
}

Expand Down

0 comments on commit f31fae5

Please sign in to comment.