-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The report title, primary color and traffic light colors are now configurable. Co-authored-by: pradyot-09 <[email protected]>
- Loading branch information
1 parent
72df86d
commit 37fcd0e
Showing
16 changed files
with
130 additions
and
97 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
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,20 +1,20 @@ | ||
<table width="95%" style="margin-bottom: 30px;"> | ||
{% for feature, vals in values.items() %} | ||
{%- for feature, vals in values.items() -%} | ||
<tr> | ||
<td width="20%" style="text-align:center;"><a class="table-item" href="#" data-feature="{{ feature }}">{{ feature }}</a></td> | ||
<td width="80%"> | ||
<div class="tl-container"> | ||
{% for i in [2, 1, 0] %} | ||
{% if vals[i] > 0 %} | ||
<div style="width: calc({{ vals[i] }} / {{ vals['total'] }} * 100%)" class="tl-bar {% if i == 2%}r{%elif i == 1%}y{%else%}g{%endif%}"> | ||
{%- for i in [2, 1, 0] -%} | ||
{%- if vals[i] > 0 -%} | ||
<div style="width: calc({{ vals[i] }} / {{ vals['total'] }} * 100%)" class="tl-bar {% if i == 2 %}r{% elif i == 1 %}y{% else %}g{% endif %}"> | ||
{{ vals[i] }} ({{ "%d" % (vals[i] / (vals["total"] * 0.01))}}%) | ||
</div> | ||
{% else %} | ||
{%- else -%} | ||
<div style="width: 0%"> </div> | ||
{% endif %} | ||
{% endfor %} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
</div> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
{%- endfor -%} | ||
</table> |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<meta name="description" content="Automatically generated population shift report" /> | ||
<meta name="url" content="https://github.com/ing-bank/popmon" /> | ||
|
||
<title>POPMON Report</title> | ||
<title>{{ title | striptags }}</title> | ||
|
||
{%- if online_report %} | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
|
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,15 +1,14 @@ | ||
<!-- Navigation --> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav"> | ||
<div class="container"> | ||
<a class="navbar-brand js-scroll-trigger">POPMON REPORT</a> | ||
<a class="navbar-brand js-scroll-trigger">{{ title }}</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarResponsive"> | ||
<ul class="navbar-nav ml-auto" id="navigation-sections"></ul> | ||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter" style="background-color: transparent; border-color: #666"> | ||
<button id="settings-btn" type="button" class="btn btn-primary" data-toggle="modal" data-target="#settingsModalCenter"> | ||
⚙ | ||
</button> | ||
</div> | ||
</div> | ||
</nav> | ||
</nav> |
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
Oops, something went wrong.