зеркало из https://github.com/mozilla/bedrock.git
Added ESR link and updated primary link in Moments Page (#15260)
This commit is contained in:
Родитель
af155b6276
Коммит
89b8c8a1f1
|
@ -228,8 +228,13 @@
|
|||
<div class="mzp-l-content mzp-t-content-md mzp-u-centered">
|
||||
<h1 class="c-main-title">{{ main_title }}</h1>
|
||||
<p class="c-main-tagline">{{ main_tagline }}</p>
|
||||
<p class="c-main-cta"><a href="{{ url('firefox.new') }}" class="mzp-c-button mzp-t-product mzp-t-xl" rel="external" data-cta-text="Update now">{{ cta_text }}</a></p>
|
||||
|
||||
{{ download_firefox_thanks(alt_copy=cta_text, button_class='mzp-t-xl', dom_id='update-firefox') }}
|
||||
|
||||
<p class="c-main-cta" id="update-firefox-esr"><a href="{{ url('firefox.enterprise.index') + '#download' }}" class="mzp-c-button mzp-t-product mzp-t-xl" data-cta-text="Update now">{{ cta_text }}</a></p>
|
||||
|
||||
<small>{{ update_time }}</small>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
@ -292,3 +297,8 @@
|
|||
</strong>
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{{ js_bundle('firefox_welcome_page19') }}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -50,6 +50,16 @@ $image-path: '/media/protocol/img';
|
|||
text-wrap: balance;
|
||||
}
|
||||
|
||||
// visible by default and used as a fallback, will be hidden via JS for ESR browsers
|
||||
#update-firefox {
|
||||
display: block;
|
||||
}
|
||||
|
||||
// not displayed by default, will be visible via JS for ESR browsers
|
||||
#update-firefox-esr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.mzp-l-columns {
|
||||
padding-top: 0;
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/* eslint-disable no-console */
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
const firefoxReleaseCTA = document.getElementById('update-firefox');
|
||||
const firefoxEsrCTA = document.getElementById('update-firefox-esr');
|
||||
|
||||
Mozilla.UITour.getConfiguration('appinfo', function (details) {
|
||||
if (details.defaultUpdateChannel === 'esr') {
|
||||
firefoxEsrCTA.style.display = 'block';
|
||||
firefoxReleaseCTA.style.display = 'none';
|
||||
}
|
||||
});
|
||||
})();
|
|
@ -1297,6 +1297,12 @@
|
|||
"js/firefox/welcome/welcome16.js"
|
||||
],
|
||||
"name": "firefox_welcome_page16"
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"js/firefox/welcome/welcome19.js"
|
||||
],
|
||||
"name": "firefox_welcome_page19"
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче