bigbluebutton-Github/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.html

115 lines
4.2 KiB
HTML
Raw Normal View History

2014-06-24 03:51:54 +08:00
<template name="whiteboard">
2016-02-23 07:24:03 +08:00
<div id="{{id}}" class="component">
{{#if getCurrentSlide}}
{{>slide}}
{{forceSlideShow}}
{{else}}
{{clearSlide}}
{{/if}}
<div id="whiteboard-container" class="{{whiteboardSize}}">
2015-05-19 23:35:12 +08:00
<div id="whiteboard-paper">
</div>
2015-11-19 02:05:55 +08:00
<!-- TODO: Move this to the whiteboardControls -->
<div class="FABContainer {{#unless hasNoPresentation}}noPresentation{{/unless}}">
<button type="submit" class="FABTriggerButton">
<i class="ion-android-hand"></i>
</button>
{{#each emojiIcons}}
<button type="submit" value={{name}} class="{{name}}EmojiButton {{#if equals getCurrentUserEmojiStatus name}}activeEmojiButton{{else}}inactiveEmojiButton{{/if}}">
{{> icon name=icon size="50"}}
</button>
{{/each}}
</div>
{{#if isMobile}}
{{> makeButton btn_class="soaringButton fullscreenButton whiteboardFullscreenButton" i_class="ion-arrow-expand"}}
{{/if}}
</div>
{{#if isCurrentUserPresenter}}
{{> whiteboardControls}}
{{/if}}
{{#if isPollStarted}}
{{> polling}}
{{/if}}
2015-05-19 23:35:12 +08:00
</div>
2014-06-24 03:51:54 +08:00
</template>
2015-11-19 02:05:55 +08:00
<template name="whiteboardControls">
<div id="whiteboard-controls">
<div class="whiteboard-buttons-left">
<!-- TODO: Adjust the presenter uploader for mobile views on iOS devices
you cant upload PDFs, only images from camera/gallery -->
{{#unless isMobile}}
{{> presenterUploaderControl}}
{{/unless}}
2015-11-19 02:05:55 +08:00
</div>
<div class="whiteboard-buttons-right">
</div>
2015-11-19 02:05:55 +08:00
<div class="whiteboard-buttons-center">
{{#if isCurrentUserPresenter}}
<div class="whiteboard-buttons-slide">
{{> makeButton btn_class="prev" i_class="ion-arrow-left-a" rel="tooltip" data_placement="top" title="Previous"}}
<span class="current">
{{presentationProgress}}
</span>
{{> makeButton btn_class="next" i_class="ion-arrow-right-a" rel="tooltip" data_placement="top" title="Next"}}
</div>
{{/if}}
</div>
</div>
</template>
2015-11-19 02:05:55 +08:00
<template name="presenterUploaderControl">
{{#if isCurrentUserPresenter}}
2015-11-19 02:05:55 +08:00
<div class="presenter-uploader-control {{#if isOpen}}is-open{{/if}}">
<div class="presenter-uploader-container">
<ul class="presenter-uploader-file-list">
{{#each files}}
{{> presenterUploaderControlFileListItem}}
{{/each}}
{{#each presentations}}
{{> presenterUploaderControlPresentationListItem}}
{{/each}}
2015-11-19 02:05:55 +08:00
</ul>
<div class="presenter-uploader-dropzone" data-dropzone>
<input type="file" class="presenter-uploader-dropzone-fileinput" multiple />
2015-11-19 02:05:55 +08:00
<i class="presenter-uploader-dropzone-icon ion-archive"></i>
<span class="presenter-uploader-dropzone-label">Drop files here <br/>or click to upload</span>
</div>
{{> makeButton btn_class="presenter-uploader-control-btn js-close" i_class="ion-ios-close-outline"}}
2015-11-19 02:05:55 +08:00
<div class="presenter-uploader-tip">
UPLOAD ANY OFFICE DOCUMENT OR PORTABLE DOCUMENT FORMAT (PDF) FILE.
<br/>
FOR BEST RESULTS UPLOAD PDF.
2015-11-19 02:05:55 +08:00
</div>
</div>
{{> makeButton btn_class="presenter-uploader-control-btn js-open" i_class="ion-ios-upload-outline"}}
2015-11-19 02:05:55 +08:00
</div>
{{/if}}
</template>
<template name="presenterUploaderControlFileListItem">
<li class="presenter-uploader-file-item is-uploading">
<span class="presenter-uploader-file-item-name">
{{name}}
</span>
<span class="presenter-uploader-file-item-progress">
{{percUploaded}}%
</span>
</li>
</template>
<template name="presenterUploaderControlPresentationListItem">
<li class="presenter-uploader-file-item {{#if current}}current{{/if}}">
<span class="presenter-uploader-file-item-name" data-action-show>
{{name}}
</span>
<span class="presenter-uploader-file-item-actions">
{{#unless current}}
<i class="ion-ios-eye-outline" data-action-show></i>
{{/unless}}
<i class="ion-ios-trash-outline" data-action-delete></i>
</span>
</li>
</template>