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">
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<a class="btn btn-narrow" data-bind="click: logoutClick">
|
|
|
|
<i class="icon-power"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<a class="btn btn-ellipsis btn-block dropdown-toggle system-dropdown" data-placement="left" data-toggle="dropdown"
|
|
|
|
data-tooltip-class="tooltip-big" data-bind="tooltip2: emailTitle">
|
|
|
|
<i data-bind="css: {'icon-user': !loading(), 'icon-spinner animated': loading()}"></i>
|
|
|
|
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu g-ui-menu">
|
|
|
|
<!-- ko if: accounts().length -->
|
|
|
|
<!-- ko foreach: accounts -->
|
|
|
|
<li class="e-item">
|
|
|
|
<a class="e-link" data-bind="click: $root.accountClick, attr: {'href': changeAccountLink() }">
|
|
|
|
<i class="icon-ok" data-bind="visible: $root.accountEmail() === email"></i>
|
|
|
|
<i class="icon-user" data-bind="visible: $root.accountEmail() !== email"></i>
|
|
|
|
|
|
|
|
<span data-bind="text: email"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
<li class="divider"></li>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: allowAddAccount -->
|
|
|
|
<li class="e-item">
|
|
|
|
<a class="e-link" data-bind="click: addAccountClick">
|
|
|
|
<i class="icon-user-add"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_ADD_ACCOUNT"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
<li class="e-item">
|
|
|
|
<a class="e-link" data-bind="click: settingsClick">
|
|
|
|
<i class="icon-cog"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_SETTINGS"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!--
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li class="e-item">
|
|
|
|
<a class="e-link" data-bind="click: logoutClick">
|
|
|
|
<i class="icon-power"></i>
|
|
|
|
|
|
|
|
<span class="i18n" data-i18n-text="TOP_TOOLBAR/BUTTON_LOGOUT"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
-->
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-25 03:04:44 +08:00
|
|
|
</div>
|