2014-06-23 11:40:21 +09:00
|
|
|
<template name="nav">
|
2014-07-09 09:46:24 +09:00
|
|
|
<header class="header">
|
2014-06-23 11:40:21 +09:00
|
|
|
|
2014-07-09 09:46:24 +09:00
|
|
|
<a id="mobile-menu" href="#menu" class="mobile mobile-button menu mobile-menu-button"><i class="icon-menu"></i><span>{{i18n "Menu"}}</span></a>
|
2014-06-23 11:40:21 +09:00
|
|
|
|
2014-07-09 09:46:24 +09:00
|
|
|
<ul class="nav site-nav desktop-nav has-dropdown">
|
2014-06-24 12:23:28 +09:00
|
|
|
{{#each navItems}}
|
2014-06-23 11:46:12 +09:00
|
|
|
<li>
|
2014-06-24 12:23:28 +09:00
|
|
|
{{> UI.dynamic template=this}}
|
2014-06-23 11:46:12 +09:00
|
|
|
</li>
|
2014-06-23 11:40:21 +09:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{#if logo_url}}
|
2014-07-09 09:46:24 +09:00
|
|
|
<h1 class="logo image" style="height:{{logo_height}}px; width:{{logo_width}}px; margin-left:{{logo_offset}}px;">
|
2014-06-23 11:40:21 +09:00
|
|
|
<a href="/">
|
|
|
|
<img src="{{logo_url}}" style="height:{{logo_height}}px;" alt="{{site_title}}"/>
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
{{else}}
|
|
|
|
<h1 class="logo"><a href="/">{{site_title}}</a></h1>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if canView}}
|
2014-07-09 09:46:24 +09:00
|
|
|
<ul class="nav user-nav desktop-nav">
|
2014-06-23 11:40:21 +09:00
|
|
|
<li><a id="submit" class="submit button" href="/submit">{{i18n "Post"}}</a></li>
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="auth-buttons">
|
|
|
|
{{> loginButtons align="right"}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
</template>
|