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
{{application/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}}
{{/link-to}}
</h1>
{{ui/item-list items=view.headerPrimary class="header-controls"}}
</div>
2014-12-20 14:26:46 +08:00
<div class="header-secondary">
{{ui/item-list items=view.headerSecondary class="header-controls"}}
</div>
2014-12-20 14:26:46 +08:00
</div>
2014-12-20 14:26:46 +08:00
</header>
2014-12-20 14:26:46 +08:00
<main id="main" class="global-main">
{{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/item-list items=view.footerPrimary class="footer-primary"}}
{{ui/item-list items=view.footerSecondary 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"}}