added version to bottom of pages

This commit is contained in:
Phillip Tarrant 2020-09-22 16:17:17 -04:00
parent 2eeee9d6c4
commit 8e2010af75
3 changed files with 9 additions and 11 deletions

View File

@ -36,7 +36,7 @@ class ServerHandler(BaseHandler):
defined_servers = controller.list_defined_servers() defined_servers = controller.list_defined_servers()
page_data = { page_data = {
'version_data': "version_data_here", 'version_data': helper.get_version_string(),
'user_data': user_data, 'user_data': user_data,
'server_stats': { 'server_stats': {
'total': len(controller.list_defined_servers()), 'total': len(controller.list_defined_servers()),

View File

@ -1,8 +1,11 @@
<!-- partial:partials/_footer.html --> <!-- partial:partials/_footer.html -->
<footer class="footer"> <footer class="footer">
<div class="container-fluid clearfix"> <div class="container-fluid ">
<span class="text-muted d-block text-center text-sm-left d-sm-inline-block">Copyright © 2020 <a href="http://www.rentmydatacenter.com/" target="_blank">RMDC</a>. All rights reserved.</span>
<span class="text-muted d-block text-center text-sm-left d-sm-inline-block">Copyright © 2020 <a href="http://www.craftycontrol.com/" target="_blank">Crafty Controller</a>. All rights reserved.</span>
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Version: {{ data['version_data'] }}
</span> </span>
</div> </div>
</footer> </footer>
<!-- partial --> <!-- partial -->

View File

@ -2,13 +2,10 @@
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link count-indicator" id="notificationDropdown" href="#" data-toggle="dropdown"> <a class="nav-link count-indicator" id="notificationDropdown" href="#" data-toggle="dropdown">
<i class="mdi mdi-email-outline"></i> <i class="mdi mdi-email-outline"></i>
<span class="count bg-success">3</span> <!-- <span class="count bg-success">3</span>-->
</a> </a>
<div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list pb-0" aria-labelledby="notificationDropdown"> <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list pb-0" aria-labelledby="notificationDropdown">
<a class="dropdown-item py-3 border-bottom">
<p class="mb-0 font-weight-medium float-left">You have 4 new notifications </p>
<span class="badge badge-pill badge-primary float-right">View all</span>
</a>
<a class="dropdown-item preview-item py-3"> <a class="dropdown-item preview-item py-3">
<div class="preview-thumbnail"> <div class="preview-thumbnail">
<i class="mdi mdi-alert m-auto text-primary"></i> <i class="mdi mdi-alert m-auto text-primary"></i>
@ -45,11 +42,9 @@
<div class="dropdown-header text-center"> <div class="dropdown-header text-center">
<img class="img-md rounded-circle" src="/static/assets/images/faces-clipart/pic-1.png" alt="Profile image"> <img class="img-md rounded-circle" src="/static/assets/images/faces-clipart/pic-1.png" alt="Profile image">
<p class="mb-1 mt-3 font-weight-semibold">{{ data['user_data']['username'] }}</p> <p class="mb-1 mt-3 font-weight-semibold">{{ data['user_data']['username'] }}</p>
<p class="font-weight-light text-muted mb-0">Plan: {{ str(data['user_data']['account_type']).upper() }}</p> <p class="font-weight-light text-muted mb-0">Role: Admin</p>
</div> </div>
<a class="dropdown-item"><i class="dropdown-item-icon mdi mdi-account-outline text-primary"></i> My Profile <span class="badge badge-pill badge-danger">1</span></a>
<a class="dropdown-item"><i class="dropdown-item-icon mdi mdi-calendar-check-outline text-primary"></i> Activity</a> <a class="dropdown-item"><i class="dropdown-item-icon mdi mdi-calendar-check-outline text-primary"></i> Activity</a>
<a class="dropdown-item"><i class="dropdown-item-icon mdi mdi-help-circle-outline text-primary"></i> FAQ</a>
<a class="dropdown-item" href="/public/login"><i class="dropdown-item-icon mdi mdi-power text-primary"></i>Sign Out</a> <a class="dropdown-item" href="/public/login"><i class="dropdown-item-icon mdi mdi-power text-primary"></i>Sign Out</a>
</div> </div>
</li> </li>