77afc0d9fa
This refactors references to values in templates from `{{foo}}` to either `{{this.foo}}` if it's a property of backing JavaScript class or `{{@foo}}` if it's passed in on invocation. You could find more details on this change in Ember docs: - [required `this` in templates](https://guides.emberjs.com/release/upgrading/current-edition/templates/#toc_required-this-in-templates) - [named arguments](https://guides.emberjs.com/release/upgrading/current-edition/templates/#toc_named-arguments) While doing this I noticed that `<PollEvaluationSummaryOption>` component could be easily refactored to a template-only component. Done it as part of this pull request even so it's technically not related.
30 lines
638 B
Handlebars
30 lines
638 B
Handlebars
<HeadLayout />
|
|
|
|
{{title "Croodle"}}
|
|
|
|
<nav class="cr-navbar navbar navbar-dark">
|
|
<h1 class="cr-logo">
|
|
<LinkTo @route="index" class="navbar-brand">
|
|
Croodle
|
|
</LinkTo>
|
|
</h1>
|
|
<div class="collapse" id="headerNavbar">
|
|
<form class="form-inline my-2 my-lg-0">
|
|
<LanguageSelect class="custom-select custom-select-sm" />
|
|
</form>
|
|
</div>
|
|
</nav>
|
|
|
|
<main role="main" class="container cr-main">
|
|
<div id="messages">
|
|
{{#each this.flashMessages.queue as |flash|}}
|
|
<FlashMessage @flash={{flash}}>
|
|
{{t flash.message}}
|
|
</FlashMessage>
|
|
{{/each}}
|
|
</div>
|
|
|
|
{{outlet}}
|
|
</main>
|
|
|
|
{{outlet "modal"}}
|