diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 16:47:49 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 16:47:49 +0800 |
commit | 2573db8dd4084b88d73d628271f270f6ef00e33b (patch) | |
tree | d9e5e40fcfc2c64c505c914c6246bfe4da7bcc8a /fg21sim/webui | |
parent | ecec43046e5e031351c5369f80558c677636faea (diff) | |
download | fg21sim-2573db8dd4084b88d73d628271f270f6ef00e33b.tar.bz2 |
webui: Enhance the "base.html" and simplify the "index.html"
Diffstat (limited to 'fg21sim/webui')
-rw-r--r-- | fg21sim/webui/templates/base.html | 13 | ||||
-rw-r--r-- | fg21sim/webui/templates/index.html | 14 |
2 files changed, 11 insertions, 16 deletions
diff --git a/fg21sim/webui/templates/base.html b/fg21sim/webui/templates/base.html index c8a4f17..1fbc75e 100644 --- a/fg21sim/webui/templates/base.html +++ b/fg21sim/webui/templates/base.html @@ -8,7 +8,10 @@ <html lang="en"> <head> <meta charset="utf-8" /> - <title>{% block title %}TITLE{% end %}</title> + <meta name="author" content="Weitian LI" /> + <meta name="description" content="fg21sim: Realistic Foregrounds Simulation for EoR 21cm Signal Detection" /> + <link rel="icon" type="image/png" href="{{ static_url('images/favicon.png') }}" /> + <title>{% block title %}FG21sim Web UI{% end %}</title> {% block extra_head %}{% end %} {% block css %} @@ -27,7 +30,9 @@ <div class="page"> {% block page %} <header class="masthead" role="banner"> - {% block header %}{% end %} + {% block header %} + {% include "header-base.html" %} + {% end %} </header> <main class="container" role="main"> @@ -35,7 +40,9 @@ </main> <footer class="footer" role="contentinfo"> - {% block footer %}{% end %} + {% block footer %} + {% include "footer.html" %} + {% end %} </footer> {% end %} {# block page #} </div> diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index b23c1b8..150a060 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -7,16 +7,8 @@ {% extends "base.html" %} -{% block title %}fg21sim Web UI{% end %} - -{% block extra_head %} - <meta name="author" content="Weitian LI" /> - <meta name="description" content="fg21sim: Realistic Foregrounds Simulation for EoR 21cm Signal Detection" /> - <link rel="icon" type="image/png" href="{{ static_url('images/favicon.png') }}" /> -{% end %} - {% block header %} - {% include "header.html" %} + {% include "header-index.html" %} {% end %} {% block main %} @@ -25,10 +17,6 @@ {% include "results.html" %} {% end %} -{% block footer %} - {% include "footer.html" %} -{% end %} - {% block extra_script %} <script src="{{ static_url('js/configs.js') }}"></script> <script src="{{ static_url('js/console.js') }}"></script> |