[enh] Display YNH version in footer. Need body padding improvments. #316

This commit is contained in:
opi 2016-05-23 20:50:53 +02:00
parent c8e3a98284
commit 3d1d5c302f
4 changed files with 30 additions and 0 deletions

View file

@ -217,6 +217,26 @@ button {
} }
/*
* Page footer
*
*/
.page-footer {
.clearfix;
.make-row(12);
margin: 20px 0;
padding-top: 20px;
border-top: 1px solid #eee;
color: #999;
font-size: 0.9em;
text-align: right;
a {
color: #666;
&:hover,
&:focus {text-decoration: underline;}
}
}
/* /*
* The pop up dialog * The pop up dialog
* *

View file

@ -54,6 +54,10 @@
<div id="slideTo" style="display: none; z-index: 100;"></div> <div id="slideTo" style="display: none; z-index: 100;"></div>
</div><!--/#slider-container--> </div><!--/#slider-container-->
<footer class="page-footer">
<p id="yunohost-version"></p>
</footer>
</div> </div>
<div id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true"> <div id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">

View file

@ -70,6 +70,11 @@
// Store url // Store url
sam.store.set('url', window.location.hostname + '/yunohost/api'); sam.store.set('url', window.location.hostname + '/yunohost/api');
// Get YunoHost version
this.api('/version', function(versions) {
$('#yunohost-version').html(y18n.t('footer_version', [versions.yunohost]));
});
// Flash messages // Flash messages
var flashMessage = $('#flashMessage'); var flashMessage = $('#flashMessage');
$('#toggle-btn', flashMessage).click(function(e) { $('#toggle-btn', flashMessage).click(function(e) {

View file

@ -120,6 +120,7 @@
"everyone_has_access": "Everyone has access.", "everyone_has_access": "Everyone has access.",
"filesystem": "Filesystem", "filesystem": "Filesystem",
"firewall": "Firewall", "firewall": "Firewall",
"footer_version" : "Powered by <a href='https://yunohost.org'>YunoHost</a> %s.",
"form_input_example" : "Example: %s", "form_input_example" : "Example: %s",
"free": "Free", "free": "Free",
"fs_type": "FS Type", "fs_type": "FS Type",