app/views/index.html.erb in attractor-0.4.2 vs app/views/index.html.erb in attractor-0.4.3

- old
+ new

@@ -2,11 +2,13 @@ <head> <link href="https://fonts.googleapis.com/css?family=Red+Hat+Display|Red+Hat+Text&display=swap" rel="stylesheet"> <link href="stylesheets/main.css" rel="stylesheet" /> <title>Attractor Output</title> <script src="javascripts/index.pack.js"></script> - <script src="javascripts/index.js"></script> + <% if @serve_static %> + <script src="javascripts/index.js"></script> + <% end %> </head> <body class="d-flex flex-column h-100"> <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top"> <a class="navbar-brand" href="#"> <img src="images/attractor_logo.svg" alt="" width="36"> @@ -17,10 +19,10 @@ <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-body"> <h5 class="card-title">Churn vs Complexity</h5> - <% if@serve_static %> + <% if @serve_static %> <div class="d-flex justify-items-center"> <div id="graph"></div> </div> <% else %> <div id="react-graph"></div>