Skip to content

Commit 3283885

Browse files
maze-runnariamareebjamal
authored andcommitted
fix: show "more call for speaker" button when appropriate (fossasia#3610)
* show call for speaker button when more than 3 events * comparing callForSpeakersEvents.length instead of callForSpeakersEvents
1 parent 416260b commit 3283885

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: app/templates/index.hbs

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
{{/each}}
2828
</div>
2929
<div class="ui hidden divider"></div>
30-
<div class="ui centered grid">
31-
<div class="row">
32-
{{#link-to "explore" (query-params cfs='open') class='ui blue button'}}{{t 'Show more calls for speakers'}}{{/link-to}}
30+
{{#if (gt callForSpeakersEvents.length 3)}}
31+
<div class="ui centered grid">
32+
<div class="row">
33+
{{#link-to "explore" (query-params cfs='open') class='ui blue button'}}{{t 'Show more calls for speakers'}}{{/link-to}}
34+
</div>
3335
</div>
34-
</div>
36+
{{/if}}
3537
{{/if}}
3638

3739
{{modals/event-share-modal isOpen=isShareModalOpen event=eventToShare}}

0 commit comments

Comments
 (0)