Adds better support for the moblie can't see message.

Removes Backups counter from Dashboard.
This commit is contained in:
Andrew 2021-09-27 12:52:43 -04:00
parent d17e17e38b
commit 22e48bbfce
2 changed files with 21 additions and 16 deletions

View File

@ -69,19 +69,6 @@
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mt-md-0 mt-4">
<div class="d-flex">
<div class="wrapper">
<h5 class="mb-1 font-weight-medium text-primary">{{ translate('dashboard', 'backups') }}</h5>
<h3 class="mb-0 font-weight-semibold">7</h3>
</div>
<div class="wrapper my-auto ml-auto ml-lg-4">
<p class="mb-0 text-success">{{ translate('dashboard', 'lastBackup') }} 11-31-2020</p>
<p class="mb-0 text-success">{{ translate('dashboard', 'nextBackup') }} 12-05-2020</p>
</div>
</div>
</div>
</div>
</div>
</div>
@ -93,8 +80,10 @@
<div class="card">
<div class="card-header header-sm d-flex justify-content-between align-items-center">
<h4 class="card-title"><i class="fas fa-server"></i> &nbsp;{{ translate('dashboard', 'allServers') }}</h4>
{% if len(data['servers']) > 0 %}
<span class="too_small" title="{{ translate('dashboard', 'cannotSeeOnMobile') }}", data-content="{{ translate('dashboard', 'cannotSeeOnMobile2') }}", data-placement="top"></span>
{% end %}
<div class="d-md-none">
<small>{{ translate('dashboard', 'cannotSeeOnMobile') }}<br /> {{ translate('dashboard', 'cannotSeeOnMobile2') }}</small>
</div>
<div><a class="nav-link" href="/server/step1"><i class="fas fa-plus-circle"></i> &nbsp; {{ translate('dashboard', 'newServer') }}</a></div>
</div>
@ -224,13 +213,29 @@
</div>
<!-- content-wrapper ends -->
<style>
.popover-body{
color: white !important;;
}
</style>
{% end %}
{% block js %}
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
$('.too_small').popover("show");
});
$(window).ready(function(){
$('body').click(function(){
$('.too_small').popover("hide");
});
});
</script>
<script>
function send_command (server_id, command){
/* this getCookie function is in base.html */

View File

@ -81,7 +81,7 @@
"lastBackup": "Last:",
"nextBackup": "Next:",
"servers": "Servers",
"cannotSeeOnMobile": "Can't see everything on mobile?",
"cannotSeeOnMobile": "Not seeing everything on mobile?",
"cannotSeeOnMobile2": "Try scrolling the table sideways.",
"max": "Max",
"avg": "Avg",