|
67 | 67 | </div> |
68 | 68 | </div> |
69 | 69 | </div> |
| 70 | + |
70 | 71 | <div class="mobile only row"> |
71 | 72 | <div class="ui navbar tiny menu"> |
72 | 73 | <a href="#" class="menu item open sidebar"> |
73 | 74 | <i class="large content icon"></i> |
74 | 75 | </a> |
75 | | - <LinkTo |
76 | | - @route="index" class="item" @activeClass=""> |
77 | | - <div class="ui header small text">{{this.settings.appName}}</div> |
78 | | - </LinkTo> |
| 76 | + {{#if this.session.isAuthenticated}} |
| 77 | + {{#if (and this.isNotPublicPageRoute this.isNotWizardPageRoute this.isNotEventPageRoute this.isNotOrderPageRoute this.isNotEventDetailPageRoute)}} |
| 78 | + <LinkTo |
| 79 | + @route="index" class="item" @activeClass=""> |
| 80 | + <div class="ui header small text">{{this.settings.appName}}</div> |
| 81 | + </LinkTo> |
| 82 | + {{else }} |
| 83 | + {{#if this.globalData.logoUrl}} |
| 84 | + <button class="item btn-un-bd" {{on "click" this.handleClick}}> |
| 85 | + <img src="{{this.globalData.logoUrl}}" class="logo-event mr-8"/> |
| 86 | + </button> |
| 87 | + {{else}} |
| 88 | + <button class="item btn-un-bd" {{on "click" this.handleClick}}> |
| 89 | + <div class="ui header small text">Home</div> |
| 90 | + </button> |
| 91 | + {{/if}} |
| 92 | + {{/if}} |
| 93 | + {{else}} |
| 94 | + {{#if (and this.isNotPublicPageRoute this.isNotWizardPageRoute this.isNotEventPageRoute this.isNotOrderPageRoute this.isNotEventDetailPageRoute)}} |
| 95 | + <LinkTo |
| 96 | + @route="index" class="item" @activeClass=""> |
| 97 | + <div class="ui header small text">{{this.settings.appName}}</div> |
| 98 | + </LinkTo> |
| 99 | + {{else}} |
| 100 | + {{#if this.globalData.logoUrl}} |
| 101 | + <button class="item btn-un-bd" {{on "click" this.handleClick}}> |
| 102 | + <img src="{{this.globalData.logoUrl}}" class="logo-event mr-8"/> |
| 103 | + </button> |
| 104 | + {{else}} |
| 105 | + <button class="item btn-un-bd" {{on "click" this.handleClick}}> |
| 106 | + <div class="ui header small text">Home</div> |
| 107 | + </button> |
| 108 | + {{/if}} |
| 109 | + {{/if}} |
| 110 | + {{/if}} |
| 111 | + |
79 | 112 | <div id="mobile-bar" class="search-bar search-bar-mobile d-flex items-center space-between m-1 p-2"> |
80 | 113 | <Input @class="prompt" id="mobileSearchBar" @type="text" @key-up={{action "handleKeyPress"}} @value={{this.event_name}} placeholder={{t "Search"}} /> |
81 | 114 | <i role="button" class="search icon" style="cursor: auto;" {{on "click" this.searchOnClick}}></i> |
|
91 | 124 | </div> |
92 | 125 | {{/if}} |
93 | 126 | {{#if this.session.isAuthenticated}} |
94 | | - {{#if this.isNotWizardPageRoute}} |
| 127 | + {{#if (and this.isNotPublicPageRoute this.isNotWizardPageRoute this.isNotEventPageRoute this.isNotOrderPageRoute this.isNotEventDetailPageRoute)}} |
95 | 128 | <LinkTo |
96 | 129 | @route="create" class="item ui blue button-text small text"> |
97 | 130 | <div> |
98 | 131 | {{t 'Create Event'}} |
99 | 132 | </div> |
100 | 133 | </LinkTo> |
| 134 | + {{else}} |
| 135 | + <LinkTo |
| 136 | + @route="index" class="item" @activeClass=""> |
| 137 | + <div class="ui header small text">{{this.settings.appName}}</div> |
| 138 | + </LinkTo> |
101 | 139 | {{/if}} |
102 | 140 | {{else}} |
103 | 141 | <a href="{{href-to 'login'}}" class="item">{{t 'Login'}}</a> |
|
0 commit comments