mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-02 13:42:20 +00:00
Improve folder subscription widget
This commit is contained in:
@@ -5,41 +5,44 @@
|
||||
xmlns:var="http://www.skyrix.com/od/binding"
|
||||
xmlns:const="http://www.skyrix.com/od/constant"
|
||||
xmlns:uix="OGo:uix"><var:string var:value="doctype" const:escapeHTML="NO" />
|
||||
<ul>
|
||||
<li class="title"><var:string label:value="Subscribe"/></li>
|
||||
<li class="search">
|
||||
<input type="text" label:placeholder="Search"
|
||||
data-ng-model="searchString"
|
||||
data-sg-user-typeahead="sg-user-typeahead" />
|
||||
</li>
|
||||
<li class="item"
|
||||
data-ng-repeat="user in users">
|
||||
<a data-ng-click="selectUser($index)"
|
||||
data-ng-mouseenter="selectActive($index)">
|
||||
<span data-bind-html-unsafe="user.$shortFormat() | typeaheadHighlight:query"><!-- user --></span>
|
||||
<i class="icon right"
|
||||
data-ng-class="{'icon-arrow-right': user.uid != selectedUser.uid, 'icon-arrow-down': user.uid == selectedUser.uid}"><!-- arrow --></i>
|
||||
</a>
|
||||
<ul class="subitems"
|
||||
data-ng-if="user.uid == selectedUser.uid">
|
||||
<li class="item"
|
||||
data-ng-show="user.$$folders.length == 0">
|
||||
<a class="disabled">
|
||||
<i class="icon icon-notification"><!-- no subscription --></i>
|
||||
<var:string label:value="No possible subscription"/>
|
||||
</a>
|
||||
</li>
|
||||
<li class="item"
|
||||
data-ng-repeat="folder in user.$$folders">
|
||||
<a>
|
||||
<i class="icon"
|
||||
data-ng-class="{'icon-address-book': folder.type == 'Contact'}"><!-- type --></i>
|
||||
<span data-ng-bind="folder.displayName"><!-- folder --></span>
|
||||
<button class="button tiny right"
|
||||
data-ng-click="selectFolder(folder)">Subscribe</button>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="joyride-nub left"><!-- dropdown nub --></span>
|
||||
<div class="joyride-content-wrapper">
|
||||
<ul>
|
||||
<li class="title"><var:string label:value="Subscribe"/></li>
|
||||
<li class="search">
|
||||
<input type="text" label:placeholder="Search"
|
||||
data-ng-model="searchString"
|
||||
data-sg-user-typeahead="sg-user-typeahead" />
|
||||
</li>
|
||||
<li class="item"
|
||||
data-ng-repeat="user in users">
|
||||
<a data-ng-click="selectUser($index)"
|
||||
data-ng-mouseenter="selectActive($index)">
|
||||
<span data-bind-html-unsafe="user.$shortFormat() | typeaheadHighlight:query"><!-- user --></span>
|
||||
<i class="icon right"
|
||||
data-ng-class="{'icon-arrow-right': user.uid != selectedUser.uid, 'icon-arrow-down': user.uid == selectedUser.uid}"><!-- arrow --></i>
|
||||
</a>
|
||||
<ul class="subitems"
|
||||
data-ng-if="user.uid == selectedUser.uid">
|
||||
<li class="item"
|
||||
data-ng-show="user.$$folders.length == 0">
|
||||
<a class="disabled">
|
||||
<i class="icon icon-notification"><!-- no subscription --></i>
|
||||
<var:string label:value="No possible subscription"/>
|
||||
</a>
|
||||
</li>
|
||||
<li class="item"
|
||||
data-ng-repeat="folder in user.$$folders">
|
||||
<a>
|
||||
<i class="icon"
|
||||
data-ng-class="{'icon-address-book': folder.type == 'Contact'}"><!-- type --></i>
|
||||
<span data-ng-bind="folder.displayName"><!-- folder --></span>
|
||||
<button class="button tiny right"
|
||||
data-ng-click="selectFolder(folder)">Subscribe</button>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</container>
|
||||
|
||||
Reference in New Issue
Block a user