Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finish moving about.html to static/

  • Loading branch information...
commit 05cbd7ab3d117f88d83f93d1cd729765c0c882f1 1 parent d0b8206
@ihanson ihanson authored
View
4 handlers.py
@@ -69,10 +69,6 @@ def get(self):
options["lang"] = None
self.render("root.html", **options)
-class AboutHandler(tornado.web.RequestHandler):
- def get(self):
- self.render("about.html")
-
class KernelHandler(tornado.web.RequestHandler):
"""
Kernel startup request handler.
View
4 static/about.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <link rel="icon" href="{{ static_url('favicon.ico') }}">
- <link rel="stylesheet" href="{{ static_url('root.css') }}">
+ <link rel="icon" href="favicon.ico">
+ <link rel="stylesheet" href="root.css">
<title>About the Sage Cell Server</title>
</head>
<body>
View
2  templates/root.html
@@ -26,6 +26,6 @@
<h1><a href="http://www.sagemath.org">Sage</a> Cell Server</h1>
Type some Sage code below and press Evaluate.
<div id="sagecell"></div>
- <a href="about.html" id="sagecell_about">About Sage Cell Server</a>
+ <a href="{{ static_url('about.html') }}" id="sagecell_about">About Sage Cell Server</a>
</body>
</html>
View
1  web_server.py
@@ -33,7 +33,6 @@ class SageCellServer(tornado.web.Application):
def __init__(self):
handlers_list = [
(r"/", handlers.RootHandler),
- (r"/about.html", handlers.AboutHandler),
(r"/kernel", handlers.KernelHandler),
(r"/embedded_sagecell.js", tornado.web.RedirectHandler, {"url":"/static/embedded_sagecell.js"}),
(r"/sagecell.html", handlers.SageCellHandler),
Please sign in to comment.
Something went wrong with that request. Please try again.