~cedric/guardian

dc53aca893f10b4d43fe2c24d868226033edc905 — Cédric Bonhomme 17 days ago 4ab4983
chg: updated package.json for the symlink to the node_modules folder.
3 files changed, 5 insertions(+), 5 deletions(-)

M guardian/main.py
M guardian/templates/report.html
M reports/package.json
M guardian/main.py => guardian/main.py +1 -1
@@ 112,7 112,7 @@ def run():

    if arguments.html_report:
        print("Generating HTML status page...")
        template = Template(open('guardian/templates/report.html').read())
        template = Template(open('guardian/templates/index.html').read())
        outputHTML = template.render(reports=reports, end_date=end_date)
        with open("reports/report.html", "w") as f:
            f.write(outputHTML)

M guardian/templates/report.html => guardian/templates/report.html +3 -3
@@ 5,9 5,9 @@
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="description" content="Guardian report" />
  <title>Guardian report</title>
  <link rel="stylesheet" type="text/css" href="static/node_modules/bootstrap/dist/css/bootstrap.min.css" media="screen" />
  <script type="text/javascript" src="static/node_modules/popper.js/dist/umd/popper.min.js"></script>
  <script type="text/javascript" src="static/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
  <link rel="stylesheet" type="text/css" href="static/npm_components/bootstrap/dist/css/bootstrap.min.css" media="screen" />
  <script type="text/javascript" src="static/npm_components/popper.js/dist/umd/popper.min.js"></script>
  <script type="text/javascript" src="static/npm_components/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
<body>
  <nav class="navbar navbar-expand-lg">

M reports/package.json => reports/package.json +1 -1
@@ 4,7 4,7 @@
  "description": "Check the status of interdependent services.",
  "private": true,
  "scripts": {
  "postinstall": "cd static/ ; ln -sf ../node_modules npm_components"
    "postinstall": "mkdir static/ ; cd static/ ; ln -sf ../node_modules npm_components"
  },
  "author": "Cédric Bonhomme",
  "license": "AGPL-3.0-or-later",