framework/ember/app/templates/application.hbs

55 lines
1.3 KiB
Handlebars
Raw Normal View History

<div id="page" {{bind-attr class=":page backButtonTarget.paneIsPinned:with-pane"}}>
<header id="header" class="global-header">
2014-12-20 14:26:46 +08:00
{{back-button target=backButtonTarget}}
2014-12-20 14:26:46 +08:00
<div class="container">
2014-12-20 14:26:46 +08:00
<div class="header-primary">
<h1 class="header-title">
{{#link-to "index" (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>
{{ui/controls/item-list items=view.headerPrimaryItems class="header-controls"}}
2014-12-20 14:26:46 +08:00
</div>
<div class="header-secondary">
{{ui/controls/item-list items=view.headerSecondaryItems class="header-controls"}}
2014-12-20 14:26:46 +08:00
</div>
</div>
</header>
2014-12-20 14:26:46 +08:00
<main id="main" class="global-main">
2014-12-20 14:26:46 +08:00
{{outlet}}
<div class="composer-container">
<div class="container">
{{render "composer"}}
</div>
</div>
</main>
2014-12-20 14:26:46 +08:00
<footer id="footer" class="global-footer">
<div class="container">
{{ui/controls/item-list items=view.footerPrimaryItems class="footer-primary"}}
{{ui/controls/item-list items=view.footerSecondaryItems class="footer-secondary"}}
</div>
</footer>
2014-12-20 14:26:46 +08:00
</div>
2015-02-08 13:21:40 +08:00
<div id="modal" class="modal fade">
{{outlet "modal"}}
</div>
2015-02-08 13:21:40 +08:00
{{render "alerts"}}