|
|
|
<div class="tg_page_head">
|
|
|
|
<div class="navbar navbar-static-top navbar-inverse" role="navigation" ng-class="{navbar_peer_not_selected: !curDialog.peer, navbar_offline: offline, navbar_history_select: historyState.selectActions}">
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<div class="navbar-header">
|
|
|
|
<a class="navbar-brand" href="{{isLoggedIn ? '#/im' : '#/'}}"><span class="tg_head_logo"></span></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="navbar-menu" ng-switch="offline">
|
|
|
|
|
|
|
|
<ul ng-switch-when="true" class="nav navbar-nav navbar-offline">
|
|
|
|
<li ng-show="!offlineConnecting"><span class="navbar-offline-text"><my-i18n msgid="head_waiting_for_network"></my-i18n><span my-loading-dots></span></span></li>
|
|
|
|
<li ng-show="!offlineConnecting"><a href="" ng-click="retryOnline()" my-i18n="head_retry"></a></li>
|
|
|
|
<li ng-show="offlineConnecting"><span class="navbar-offline-text"><my-i18n msgid="head_connecting"></my-i18n><span my-loading-dots></span></span></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul ng-switch-default class="nav navbar-nav navbar-right">
|
|
|
|
<li ng-if="isLoggedIn && !isEmpty.contacts"><a href="" ng-click="openContacts()" my-i18n="head_contacts"></a></li>
|
|
|
|
<li ng-if="isLoggedIn"><a href="" ng-click="openSettings()" my-i18n="head_settings"></a></li>
|
|
|
|
<li ng-if="isLoggedIn"><a href="" ng-click="logOut()" my-i18n="head_log_out"></a></li>
|
|
|
|
<li ng-if="!isLoggedIn"><a href="https://github.com/zhukov/webogram" target="_blank" my-i18n="head_about"></a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|