Skip to content

Commit

Permalink
added more info to web
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed May 15, 2020
1 parent dbf6ac1 commit 4129d7c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
12 changes: 12 additions & 0 deletions arcovid19/web/bp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@

import pandas as pd

from .. import (
__doc__ as ARCOVID19_RESUME,
__version__ as ARCOVID19_VERSION)

from ..models import load_infection_curve, InfectionCurve
from . import forms

Expand Down Expand Up @@ -189,6 +193,14 @@ def dispatch_request(self):

wavid19 = flask.Blueprint("arcovid19", "arcovid19.web.bp")


@wavid19.context_processor
def inject_arcovid19():
return {
"ARCOVID19_RESUME": ARCOVID19_RESUME,
"ARCOVID19_VERSION": ARCOVID19_VERSION}


wavid19.add_url_rule(
'/', view_func=InfectionCurveView.as_view("index"))
wavid19.add_url_rule(
Expand Down
21 changes: 16 additions & 5 deletions arcovid19/web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@
<nav class="navbar navbar-icon-top navbar-expand-md bg-dark navbar-dark">

<!-- Brand -->
<a class="navbar-brand" href="#">
<a class="navbar-brand" href="{{ url_for('arcovid19.index') }}">
<strong class="text-success">AR</strong>covid19
<small>v.{{ARCOVID19_VERSION}}</small>
</a>

<!-- Toggler/collapsibe Button -->
Expand All @@ -88,6 +89,12 @@
IC Models
</a>
</li>
<li class="nav-item">
<a class="nav-link active" target="_new" href="https://arcovid19.readthedocs.io/">
<i class="fa fa-life-ring"></i>
Help
</a>
</li>
</ul>

</div>
Expand All @@ -114,10 +121,14 @@
<div class="container-fluid footer p-0">
<footer>
<div class="footer-copyright text-center py-3">
© 2020 Copyright:
<a target="_new" href="https://ivco19.github.io/"> Arcovid19</a>
<br>
<a href="https://arcovid19.readthedocs.io/" target="_new">More info</a>

© 2020 Copyright:
<a target="_new" href="https://ivco19.github.io/"> Arcovid19</a>
<br>
{{ ARCOVID19_RESUME }}
<br>
<a href="https://arcovid19.readthedocs.io/" target="_new">More info</a>

</div>
</footer>
</div>
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ignore =
.travis.yml
Procfile
heroku_*
requirements.txt
tox.ini
docs/**
report/**
Expand Down

0 comments on commit 4129d7c

Please sign in to comment.