Luke Plant avatar Luke Plant committed 8f7feca

Quick fix for URLs

Comments (0)

Files changed (2)

seating_planner/templates/download_iframe.html

     $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
   </script>
   <body>
-    <form method="POST" action="{{ url_for('download_file') }}">
+    <form method="POST" action="/seating-planner{{ url_for('download_file') }}">
       <textarea name="data"></textarea>
       <input type="text" name="filename">
     </form>

seating_planner/templates/index.html

     <script src="//handsontable.com/dist/jquery.handsontable.full.js"></script>
     <link rel="stylesheet" media="screen" href="//handsontable.com/dist/jquery.handsontable.full.css">
     <script type=text/javascript>
-      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
+      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }} + "/seating-planner/";
     </script>
-    <script src="{{ url_for('static', filename='connections.js') }}"></script>
-    <script src="{{ url_for('static', filename='plans.js') }}"></script>
-    <link rel="stylesheet" media="screen" href="{{ url_for('static', filename='style.css') }}">
+    <script src="/seating-planner{{ url_for('static', filename='connections.js') }}"></script>
+    <script src="/seating-planner{{ url_for('static', filename='plans.js') }}"></script>
+    <link rel="stylesheet" media="screen" href="/seating-planner{{ url_for('static', filename='style.css') }}">
   <body>
     <h1>Seating planner</h1>
 
     <h2>Plans</h2>
 
     <p><input type="submit" id="find-solution" value="Find solution">
-      <img id="loading" src="{{ url_for('static', filename='loading.gif') }}" style="display: none;">
+      <img id="loading" src="/seating-planner{{ url_for('static', filename='loading.gif') }}" style="display: none;">
     </p>
 
     <p>Plans display groups of people, with the number of other people on their
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.