|
1 | | -<nav class='navbar pb-0 pt-0 {{if (not session.isAuthenticated) "public"}}' aria-label='breadcrumb'> |
| 1 | +<nav class='header-nav navbar pb-0 pt-0 {{if (not this.session.isAuthenticated) "public"}}' aria-label='breadcrumb'> |
2 | 2 | <div class="container-fluid d-flex justify-content-between"> |
3 | 3 | <span |
4 | | - class='{{if session.isAuthenticated "half-toggle" "pe-2"}} left-sidebar-toggle d-block d-md-none link' |
5 | | - {{action 'toggleLeftSidebar'}} |
| 4 | + class='{{if this.session.isAuthenticated "half-toggle" "pe-2"}} left-sidebar-toggle d-block d-md-none link' |
| 5 | + {{on 'click' this.toggleLeftSidebar}} |
6 | 6 | > |
7 | 7 | ☰ |
8 | 8 | </span> |
9 | 9 |
|
10 | | - {{#if session.isAuthenticated }} |
11 | | - <span {{action 'handleLogoAction'}} class='navbar-brand'> |
| 10 | + {{#if this.session.isAuthenticated }} |
| 11 | + <span {{on 'click' this.handleLogoAction}} class='navbar-brand'> |
12 | 12 | <div class='header-logo'> </div> |
13 | 13 | </span> |
14 | 14 | {{else}} |
15 | 15 | <div class='public-header-logo'> </div> |
16 | 16 | {{/if}} |
17 | 17 |
|
18 | | - <div class='d-flex col ps-0 pe-0 navbar-contents-holder {{if (not session.isAuthenticated) "public"}}'> |
| 18 | + <div class='d-flex col ps-0 pe-0 navbar-contents-holder {{if (not this.session.isAuthenticated) "public"}}'> |
19 | 19 | <div class='navbar-overflow-wrapper'> |
20 | 20 | <div class='navbar-nav col d-flex flex-row'> |
21 | | - {{#if session.isAuthenticated}} |
| 21 | + {{#if this.session.isAuthenticated}} |
22 | 22 | <Breadcrumbs @routeInfos={{@routeInfos}} /> |
23 | | - {{else if media.isMobile}} |
24 | | - {{else if (not media.isMobile)}} |
| 23 | + {{else if (not this.media.isMobile)}} |
25 | 24 | <LinkTo @route='index' class="page-actions-buttons"> |
26 | | - <BsButton @type="primary" class="public-navbar-button {{if (eq router.currentRouteName 'index') 'selected'}}">Home</BsButton> |
| 25 | + <BsButton @type="primary" class="public-navbar-button {{if (eq this.router.currentRouteName 'index') 'selected'}}">Home</BsButton> |
27 | 26 | </LinkTo> |
28 | | - <BsDropdown class="position-static" as |dd| {{did-insert (action 'setStaticPages')}}> |
| 27 | + <BsDropdown class="position-static" as |dd| {{did-insert this.setStaticPages}}> |
29 | 28 | <dd.button @type="primary" class="public-navbar-button {{if this.onAboutUsPage 'selected'}}"> |
30 | 29 | {{t "component.headerNav.aboutUs"}} |
31 | 30 | </dd.button> |
32 | 31 | <dd.menu class="public-about-us-dropdown" @renderInPlace={{true}} as |ddm|> |
33 | | - {{#each-in staticPages as |id title|}} |
| 32 | + {{#each-in this.staticPages as |id title|}} |
34 | 33 | <ddm.item> |
35 | 34 | <ddm.linkTo @route='static-pages.static-page' @model={{id}} class="btn btn-primary"> |
36 | 35 | {{title}} |
37 | 36 | </ddm.linkTo> |
38 | 37 | </ddm.item> |
39 | 38 | {{/each-in}} |
| 39 | + <LinkTo @route='public.room-forum' class="dropdown-item btn btn-primary"> |
| 40 | + {{t 'mixin.menuItems.roomForum'}} |
| 41 | + </LinkTo> |
40 | 42 | </dd.menu> |
41 | 43 | </BsDropdown> |
42 | 44 | <LinkTo @route='static-pages.static-page' @model='word-lid' class="page-actions-buttons"> |
43 | | - <BsButton @type="primary" class="public-navbar-button {{if (eq router.currentURL '/static-pages/word-lid') 'selected'}}">{{t "component.headerNav.becomeMember"}}</BsButton> |
| 45 | + <BsButton @type="primary" class="public-navbar-button {{if (eq this.router.currentURL '/static-pages/word-lid') 'selected'}}">{{t "component.headerNav.becomeMember"}}</BsButton> |
44 | 46 | </LinkTo> |
45 | 47 | <LinkTo @route='static-pages.static-page' @model='sponsoring' class="page-actions-buttons"> |
46 | | - <BsButton @type="primary" class="public-navbar-button {{if (eq router.currentURL '/static-pages/sponsoring') 'selected'}}">{{t "component.headerNav.sponsoring"}}</BsButton> |
| 48 | + <BsButton @type="primary" class="public-navbar-button {{if (eq this.router.currentURL '/static-pages/sponsoring') 'selected'}}">{{t "component.headerNav.sponsoring"}}</BsButton> |
47 | 49 | </LinkTo> |
48 | 50 | {{/if}} |
49 | 51 | </div> |
50 | 52 | </div> |
51 | 53 |
|
52 | 54 | <div id='navbar-wormhole'></div> |
53 | 55 |
|
54 | | - {{#unless session.isAuthenticated}} |
| 56 | + {{#unless this.session.isAuthenticated}} |
55 | 57 | <LinkTo @route='login' class='d-none d-md-flex me-2'> |
56 | | - <button class='btn btn-primary public-navbar-button {{if (eq router.currentRouteName 'login') 'selected'}}' type='button'> |
| 58 | + <button class='btn btn-primary public-navbar-button {{if (eq this.router.currentRouteName 'login') 'selected'}}' type='button'> |
57 | 59 | {{t 'tag.button.signin'}} |
58 | 60 | </button> |
59 | 61 | </LinkTo> |
60 | 62 | {{/unless}} |
61 | 63 | </div> |
62 | 64 |
|
63 | | - {{#unless session.isAuthenticated}} |
| 65 | + {{#unless this.session.isAuthenticated}} |
64 | 66 | <button |
65 | | - class='btn btn-locale btn-inverse-locale-{{intl.locale}} me-2' |
| 67 | + class='btn btn-locale btn-inverse-locale-{{this.intl.locale}} me-2' |
66 | 68 | title='{{t "component.headerNav.changeLocale"}}' |
67 | | - {{action 'toggleLocale'}} |
| 69 | + {{on 'click' this.toggleLocale}} |
68 | 70 | type='button'> |
69 | 71 | </button> |
70 | 72 | {{/unless}} |
|
0 commit comments