framework/ember/app/templates/application.hbs

62 lines
1.1 KiB
Handlebars
Raw Normal View History

<div id="wrapper">
<header id="header">
2014-12-20 14:26:46 +08:00
<div id="back-nav">
<div class="btn-group">
<button class="btn">{{fa-icon "chevron-left"}}</button>
<button class="btn">{{fa-icon "thumb-tack"}}</button>
</div>
</div>
2014-12-20 14:26:46 +08:00
<div id="header-content">
2014-12-20 14:26:46 +08:00
<div id="header-primary">
2014-12-20 14:26:46 +08:00
<h1 id="header-title">
2014-12-20 14:26:46 +08:00
{{#link-to "discussions" (query-params searchQuery="" sort="recent" show="discussions")}}
{{#if view.image}}
<img {{bind-attr src=view.image alt=view.title}}>
{{else}}
{{view.title}}
{{/if}}
2014-12-20 14:26:46 +08:00
{{/link-to}}
</h1>
{{menu-list items=headerPrimaryControls class="nav"}}
2014-12-20 14:26:46 +08:00
</div>
<div id="header-secondary">
<div class="search">
{{search-input placeholder="Search forum" value=searchQuery active=searchActive action="search"}}
</div>
{{menu-list items=headerSecondaryControls}}
2014-12-20 14:26:46 +08:00
</div>
</div>
</header>
2014-12-20 14:26:46 +08:00
<main id="body">
2014-12-20 14:26:46 +08:00
{{outlet}}
</main>
2014-12-20 14:26:46 +08:00
<footer id="footer">
{{menu-list items=footerControls}}
</footer>
2014-12-20 14:26:46 +08:00
</div>
{{outlet "modal"}}
{{render "composer"}}
<div id="alerts">
{{#each alert in alerts}}
{{alert-message message=alert}}
{{/each}}
</div>