Skip to content

Commit

Permalink
Format welcome message for moderators with clickable link for https link
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed Sep 12, 2024
1 parent a3fb409 commit ba696d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions web/b3desk/templates/meeting/signin_links.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{{ moderator_message }}
{{ moderator_message }}<br />

{{ moderator_link_introduction }} :
{{ moderator_link_introduction }} : <a href="{{ moderator_signin_url }}" target="_blank">{{ moderator_signin_url }}</a><br />

{{ moderator_signin_url }}

{{ attendee_link_introduction }} :

{{ attendee_signin_url }}
{{ attendee_link_introduction }} : <a href="{{ attendee_signin_url }}" target="_blank">{{ attendee_signin_url }}</a>
8 changes: 4 additions & 4 deletions web/tests/meeting/test_meeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def test_create_no_file(client_app, meeting, mocker, bbb_response):
"logoutURL": "https://log.out",
"record": "true",
"duration": "60",
"moderatorOnlyMessage": f"Welcome moderators!\n\n Lien Modérateur :\n\nhttp://localhost:5000/meeting/signin/moderateur/1/creator/1/hash/{meeting.get_hash(Role.moderator)}\n\n Lien Participant :\n\nhttp://localhost:5000/meeting/signin/invite/1/creator/1/hash/{meeting.get_hash(Role.attendee)}",
"moderatorOnlyMessage": f'Welcome moderators!<br />\n\n Lien Modérateur  : <a href="http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}" target="_blank">http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}</a><br />\n\n Lien Participant  : <a href="http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}" target="_blank">http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}</a>',
"autoStartRecording": "false",
"allowStartStopRecording": "true",
"webcamsOnlyForModerator": "false",
Expand Down Expand Up @@ -393,7 +393,7 @@ def test_create_with_only_a_default_file(
"logoutURL": "https://log.out",
"record": "true",
"duration": "60",
"moderatorOnlyMessage": f"Welcome moderators!\n\n Lien Modérateur :\n\nhttp://localhost:5000/meeting/signin/moderateur/1/creator/1/hash/{meeting.get_hash(Role.moderator)}\n\n Lien Participant :\n\nhttp://localhost:5000/meeting/signin/invite/1/creator/1/hash/{meeting.get_hash(Role.attendee)}",
"moderatorOnlyMessage": f'Welcome moderators!<br />\n\n Lien Modérateur  : <a href="http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}" target="_blank">http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}</a><br />\n\n Lien Participant  : <a href="http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}" target="_blank">http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}</a>',
"autoStartRecording": "false",
"allowStartStopRecording": "true",
"webcamsOnlyForModerator": "false",
Expand Down Expand Up @@ -486,7 +486,7 @@ def test_create_with_files(
"logoutURL": "https://log.out",
"record": "true",
"duration": "60",
"moderatorOnlyMessage": f"Welcome moderators!\n\n Lien Modérateur :\n\nhttp://localhost:5000/meeting/signin/moderateur/1/creator/1/hash/{meeting.get_hash(Role.moderator)}\n\n Lien Participant :\n\nhttp://localhost:5000/meeting/signin/invite/1/creator/1/hash/{meeting.get_hash(Role.attendee)}",
"moderatorOnlyMessage": f'Welcome moderators!<br />\n\n Lien Modérateur  : <a href="http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}" target="_blank">http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}</a><br />\n\n Lien Participant  : <a href="http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}" target="_blank">http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}</a>',
"autoStartRecording": "false",
"allowStartStopRecording": "true",
"webcamsOnlyForModerator": "false",
Expand Down Expand Up @@ -567,7 +567,7 @@ def test_create_quick_meeting(client_app, monkeypatch, user, mocker, bbb_respons
"meetingKeepEvents": "true",
"meta_analytics-callback-url": "https://bbb-analytics-staging.osc-fr1.scalingo.io/v1/post_events",
"meta_academy": "domain.tld",
"moderatorOnlyMessage": f"Bienvenue aux modérateurs. Pour inviter quelqu'un à ce séminaire, envoyez-lui l'un de ces liens :\n\n Lien Modérateur :\n\nhttp://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}\n\n Lien Participant :\n\nhttp://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}",
"moderatorOnlyMessage": f'Bienvenue aux modérateurs. Pour inviter quelqu\'un à ce séminaire, envoyez-lui l\'un de ces liens :<br />\n\n Lien Modérateur  : <a href="http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}" target="_blank">http://localhost:5000/meeting/signin/moderateur/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.moderator)}</a><br />\n\n Lien Participant  : <a href="http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}" target="_blank">http://localhost:5000/meeting/signin/invite/{meeting.fake_id}/creator/1/hash/{meeting.get_hash(Role.attendee)}</a>',
"guestPolicy": "ALWAYS_ACCEPT",
"checksum": mock.ANY,
}
Expand Down

0 comments on commit ba696d3

Please sign in to comment.