1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-31 10:31:48 +00:00

Alert in navigation bar if there is a new error in logs

This commit is contained in:
jendib
2013-08-22 17:41:47 +02:00
parent a858699391
commit 62a5840777
5 changed files with 50 additions and 3 deletions

View File

@@ -72,6 +72,11 @@
</ul>
<ul class="nav pull-right" ng-show="!userInfo.anonymous">
<li ng-show="errorNumber > 0">
<a href="#/settings/log" ng-click="openLogs()" class="nav-text-error">
<span class="icon-warning-sign"></span> {{ errorNumber }} new error{{ errorNumber > 1 ? 's' : '' }}
</a>
</li>
<li ng-class="{active: $uiRoute}" ui-route="/settings.*"><a href="#/settings/account"><span class="icon-cog"></span><span class="hidden-phone"> Settings</span></a></li>
<li><a href="#" ng-click="logout($event)"><span class="icon-off"></span><span class="hidden-phone"> Logout</span></a></li>
</ul>