Skip to content

Commit 037ddbe

Browse files
authored
Change "sponsor a leaf" to fixed URL
And also only display number of sponsors if >0 (for docker image)
1 parent 932d7e9 commit 037ddbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

views/default/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ <h3>What they say...</h3>
232232
<h3 class="uk-card-title">Become a sponsor...</h3>
233233

234234
<p>
235-
OneZoom is a registered non-profit in the UK, all our products are for free. <a href="{{=URL('default', 'donor_list.html')}}">{{=n_total_sponsored}} people like you</a> have helped us by making donations. Their names appear as sponsors on
236-
<a href="{{=URL('default', 'sponsored.html')}}">{{=n_sponsored_leaves}} leaves of our tree of life</a>.
235+
OneZoom is a registered non-profit in the UK, all our products are available for free. {{if n_total_sponsored > 0:}}<a href="{{=URL('default', 'donor_list.html')}}">{{=n_total_sponsored}} people like you</a> have helped us by making donations. Their names appear as sponsors on
236+
<a href="{{=URL('default', 'sponsored.html')}}">{{=n_sponsored_leaves}} leaves of our tree of life</a>.{{pass}}
237237
</p>
238238
<p>Only one name per leaf so get your favourite while you can, for yourself or as a gift.</p>
239239

@@ -282,7 +282,7 @@ <h3 class="uk-card-title">Become a sponsor...</h3>
282282
<a class="uk-position-top-left oz-slider-arrow oz-slider-arrow-left" style="height:65px" href="#" uk-slider-item="previous"></a>
283283
<a class="uk-position-top-right oz-slider-arrow oz-slider-arrow-right" style="height:65px" href="#" uk-slider-item="next"></a>
284284
</div>
285-
<ul class="oz-pill leaf-list"><li><a href="{{=URL('default', 'sponsor.html')}}">Sponsor a leaf now!</a></li></ul>
285+
<ul class="oz-pill leaf-list"><li><a href="//www.onezoom.org/sponsor.html">Sponsor a leaf now!</a></li></ul>
286286
</div></section>
287287

288288

0 commit comments

Comments
 (0)