зеркало из https://github.com/mozilla/gecko-dev.git
Bug 564236 - Add useful content when Start Page is blank [r=vingtetun]
This commit is contained in:
Родитель
4d920b28d9
Коммит
bdfd13cc81
|
@ -91,6 +91,8 @@
|
|||
<!-- l10n hack -->
|
||||
<div style="display: none">
|
||||
<span id="text-openalltabs">&aboutHome.openAllTabs;</span>
|
||||
<span id="text-notabs">&aboutHome.noTabs;</span>
|
||||
<span id="text-noaddons">&aboutHome.noAddons;</span>
|
||||
</div>
|
||||
|
||||
<script type="application/javascript;version=1.8"><![CDATA[
|
||||
|
@ -214,7 +216,8 @@
|
|||
list.appendChild(outer);
|
||||
}
|
||||
} else {
|
||||
list.style.display = "none";
|
||||
let placeHolder = document.getElementById("loadingTabs");
|
||||
placeHolder.innerHTML = "<div class='no-items'>" + document.getElementById("text-notabs").textContent + "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,7 +248,8 @@
|
|||
searchSucceeded: function(aAddons, aAddonCount, aTotalResults) {
|
||||
let list = document.getElementById("newAddons");
|
||||
if (aAddons.length == 0) {
|
||||
list.style.display = "none";
|
||||
let placeHolder = document.getElementById("loadingAddons");
|
||||
placeHolder.innerHTML = "<div class='no-items'>" + document.getElementById("text-noaddons").textContent + "</div>";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,3 +4,5 @@
|
|||
<!ENTITY aboutHome.recommendedAddons2 "Add-ons for your &brandShortName;">
|
||||
<!ENTITY aboutHome.aboutMozilla "About Mozilla">
|
||||
<!ENTITY aboutHome.openAllTabs "Open all in tabs">
|
||||
<!ENTITY aboutHome.noTabs "No tabs from last time">
|
||||
<!ENTITY aboutHome.noAddons "No recommended add-ons">
|
||||
|
|
|
@ -176,6 +176,10 @@ html {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.no-items {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#about {
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
|
|
|
@ -176,6 +176,10 @@ html {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.no-items {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#about {
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
|
|
Загрузка…
Ссылка в новой задаче