-
Notifications
You must be signed in to change notification settings - Fork 8
Remove Jinja and use Tornado templates #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ca494b2
29c9722
d8e9555
f79bca6
5cce351
fbe82d2
037e7ef
debf792
57153cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| {% extends "page.html" %} | ||
|
|
||
| {% set skin = "skin-red" %} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With tornado |
||
| {% block skin %} skin-red {% end %} | ||
|
|
||
| {% block sidebar %} | ||
| <section class="sidebar"> | ||
|
|
@@ -12,7 +12,7 @@ | |
| <router-link to="/applications" tag="li" exact-active-class="active"><a>Applications</a></router-link> | ||
| </ul> | ||
| </section> | ||
| {% endblock %} | ||
| {% end %} | ||
|
|
||
| {% block main %} | ||
| <section class="content"> | ||
|
|
@@ -25,9 +25,8 @@ | |
| <!-- component matched by the route will render here --> | ||
| <router-view></router-view> | ||
| </section> | ||
| {% endblock %} | ||
| {% end %} | ||
|
|
||
| {% block script_init %} | ||
| {{ super() }} | ||
| <script src="{{ static_url("dist/admin.js") }}"></script> | ||
| {% endblock %} | ||
| {% end %} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,78 @@ | ||
| {% extends "page.html" %} | ||
|
|
||
| {% block login_widget %} | ||
| {% endblock %} | ||
|
|
||
| {% block main %} | ||
|
|
||
| <div class="error"> | ||
| {% block h1_error %} | ||
| <h1> | ||
| {{status_code}} : {{status_message}} | ||
| </h1> | ||
| {% endblock h1_error %} | ||
| {% block error_detail %} | ||
| {% if message %} | ||
| <p> | ||
| {{message}} | ||
| </p> | ||
| {% endif %} | ||
| {% if message_html %} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't find any other reference to |
||
| <p> | ||
| {{message_html | safe}} | ||
| </p> | ||
| {% endif %} | ||
| {% endblock error_detail %} | ||
| </div> | ||
|
|
||
| {% endblock %} | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <title>{% block title %}RemoteApp Manager{% end %}</title> | ||
| <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> | ||
|
|
||
| <link rel="stylesheet" href="{{ static_url("dist/sharedDependencies.css")}}"> | ||
|
|
||
| <script type="text/javascript"> | ||
| // This will always be executed and create the basic ga function that | ||
| // does nothing | ||
| window.ga = function () { | ||
| (window.ga.q = window.ga.q || []).push(arguments); | ||
| }; | ||
| window.ga.l = 1 * new Date(); | ||
| window.GoogleAnalyticsObject = "ga"; | ||
| </script> | ||
| {% if analytics is not None %} | ||
| <script src='https://www.google-analytics.com/analytics.js' async type="text/javascript"></script> | ||
| {% end %} | ||
| </head> | ||
|
|
||
| <body class="fixed hold-transition skin-blue sidebar-mini"> | ||
|
|
||
| <noscript> | ||
| <div id='noscript'> | ||
| Jupyter Hub requires JavaScript.<br> | ||
| Please enable it to proceed. | ||
| </div> | ||
| </noscript> | ||
|
|
||
| <div class="wrapper" id="app"> | ||
|
|
||
| <!-- Main Header --> | ||
| <header class="main-header"> | ||
| <a href="#" class="logo"> | ||
| <!-- logo for regular state and mobile devices --> | ||
| <span class="logo-lg"><b>Simphony</b>Remote</span> | ||
| </a> | ||
| </header> | ||
|
|
||
| <aside class="main-sidebar"> | ||
| </aside> | ||
|
|
||
| <div class="content-wrapper"> | ||
| <!-- Main content --> | ||
| <div class="error"> | ||
| <h1> | ||
| {{status_code}} : {{status_message}} | ||
| </h1> | ||
| {% if message %} | ||
| <p> | ||
| {{message}} | ||
| </p> | ||
| {% end %} | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div id="error-dialog-container"></div> | ||
|
|
||
| <script src="{{ static_url("dist/sharedDependencies.js") }}"></script> | ||
|
|
||
| <script type="text/javascript"> | ||
| window.apidata = { | ||
| base_url: "{{ base_url }}", | ||
| {% if analytics is not None %} | ||
| analytics: { | ||
| tracking_id: "{{ analytics['tracking_id'] }}" | ||
| }, | ||
| {% end %} | ||
| } | ||
| </script> | ||
|
|
||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the name of the admin and user page files because when doing
{% extends "page.html" %}they were loading themselves resulting on an infinite loop.