update manager, welcome and status page.

This commit is contained in:
Eduardo Silva 2024-04-04 14:25:16 -03:00
parent 6a53c8bc97
commit 7332bca96e
17 changed files with 313 additions and 7 deletions

View file

@ -36,7 +36,8 @@
{% block page_custom_head %}{% endblock%}
</head>
{% load custom_tags %}
{% tag_webadmin_version as webadmin_version %}
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">

View file

@ -1,5 +1,123 @@
{% extends 'base.html' %}
{% block content %}
status
{% endblock %}
<div class='row'>
<div class='{% if form_size %}{{ form_size }}{% else %}col-lg-6{% endif %}'>
<div class="card card-primary card-outline">
{% if page_title %}
<div class="card-header">
<h3 class="card-title">{{ page_title }}</h3>
</div>
{% endif %}
<div class="card-body row">
<div class="col-lg-12">
<table class="table">
<thead>
<tr>
<th>Item</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<strong>
Used storage (binary backup)
</strong>
</td>
<td>
{{ media_root_stats.usage_percentage }}%
</td>
</tr>
<tr>
<td>
<strong>
Backup Queue
</strong>
</td>
<td>
{{ queue }}
</td>
</tr>
<tr>
<td>
<strong>
Successful backups (24h)
</strong>
</td>
<td>
{{ success_backup_last_24h }}
</td>
</tr>
<tr>
<td>
<strong>
Failed backups (24h)
</strong>
</td>
<td>
{{ error_backup_last_24h }}
</td>
</tr>
<tr>
<td>
<strong>
Routers
</strong>
</td>
<td>
{{ router_count }}
</td>
</tr>
<tr>
<td>
<strong>
Online Routers
</strong>
</td>
<td>
{{ router_online_count }}
</td>
</tr>
<tr>
<td>
<strong>
Offline Routers
</strong>
</td>
<td>
{{ router_offline_count }}
</td>
</tr>
<tr>
<td>
<strong>
Not monitored Routers
</strong>
</td>
<td>
{{ router_not_monitored_count }}
</td>
</tr>
<tr>
<td>
<strong>
Router Fleet Version
</strong>
</td>
<td>
{{ webadmin_version.current_version }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p class="small">This status page is just a placeholder, it will be improved in next versions</p>
</div>
</div>
{% endblock %}

View file

@ -1,5 +1,30 @@
{% extends 'base.html' %}
{% block content %}
Welcome
<div class='row'>
<div class='col-lg-6'>
<div class="card card-primary card-outline">
<div class="card-header">
<h3 class="card-title">Welcome to RouterFleet!</h3>
</div>
<div class="card-body row">
<div class="col-lg-12">
<p>Greetings! I'm thrilled to introduce you to RouterFleet, a newly launched open source project aimed at revolutionizing the way we manage backups for routers and network equipment. I've dedicated countless hours to developing a system that simplifies and secures network management tasks, specifically tailored for those who manage a fleet of devices.</p>
<p>At this initial stage, RouterFleet's compatibility is focused on <strong>Mikrotik devices</strong>. My commitment to you is to not only enhance the system for these devices but also to expand our compatibility list based on the community's needs. Your feedback and requests are crucial for guiding the future development of RouterFleet.</p>
<p>Being at the forefront of RouterFleet, I am on a continuous journey to improve and evolve the platform. You can expect <strong>regular updates featuring new functionalities, performance enhancements, and bug fixes</strong>. To make the most out of RouterFleet, I recommend keeping your system up to date with the latest releases.</p>
<p>As RouterFleet is an open source project, I warmly invite you to join the journey—whether it's through contributing code, providing feedback, or sharing your network management experiences. Every bit of support helps in building a robust community around RouterFleet. For more information, updates, and to get involved, please visit our <a href="https://github.com/eduardogsilva/routerfleet" target="_blank"><i class="fab fa-github"></i> GitHub page</a>.</p>
<p>Your support and involvement are what will shape the future of RouterFleet!</p>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View file

@ -33,6 +33,5 @@
}
}
</script>
{% endblock %}