bigbluebutton-Github/labs/meteor-client/client/main.html
2014-06-17 08:07:36 -07:00

63 lines
3.0 KiB
HTML
Executable File

<template name="main">
<head>
<title>BigBlueButton Meteor</title>
</head>
<body>
<div id="main" class="row-fluid">
{{#if getInSession "display_usersList"}}
{{> usersList}}
{{/if}}
{{#if getInSession "display_chat"}}
{{> chatbar}}
{{/if}}
{{#if getInSession "display_whiteboard"}}
{{> whiteboard}}
{{/if}}
</div>
</body>
</template>
<template name="header">
{{#if getInSession "display_navbar"}}
<div class="navbar navbar-default navbar-static-top" role="navigation">
{{#with getCurrentUser}}
{{#if getInSession "display_usersList"}}
{{> makeButton id=user.externUserId btn_class="navbarIconToggleActive usersListIcon navbar-brand" i_class="user" _id=_id}}
{{else}}
{{> makeButton id=user.externUserId btn_class="usersListIcon navbar-brand" i_class="user" _id=_id}}
{{/if}}
{{#if getInSession "display_chat"}}
{{> makeButton id=user.externUserId btn_class="navbarIconToggleActive chatBarIcon navbar-brand" i_class="comment" _id=_id}}
{{else}}
{{> makeButton id=user.externUserId btn_class="chatBarIcon navbar-brand" i_class="comment" _id=_id}}
{{/if}}
{{#if user.sharingVideo}}
{{> makeButton id=user.externUserId btn_class="navbarIconToggleActive videoFeedIcon navbar-brand" i_class="facetime-video" sharingVideo=true _id=_id}}
{{else}}
{{> makeButton id=user.externUserId btn_class="videoFeedIcon navbar-brand" i_class="stop" sharingVideo=false _id=_id}}
{{/if}}
{{#if user.sharingAudio}}
{{> makeButton id=user.externUserId btn_class="navbarIconToggleActive audioFeedIcon navbar-brand" i_class="volume-up" sharingAudio=true _id=_id}}
{{else}}
{{> makeButton id=user.externUserId btn_class="audioFeedIcon navbar-brand" i_class="volume-off" sharingAudio=false _id=_id}}
{{/if}}
{{> makeButton id="" btn_class="hideNavbarIcon pull-right navbar-brand" i_class="chevron-up"}}
{{> makeButton id="user.externUserId" btn_class="signOutIcon pull-right navbar-brand" i_class="log-out"}}
{{> makeButton id="user.externUserId" btn_class="settingsIcon pull-right navbar-brand" i_class="cog"}}
{{/with}}
</div>
{{else}}
<!-- User wants to hide navbar. The button for bringing the navbar back needs to still be available. Perhaps it should appear/disappear in the future on hover? Something to add later. -->
{{> makeButton id="" btn_class="hideNavbarIcon pull-right navbar-brand" i_class="chevron-down"}}
{{/if}}
</template>
<template name="makeButton">
<button type="submit" id="{{id}}" class="{{btn_class}} btn" {{isDisabled}}>
<i class="glyphicon glyphicon-{{i_class}}"></i>
</button>
</template>