Skip to content

Commit 3d0b2df

Browse files
authored
feat: Add menu tab Sponsors (#4900)
1 parent f3e0410 commit 3d0b2df

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

app/templates/components/public/side-menu.hbs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@
4444
{{t 'Call for Speakers'}}
4545
</LinkTo>
4646
{{/if}}
47+
{{#if this.event.isSponsorsEnabled}}
48+
{{#if (eq this.session.currentRouteName 'public.index')}}
49+
<a href='#sponsor' {{action "scrollToTarget"}} class='item scroll'>
50+
{{t 'Sponsors'}}
51+
</a>
52+
{{else}}
53+
<a class="item" href="{{href-to 'public.index'}}#sponsor">
54+
{{t 'Sponsors'}}
55+
</a>
56+
{{/if}}
57+
{{/if}}
4758
{{#if this.event.hasOwnerInfo}}
4859
{{#if (eq this.session.currentRouteName 'public.index')}}
4960
<a href='#owner' {{action "scrollToTarget"}} class='item scroll'>

app/templates/public/index.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
<div class="ui hidden divider"></div>
4747
{{/if}}
4848
{{#if this.model.sponsors}}
49+
<h2 class="ui header" id="sponsor">
50+
{{t 'Supported By'}}
51+
</h2>
4952
<div class="sponsors">
5053
<div class="row">
5154
<Public::SponsorList

0 commit comments

Comments
 (0)