143 lines
7.2 KiB
HTML
143 lines
7.2 KiB
HTML
<!-- Buttons to add to the header. -->
|
|
<core-navbar-buttons slot="end">
|
|
<ion-button fill="clear" (click)="openModuleSummary()" aria-haspopup="true" [attr.aria-label]="'core.info' | translate">
|
|
<ion-icon name="fas-info-circle" slot="icon-only" aria-hidden="true"></ion-icon>
|
|
</ion-button>
|
|
</core-navbar-buttons>
|
|
|
|
<!-- Content. -->
|
|
<core-loading [hideUntil]="!showLoading">
|
|
|
|
<!-- Activity info. -->
|
|
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
|
|
[courseId]="courseId" (completionChanged)="onCompletionChange()">
|
|
</core-course-module-info>
|
|
|
|
<core-group-selector [groupInfo]="groupInfo" [(selected)]="groupId" (selectedChange)="groupChanged()"
|
|
[multipleGroupsMessage]="'addon.mod_bigbluebuttonbn.view_groups_selection_warning' | translate"></core-group-selector>
|
|
|
|
<ng-container *ngIf="meetingInfo && showRoom">
|
|
<ion-item class="ion-text-wrap" *ngIf="meetingInfo.openingtime">
|
|
<ion-label>
|
|
<h3>{{ 'addon.mod_bigbluebuttonbn.mod_form_field_openingtime' | translate }}</h3>
|
|
</ion-label>
|
|
<p slot="end">{{ meetingInfo.openingtime * 1000 | coreFormatDate }}</p>
|
|
</ion-item>
|
|
<ion-item class="ion-text-wrap" *ngIf="meetingInfo.closingtime">
|
|
<ion-label>
|
|
<h3>{{ 'addon.mod_bigbluebuttonbn.mod_form_field_closingtime' | translate }}</h3>
|
|
</ion-label>
|
|
<p slot="end">{{ meetingInfo.closingtime * 1000 | coreFormatDate }}</p>
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap" *ngIf="meetingInfo.canjoin && !meetingInfo.statusrunning">
|
|
<ion-label>
|
|
<p>{{ 'addon.mod_bigbluebuttonbn.view_message_conference_room_ready' | translate }}</p>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<ng-container *ngIf="meetingInfo.statusrunning">
|
|
<ion-item class="ion-text-wrap">
|
|
<ion-label>
|
|
<p>{{ 'addon.mod_bigbluebuttonbn.view_message_conference_in_progress' | translate }}</p>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap" *ngIf="meetingInfo.startedat">
|
|
<ion-label>
|
|
<h3>{{ 'addon.mod_bigbluebuttonbn.view_message_session_started_at' | translate }}</h3>
|
|
</ion-label>
|
|
<p slot="end">{{ meetingInfo.startedat * 1000 | coreFormatDate: "strftimetime" }}</p>
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap">
|
|
<ion-label>
|
|
<h3 *ngIf="meetingInfo.moderatorplural">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_message_moderators' | translate }}
|
|
</h3>
|
|
<h3 *ngIf="!meetingInfo.moderatorplural">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_message_moderator' | translate }}
|
|
</h3>
|
|
</ion-label>
|
|
<p slot="end">{{ meetingInfo.moderatorcount }}</p>
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap">
|
|
<ion-label>
|
|
<h3 *ngIf="meetingInfo.participantplural">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_message_viewers' | translate }}
|
|
</h3>
|
|
<h3 *ngIf="!meetingInfo.participantplural">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_message_viewer' | translate }}
|
|
</h3>
|
|
</ion-label>
|
|
<p slot="end">{{ meetingInfo.participantcount }}</p>
|
|
</ion-item>
|
|
</ng-container>
|
|
|
|
<ion-card *ngIf="!meetingInfo.canjoin" class="core-warning-card">
|
|
<ion-item class="ion-text-wrap">
|
|
<ion-icon name="fas-exclamation-triangle" slot="start" aria-hidden="true"></ion-icon>
|
|
<ion-label>{{ meetingInfo.statusmessage }}</ion-label>
|
|
</ion-item>
|
|
</ion-card>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="showRecordings && recordings">
|
|
<ion-item class="ion-text-wrap">
|
|
<ion-label>
|
|
<h2>{{ 'addon.mod_bigbluebuttonbn.view_section_title_recordings' | translate }}</h2>
|
|
</ion-label>
|
|
</ion-item>
|
|
<ng-container *ngFor="let recording of recordings">
|
|
<ion-item *ngIf="recording.url" button class="addon-mod_bbb-recording-title" [attr.aria-expanded]="recording.expanded"
|
|
(click)="toggle(recording)" [attr.aria-label]="(recording.expanded ? 'core.collapse' : 'core.expand') | translate"
|
|
detail="false">
|
|
<ion-icon name="fas-chevron-right" flip-rtl slot="start" aria-hidden="true" class="expandable-status-icon"
|
|
[class.expandable-status-icon-expanded]="recording.expanded">
|
|
</ion-icon>
|
|
<ion-label>
|
|
<p>{{ recording.type }}</p>
|
|
<p>{{ recording.name }}</p>
|
|
</ion-label>
|
|
<ion-button slot="end" fill="clear" (click)="playRecording($event, recording)"
|
|
[attr.aria-label]="'addon.mod_bigbluebuttonbn.view_recording_list_action_play' | translate">
|
|
<ion-icon name="fas-play-circle" slot="icon-only" aria-hidden="true"></ion-icon>
|
|
</ion-button>
|
|
</ion-item>
|
|
<div [hidden]="!recording.expanded" class="addon-mod_bbb-recording-details">
|
|
<ion-item *ngFor="let data of recording.details" class="ion-text-wrap">
|
|
<ion-label>
|
|
<h2>{{ data.label }}</h2>
|
|
<p *ngIf="data.allowHTML">
|
|
<core-format-text [text]="data.value" [component]="component" [componentId]="module.id" contextLevel="module"
|
|
[contextInstanceId]="module.id" [courseId]="module.course"></core-format-text>
|
|
</p>
|
|
<p *ngIf="!data.allowHTML">{{ data.value }}</p>
|
|
</ion-label>
|
|
</ion-item>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<core-empty-box *ngIf="recordings && !recordings.length" icon="far-file-video"
|
|
[message]="'addon.mod_bigbluebuttonbn.view_message_norecordings' | translate">
|
|
</core-empty-box>
|
|
</ng-container>
|
|
|
|
<div collapsible-footer *ngIf="!showLoading" slot="fixed">
|
|
<div class="list-item-limited-width adaptable-buttons-row"
|
|
*ngIf="meetingInfo && showRoom && (meetingInfo.canjoin || (meetingInfo.statusrunning && meetingInfo.ismoderator))">
|
|
<ion-button *ngIf="meetingInfo.statusrunning && meetingInfo.ismoderator" fill="outline" class="ion-margin ion-text-wrap"
|
|
expand="block" (click)="endMeeting()">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_conference_action_end' | translate }}
|
|
</ion-button>
|
|
<ion-button *ngIf="meetingInfo.canjoin" class="ion-margin ion-text-wrap" expand="block" (click)="joinRoom()">
|
|
{{ 'addon.mod_bigbluebuttonbn.view_conference_action_join' | translate }}
|
|
</ion-button>
|
|
</div>
|
|
|
|
<core-course-module-navigation [courseId]="courseId" [currentModuleId]="module.id">
|
|
</core-course-module-navigation>
|
|
</div>
|
|
</core-loading>
|