The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/app/ui/client/components/popupList.html

46 lines
1.2 KiB

8 years ago
<template name="popupList">
8 years ago
<div class="rc-popup-list">
8 years ago
{{> Template.dynamic config }}
</div>
</template>
<template name="popupList_default">
8 years ago
<ul class="rc-popup-list__list">
{{#if loading}}
{{> popupList_loading }}
8 years ago
{{else}}
{{#each item in items}}
{{> Template.dynamic config item data=data}}
{{else}}
{{> Template.dynamic template=noMatchTemplate}}
{{/each}}
{{/if}}
8 years ago
</ul>
</template>
<template name="popupList_item_default">
<li class="rc-popup-list__item">
8 years ago
<span class="rc-popup-list__item-image">
8 years ago
{{>avatar username=item.username}}
8 years ago
</span>
{{#if showRealNames}}
<span class="rc-popup-list__item-name">{{item.name}} ({{{modifier item.username}}})</span>
{{else}}
<span class="rc-popup-list__item-name">{{{modifier item.username}}}</span>
{{/if}}
8 years ago
</li>
8 years ago
</template>
<template name="popupList_loading">
<p>{{_ "Loading"}}.</p>
</template>
<template name="popupList_item_channel">
<li class="rc-popup-list__item">
<span class="rc-popup-list__item-image">
{{>avatar username=item.name roomIcon=true}}
</span>
<span class="rc-popup-list__item-name">{{{modifier item.name}}}</span>
</li>
</template>