Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mobile: Substitute Create Event with Login #5569

Merged
merged 2 commits into from
Nov 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions app/templates/components/nav-bar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
</div>
<div class="mobile only row">
<div class="ui navbar tiny menu">
<a href="#" class="menu item open sidebar">
<i class="large content icon"></i>
</a>
<LinkTo
@route="index" class="item" @activeClass="">
<div class="ui header small text">{{this.settings.appName}}</div>
Expand All @@ -73,12 +70,19 @@
<NotificationDropdown
@notifications={{this.notifications}} />
{{/if}}
<LinkTo
@route="create" class="item ui blue button-text small text">
<div>
{{t 'Create Event'}}
</div>
</LinkTo>
{{#if this.session.isAuthenticated}}
<LinkTo
@route="create" class="item ui blue button-text small text">
<div>
{{t 'Create Event'}}
</div>
</LinkTo>
{{else}}
<a href="{{href-to 'login'}}" class="item">{{t 'Login'}}</a>
{{/if}}
</div>
<a href="#" class="menu item open sidebar">
<i class="large content icon"></i>
</a>
</div>
</div>