aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-30 16:14:54 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-30 16:14:54 +0800
commit5d304e9ae7456fc61c73170a0b5c260c7b7ad460 (patch)
treecc23ce006f1299bb438554e4606713f5a1509c73
parent59d7b42c818a46e7dff4b6cbd9d87006ff1fc994 (diff)
downloadfg21sim-5d304e9ae7456fc61c73170a0b5c260c7b7ad460.tar.bz2
webui: Add the base template
Tornado template: http://www.tornadoweb.org/en/stable/guide/templates.html
-rw-r--r--fg21sim/webui/templates/base.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/fg21sim/webui/templates/base.html b/fg21sim/webui/templates/base.html
new file mode 100644
index 0000000..e8f24b3
--- /dev/null
+++ b/fg21sim/webui/templates/base.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+{#
+ # Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+ # MIT license
+ #
+ # Tornado base template for the Web UI of "fg21sim"
+ #}
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>{% block title %}TITLE{% end %}</title>
+ {% block extra_head %}{% end %}
+
+ {% block css %}
+ <link rel="stylesheet" href="{{ static_url('css/normalize.css') }}" />
+ <link rel="stylesheet" href="{{ static_url('css/font-awesome.css') }}" />
+ <link rel="stylesheet" href="{{ static_url('css/milligram.css') }}" />
+ <link rel="stylesheet" href="{{ static_url('css/main.css') }}" />
+ {% block extra_css %}{% end %}
+ {% end %}
+
+ {% block head_script %}{% end %}
+</head>
+<body>
+ {% block header %}{% end %}
+
+ {% block main %}{% end %}
+
+ {% block footer %}{% end %}
+
+ {% block script %}
+ <script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
+ <script src="{{ static_url('js/main.js') }}"></script>
+ {% block extra_script %}{% end %}
+ {% end %}
+</body>
+</html>