mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
81 lines
3.3 KiB
HTML
81 lines
3.3 KiB
HTML
<nav class="nav">
|
|
<h1>WHITEOUT.IO</h1>
|
|
<div class="nav__write">
|
|
<button class="btn" wo-touch="state.writer.write(); $event.stopPropagation()">Write</button>
|
|
</div>
|
|
|
|
<ul class="nav__folders">
|
|
<li ng-repeat="folder in account.folders" ng-if="folder.wellknown" ng-hide="folder.type === 'Outbox' && folder.count < 1"
|
|
class="nav__folder" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
|
|
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
|
|
<svg role="presentation">
|
|
<use ng-if="folder.type === 'Inbox'" xlink:href="#icon-inbox" />
|
|
<use ng-if="folder.type === 'Sent'" xlink:href="#icon-sent" />
|
|
<use ng-if="folder.type === 'Outbox'" xlink:href="#icon-inbox" />
|
|
<use ng-if="folder.type === 'Drafts'" xlink:href="#icon-draft" />
|
|
<use ng-if="folder.type === 'Trash'" xlink:href="#icon-trash" />
|
|
<use ng-if="folder.type === 'Flagged'" xlink:href="#icon-star" />
|
|
</svg>
|
|
{{folder.type}}
|
|
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
|
</a>
|
|
<!--<button class="btn-icon-very-light">
|
|
<svg><use xlink:href="#icon-dropdown" /><title>More</title></svg>
|
|
</button>-->
|
|
</li>
|
|
</ul><!--/nav__folders-->
|
|
|
|
<ul class="nav__folders">
|
|
<li ng-repeat="folder in account.folders" ng-if="!folder.wellknown"
|
|
class="nav__folder" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
|
|
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
|
|
<svg role="presentation"><use xlink:href="#icon-folder" /></svg>
|
|
{{folder.name}}
|
|
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
|
</a>
|
|
</li>
|
|
</ul><!--/nav__folders-->
|
|
|
|
<ul class="nav__secondary">
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); state.account.toggle(true)">
|
|
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Account
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); state.contacts.toggle(true)">
|
|
<svg role="presentation"><use xlink:href="#icon-contact" /></svg> Contacts
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); state.privateKeyUpload.toggle(true)">
|
|
<svg role="presentation"><use xlink:href="#icon-key" /></svg> Key sync (experimental)
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); state.writer.reportBug()">
|
|
<svg role="presentation"><use xlink:href="#icon-bug" /></svg> Report a bug
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); state.about.toggle(true)">
|
|
<svg role="presentation"><use xlink:href="#icon-about" /></svg> About
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" wo-touch="$event.preventDefault(); logout()">
|
|
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Logout
|
|
</a>
|
|
</li>
|
|
</ul><!--/nav__secondary-->
|
|
|
|
<footer>
|
|
<span class="spinner" ng-show="account.loggingIn || account.busy || state.mailList.searching"></span>
|
|
<span class="text" ng-switch="account.online">
|
|
<span ng-switch-when="false">
|
|
<svg><use xlink:href="#icon-offline" /></svg>
|
|
</span>
|
|
{{state.mailList.lastUpdateLbl}} {{state.mailList.lastUpdate | date:'shortTime'}}
|
|
</span>
|
|
</footer>
|
|
</nav> |