2013-12-15 06:42:32 +08:00
|
|
|
<div class="b-system-drop-down g-ui-user-select-none">
|
|
|
|
<div class="b-toolbar">
|
|
|
|
<div class="btn-toolbar">
|
2015-01-05 03:30:07 +08:00
|
|
|
<div class="accountPlace" data-bind="text: emailTitle()"></div>
|
2014-05-01 08:01:31 +08:00
|
|
|
<div class="btn-group pull-right dropdown colored-toggle" data-bind="registrateBootstrapDropdown: true, openDropdownTrigger: accountMenuDropdownTrigger">
|
2015-01-05 03:30:07 +08:00
|
|
|
<a id="top-system-dropdown-id" href="#" tabindex="-1" class="btn btn-ellipsis btn-block dropdown-toggle system-dropdown" data-toggle="dropdown">
|
2015-01-10 03:58:10 +08:00
|
|
|
<i data-bind="css: {'icon-user': !loading(), 'icon-spinner animated': loading()}"
|
|
|
|
></i> <span class="caret"></span>
|
2013-12-15 06:42:32 +08:00
|
|
|
</a>
|
2014-04-12 00:09:51 +08:00
|
|
|
<ul class="dropdown-menu g-ui-menu" tabindex="-1" role="menu" aria-labelledby="top-system-dropdown-id">
|
2014-12-18 04:53:46 +08:00
|
|
|
|
2013-12-15 06:42:32 +08:00
|
|
|
<!-- ko if: accounts().length -->
|
2014-12-18 04:53:46 +08:00
|
|
|
<!-- ko foreach: accounts -->
|
|
|
|
<li class="e-item" role="presentation">
|
|
|
|
<a class="e-link menuitem account-item" href="#" data-bind="click: $root.accountClick,
|
|
|
|
attr: {'href': changeAccountLink()}, css: {current: $root.accountEmail() === email}">
|
|
|
|
<b class="pull-right counter" data-bind="visible: 0 < count()">
|
|
|
|
<span data-bind="text: count, visible: 100 > count()"></span>
|
|
|
|
<span data-bind="visible: 99 < count()">99+</span>
|
|
|
|
</b>
|
|
|
|
<i class="icon-ok"></i>
|
|
|
|
<i class="icon-user"></i>
|
|
|
|
|
|
|
|
<span class="email-title" data-bind="text: email"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
<li class="divider" role="presentation"></li>
|
2013-12-15 06:42:32 +08:00
|
|
|
<!-- /ko -->
|
2014-12-18 04:53:46 +08:00
|
|
|
|
2014-05-16 23:57:50 +08:00
|
|
|
<!-- ko if: capaAdditionalAccounts -->
|
2014-04-12 00:09:51 +08:00
|
|
|
<li class="e-item" role="presentation">
|
|
|
|
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: addAccountClick">
|
2013-12-15 06:42:32 +08:00
|
|
|
<i class="icon-user-add"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_ADD_ACCOUNT"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
2014-04-12 00:09:51 +08:00
|
|
|
<li class="e-item" role="presentation">
|
|
|
|
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: settingsClick">
|
2013-12-15 06:42:32 +08:00
|
|
|
<i class="icon-cog"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_SETTINGS"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2014-04-29 23:31:49 +08:00
|
|
|
<li class="e-item" role="presentation">
|
|
|
|
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: settingsHelp">
|
|
|
|
<i class="icon-help"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_HELP"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2014-04-12 00:09:51 +08:00
|
|
|
<li class="divider" role="presentation"></li>
|
|
|
|
<li class="e-item" role="presentation">
|
|
|
|
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: logoutClick">
|
2013-12-15 06:42:32 +08:00
|
|
|
<i class="icon-power"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_LOGOUT"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2013-12-25 08:05:04 +08:00
|
|
|
|
2013-12-15 06:42:32 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-25 03:04:44 +08:00
|
|
|
</div>
|