2014-06-07 06:19:09 +08:00
|
|
|
<template name="userItem">
|
2014-06-24 03:54:17 +08:00
|
|
|
{{>usernameEntry}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> handRaiseStatus}}
|
|
|
|
{{> displayOwnControls}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{> displayStandardUserControls}}
|
|
|
|
</template>
|
2014-06-12 00:11:07 +08:00
|
|
|
|
2014-06-24 03:54:17 +08:00
|
|
|
<!-- ####################################################################################### -->
|
|
|
|
<template name="usernameEntry"> <!-- A template now because more information be added/styled -->
|
2014-06-27 21:59:31 +08:00
|
|
|
<td><span>
|
|
|
|
{{#if isCurrentUser userId}}
|
|
|
|
<strong>{{user.name}} (you)</strong>
|
|
|
|
{{else}}
|
|
|
|
{{user.name}}
|
|
|
|
{{/if}}
|
|
|
|
</span></td>
|
2014-06-24 03:54:17 +08:00
|
|
|
</template>
|
|
|
|
<!-- ####################################################################################### -->
|
|
|
|
<template name="handRaiseStatus">
|
|
|
|
<td>
|
|
|
|
{{#if user.handRaised}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="raiseHand btn btn-default" i_class="hand-up" _id=_id isDisabled="disabled"}}
|
2014-07-25 00:12:27 +08:00
|
|
|
<!-- {{else}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="raiseHand btn btn-default" i_class="hand-up" _id=_id}} -->
|
2014-06-24 03:54:17 +08:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</template>
|
2014-06-17 01:47:16 +08:00
|
|
|
<!-- ####################################################################################### -->
|
|
|
|
<template name="displayStandardUserControls">
|
2014-06-17 03:11:22 +08:00
|
|
|
<td>
|
2014-06-17 01:47:16 +08:00
|
|
|
{{#if user.presenter}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="setPresenter btn btn-primary" i_class="picture" _id=_id isDisabled="disabled" isPresenter=true}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{else}}
|
2014-07-31 04:24:53 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="setPresenter btn btn-primary" i_class="picture" _id=_id isPresenter=false rel="tooltip" data_placement="top" title="Set Presenter"}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{/if}}
|
2014-06-17 03:11:22 +08:00
|
|
|
</td>
|
2014-07-31 04:24:53 +08:00
|
|
|
<td>{{> makeButton id=userId btn_class="kickUser btn btn-primary" i_class="remove-circle" _id=_id rel="tooltip" data_placement="right" title="Kick User"}}</td>
|
2014-06-17 01:47:16 +08:00
|
|
|
</template>
|
|
|
|
<!-- ####################################################################################### -->
|
|
|
|
|
|
|
|
<template name="displayOwnControls">
|
2014-07-29 01:43:26 +08:00
|
|
|
<!-- toggles for own user's mic and cam-->
|
2014-06-17 03:11:22 +08:00
|
|
|
<td>
|
2014-07-29 01:43:26 +08:00
|
|
|
{{#if isUserSharingVideo user}}
|
|
|
|
{{> makeButton id=user.externUserId btn_class="disableCam btn btn-default" i_class="facetime-video" _id=_id isDisabled="disabled"}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{else}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="enableCam btn btn-default" i_class="stop" _id=_id isDisabled="disabled"}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{/if}}
|
2014-06-17 03:11:22 +08:00
|
|
|
</td>
|
2014-07-29 01:43:26 +08:00
|
|
|
|
|
|
|
<!-- Should use much more noticeable icons than just bootstrap's volume-up & volume-down to differentiate talking but it is good for now -->
|
2014-06-17 03:11:22 +08:00
|
|
|
<td>
|
2014-07-29 01:43:26 +08:00
|
|
|
{{#if isUserSharingAudio user}}
|
|
|
|
{{#if isUserTalking user}}
|
|
|
|
{{> makeButton id=user.externUserId btn_class="btn btn-default" i_class="volume-up" sharingAudio=true _id=_id isDisabled="disabled"}}
|
|
|
|
{{else}}
|
|
|
|
{{> makeButton id=user.externUserId btn_class="btn btn-default" i_class="volume-down" sharingAudio=true _id=_id isDisabled="disabled"}}
|
|
|
|
{{/if}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{else}}
|
2014-07-29 01:43:26 +08:00
|
|
|
{{> makeButton id=user.externUserId btn_class="btn btn-default" i_class="volume-off" sharingAudio=false _id=_id isDisabled="disabled"}}
|
2014-06-17 01:47:16 +08:00
|
|
|
{{/if}}
|
2014-06-17 03:11:22 +08:00
|
|
|
</td>
|
2014-06-23 21:21:03 +08:00
|
|
|
</template>
|