mail/src/tpl/nav.html

82 lines
3.3 KiB
HTML
Raw Normal View History

2014-09-23 09:41:37 -04:00
<nav class="nav">
<h1>WHITEOUT.IO</h1>
<div class="nav__write">
<button class="btn" wo-touch="state.writer.write(); $event.stopPropagation()">Write</button>
</div>
2014-09-23 09:41:37 -04:00
<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}">
2014-12-05 10:57:53 -05:00
<a href="#" wo-touch="$event.preventDefault(); navigate($index)">
<svg ng-if="folder.type === 'Inbox'" role="presentation">
<use xlink:href="#icon-inbox" />
</svg>
<svg ng-if="folder.type === 'Sent'" role="presentation">
<use xlink:href="#icon-sent" />
</svg>
<svg ng-if="folder.type === 'Outbox'" role="presentation">
<use xlink:href="#icon-outbox" />
</svg>
<svg ng-if="folder.type === 'Drafts'" role="presentation">
<use xlink:href="#icon-draft" />
</svg>
<svg ng-if="folder.type === 'Trash'" role="presentation">
<use xlink:href="#icon-delete" />
</svg>
<svg ng-if="folder.type === 'Flagged'" role="presentation">
<use xlink:href="#icon-star" />
</svg>
{{folder.type === 'Flagged' ? 'Starred' : folder.type}}
2015-01-19 04:12:01 -05:00
<span ng-show="folder.count > 0 && folder.type !== 'Sent'" class="nav__counter">{{folder.count}}</span>
2014-09-23 09:41:37 -04:00
</a>
<!--<button class="btn-icon-very-light">
2014-09-23 09:41:37 -04:00
<svg><use xlink:href="#icon-dropdown" /><title>More</title></svg>
</button>-->
2014-09-23 09:41:37 -04:00
</li>
</ul><!--/nav__folders-->
2014-09-23 09:41:37 -04:00
<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}">
2014-12-05 10:57:53 -05:00
<a href="#" wo-touch="$event.preventDefault(); navigate($index)">
<svg role="presentation"><use xlink:href="#icon-folder" /></svg>
{{folder.name}}
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
2014-09-23 09:41:37 -04:00
</a>
</li>
</ul><!--/nav__folders-->
2014-09-23 09:41:37 -04:00
<ul class="nav__secondary">
<li>
<a href="#" wo-touch="$event.preventDefault(); state.account.toggle(true)">
2014-09-23 09:41:37 -04:00
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Account
</a>
</li>
<li>
<a href="#" wo-touch="$event.preventDefault(); state.contacts.toggle(true)">
2014-09-23 09:41:37 -04:00
<svg role="presentation"><use xlink:href="#icon-contact" /></svg> Contacts
</a>
</li>
<li>
<a href="#" wo-touch="$event.preventDefault(); state.privateKeyUpload.toggle(true)">
2014-09-23 09:41:37 -04:00
<svg role="presentation"><use xlink:href="#icon-key" /></svg> Key sync (experimental)
</a>
</li>
<li>
<a href="#" wo-touch="$event.preventDefault(); state.writer.reportBug()">
2014-09-23 09:41:37 -04:00
<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)">
2014-09-23 09:41:37 -04:00
<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-logout" /></svg> Logout
</a>
</li>
</ul><!--/nav__secondary-->
2014-12-15 04:59:32 -05:00
</nav>