-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from minelminel/Feature/custom-branding
Feature/custom branding
- Loading branch information
Showing
7 changed files
with
200 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,89 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en" ng-app="fmdApp"> | ||
<head> | ||
<title>Flask-MonitoringDashboard</title> | ||
<base href="{{ url_for(blueprint_name + '.index') }}"> | ||
<meta charset="utf-8"> | ||
<head> | ||
<title>{{ title_name }}</title> | ||
<base href="{{ url_for(blueprint_name + '.index') }}" /> | ||
<meta charset="utf-8" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
|
||
<link rel="stylesheet" | ||
href="{{ url_for(blueprint_name + '.static', filename='css/app.css') }}"/> | ||
<link | ||
rel="stylesheet" | ||
href="{{ url_for(blueprint_name + '.static', filename='css/app.css') }}" | ||
/> | ||
|
||
<link rel="shortcut icon" | ||
href="{{ url_for(blueprint_name + '.static', filename='img/favicon.ico') }}"/> | ||
</head> | ||
<link | ||
rel="shortcut icon" | ||
href="{{ url_for(blueprint_name + '.static', filename='img/favicon.ico') }}" | ||
/> | ||
</head> | ||
|
||
{% block body %} | ||
<body class="fixed-nav sticky-footer bg-dark" id="page-top"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav"> | ||
<div class="navbar-brand brand-plain"> | ||
<a href="overview"><h4>Flask Monitoring Dashboard</h4></a> | ||
</div> | ||
{% block body %} | ||
<body class="fixed-nav sticky-footer bg-dark" id="page-top"> | ||
<nav | ||
class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" | ||
id="mainNav" | ||
> | ||
<div class="navbar-brand brand-plain"> | ||
<a href="overview"><h4>{{ brand_name }}</h4></a> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="navbarResponsive"> | ||
<menu></menu> | ||
<ul class="navbar-nav sidenav-toggler"> | ||
<li class="nav-item"> | ||
<a class="nav-link text-center" id="sidenavToggler"> | ||
<i class="fa fa-fw fa-angle-left"></i> | ||
</a> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item"> | ||
<span style="color: #adb5bd;"> | ||
Automatically monitor the evolving performance of Flask/Python web services | ||
</span> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" data-toggle="modal" data-target="#logoutModal"> | ||
<i class="fas fa-sign-out-alt"></i>Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="collapse navbar-collapse" id="navbarResponsive"> | ||
<menu></menu> | ||
<ul class="navbar-nav sidenav-toggler"> | ||
<li class="nav-item"> | ||
<a class="nav-link text-center" id="sidenavToggler"> | ||
<i class="fa fa-fw fa-angle-left"></i> | ||
</a> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item"> | ||
<span style="color: #adb5bd"> {{ description }} </span> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" data-toggle="modal" data-target="#logoutModal"> | ||
<i class="fas fa-sign-out-alt"></i>Logout</a | ||
> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div class="content-wrapper"> | ||
<div class="container page"> | ||
<div id="content" class="main" ng-view></div> | ||
<div class="container page"> | ||
<div id="content" class="main" ng-view></div> | ||
</div> | ||
<footer class="sticky-footer"> | ||
<div class="container"> | ||
<div class="text-center"> | ||
Click | ||
<a | ||
target="_blank" | ||
href="http://flask-monitoringdashboard.readthedocs.io" | ||
>here</a | ||
> | ||
to read advanced documentation. | ||
</div> | ||
</div> | ||
<footer class="sticky-footer"> | ||
<div class="container"> | ||
<div class="text-center"> | ||
Click <a target="_blank" | ||
href="http://flask-monitoringdashboard.readthedocs.io">here</a> | ||
to read advanced documentation. | ||
</div> | ||
</div> | ||
</footer> | ||
</footer> | ||
|
||
<modal name="'logout'" title="'Logout?'"> | ||
<p>Are you sure you want to logout?</p> | ||
</modal> | ||
<modal name="'logout'" title="'Logout?'"> | ||
<p>Are you sure you want to logout?</p> | ||
</modal> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular-route.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.12.0/d3.min.js"></script> | ||
<script src="https://unpkg.com/sunburst-chart"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular-route.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.12.0/d3.min.js"></script> | ||
<script src="https://unpkg.com/sunburst-chart"></script> | ||
|
||
<script src="{{ url_for(blueprint_name + '.static', filename='js/app.js') }}"></script> | ||
</body> | ||
</html> | ||
<script src="{{ url_for(blueprint_name + '.static', filename='js/app.js') }}"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,81 @@ | ||
{% extends "fmd_base.html" %} | ||
{% block body %} | ||
{% extends "fmd_base.html" %} {% block body %} | ||
|
||
<body> | ||
<div class="container py-5"> | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2"> | ||
|
||
<div class="text-center" style="margin-bottom: 20px; margin-top: -30px;"> | ||
<div style="text-align: center;"> | ||
<img src="{{ url_for(blueprint_name + '.static', filename='img/header.png') }}" width="80%" /> | ||
</div> | ||
<span>Automatically monitor the evolving performance of Flask/Python web services</span> | ||
</div> | ||
</div> | ||
<div class="container py-5"> | ||
{% if show_login_banner %} | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2"> | ||
<div class="text-center" style="margin-bottom: 20px; margin-top: -30px"> | ||
<div style="text-align: center"> | ||
<img | ||
src="{{ url_for(blueprint_name + '.static', filename='img/header.png') }}" | ||
width="80%" | ||
/> | ||
</div> | ||
<span | ||
>Automatically monitor the evolving performance of Flask/Python web | ||
services</span | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="row"> | ||
<div class="col-md-4 offset-md-4"> | ||
<span class="anchor" id="formLogin"></span> | ||
<div class="card card-outline-secondary"> | ||
<div class="card-header"> | ||
<h5>Login</h5> | ||
</div> | ||
|
||
<div class="card-body"> | ||
<form class="form" method="POST" action="login"> | ||
<div class="form-group"> | ||
<label for="formName"><i class="fa fa-user"></i> Login</label> | ||
<input id="formName" name="name" type="text" class="form-control" placeholder="Username" | ||
autofocus required /> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-4 offset-md-4"> | ||
<span class="anchor" id="formLogin"></span> | ||
<div class="card card-outline-secondary"> | ||
<div class="card-header"> | ||
<h5>Login</h5> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="formPassword"><i class="fa fa-lock"></i> Password</label> | ||
<input name="password" type="password" class="form-control" placeholder="Password" | ||
required /> | ||
</div> | ||
<div class="card-body"> | ||
<form class="form" method="POST" action="login"> | ||
<div class="form-group"> | ||
<label for="formName"><i class="fa fa-user"></i> Login</label> | ||
<input | ||
id="formName" | ||
name="name" | ||
type="text" | ||
class="form-control" | ||
placeholder="Username" | ||
autofocus | ||
required | ||
/> | ||
</div> | ||
|
||
<button name="Login" class="btn btn-primary btn-block">Login</button> | ||
</form> | ||
<hr /> | ||
<div class="form-group"> | ||
<label for="formPassword" | ||
><i class="fa fa-lock"></i> Password</label | ||
> | ||
<input | ||
name="password" | ||
type="password" | ||
class="form-control" | ||
placeholder="Password" | ||
required | ||
/> | ||
</div> | ||
|
||
<div class="text-center"> | ||
For advanced documentation, see | ||
<a target="_blank" href="http://flask-monitoringdashboard.readthedocs.io">this site</a> | ||
</div> | ||
</div> | ||
</div> | ||
<button name="Login" class="btn btn-primary btn-block"> | ||
Login | ||
</button> | ||
</form> | ||
<hr /> | ||
{% if show_login_footer %} | ||
<div class="text-center"> | ||
For advanced documentation, see | ||
<a | ||
target="_blank" | ||
href="http://flask-monitoringdashboard.readthedocs.io" | ||
>this site</a | ||
> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters