Work on the links to the legacy and new launchers.

This commit is contained in:
Scott Idem
2024-09-08 23:28:34 -04:00
parent 5fcae3b047
commit bf5bdd4a3e
7 changed files with 76 additions and 11 deletions

View File

@@ -275,14 +275,29 @@ $: if ($lq__event_session_obj) {
<li>
<strong class="text-sm">Location/Room:</strong>
<!-- Minimum level access to see the link here is trusted. Administrators can see even if the show launcher link is disabled. -->
{#if $ae_loc.administrator_access || $ae_loc.trusted_access && $lq__event_obj?.mod_pres_mgmt_json?.show__launcher_link}
<!-- BEGIN: Legacy link -->
{#if $ae_loc.administrator_access || $ae_loc.authenticated_access && $events_loc.pres_mgmt.show__launcher_link_legacy}
<a
href="/events_pres_mgmt/launcher/{$lq__event_session_obj.event_id_random}"
data-sveltekit-preload-data="false"
href="/event/{$lq__event_session_obj?.event_id_random}/launcher/{$lq__event_session_obj?.event_location_id_random}"
class="text-blue-500 hover:text-blue-800 hover:underline"
title="Launcher: {$lq__event_session_obj?.event_location_name} {$lq__event_session_obj?.event_location_id_random}"
>
<span class="fas fa-paper-plane"></span>
{@html $lq__event_session_obj.event_location_name ? $lq__event_session_obj.event_location_name : ae_snip.html__not_set}
{@html $lq__event_session_obj?.event_location_name ? $lq__event_session_obj?.event_location_name : ae_snip.html__not_set}
</a>
{/if}
<!-- END: Legacy link -->
{#if $ae_loc.manager_access || $ae_loc.administrator_access && $events_loc.pres_mgmt.show__launcher_link}
<a
href="/events_pres_mgmt/launcher/{$lq__event_session_obj?.event_id_random}"
class="text-blue-500 hover:text-blue-800 hover:underline"
title="Launcher: {$lq__event_session_obj?.event_location_name} {$lq__event_session_obj?.event_location_id_random}"
>
<span class="fas fa-plane"></span>
<!-- {@html $lq__event_session_obj.event_location_name ? $lq__event_session_obj.event_location_name : ae_snip.html__not_set} -->
</a>
{:else}
{@html $lq__event_session_obj.event_location_name ? $lq__event_session_obj.event_location_name : ae_snip.html__not_set}