From ecec43046e5e031351c5369f80558c677636faea Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 Nov 2016 16:47:15 +0800 Subject: webui: Split "header.html" into "header-{base,index}.html" --- fg21sim/webui/templates/header-base.html | 33 +++++++++++++++++++++++++++++ fg21sim/webui/templates/header-index.html | 22 +++++++++++++++++++ fg21sim/webui/templates/header.html | 35 ------------------------------- 3 files changed, 55 insertions(+), 35 deletions(-) create mode 100644 fg21sim/webui/templates/header-base.html create mode 100644 fg21sim/webui/templates/header-index.html delete mode 100644 fg21sim/webui/templates/header.html diff --git a/fg21sim/webui/templates/header-base.html b/fg21sim/webui/templates/header-base.html new file mode 100644 index 0000000..607b6f1 --- /dev/null +++ b/fg21sim/webui/templates/header-base.html @@ -0,0 +1,33 @@ +{# + # Copyright (c) 2016 Weitian LI + # MIT license + # + # Template of the basic header + #} + +{% block navigator %} + +{% end %} {# block navigator #} diff --git a/fg21sim/webui/templates/header-index.html b/fg21sim/webui/templates/header-index.html new file mode 100644 index 0000000..c801040 --- /dev/null +++ b/fg21sim/webui/templates/header-index.html @@ -0,0 +1,22 @@ +{# + # Copyright (c) 2016 Weitian LI + # MIT license + # + # Header of the index page + #} + +{% extends "header-base.html" %} + +{% block header_contents %} + + + N/A + + + + +{% end %} diff --git a/fg21sim/webui/templates/header.html b/fg21sim/webui/templates/header.html deleted file mode 100644 index e1cd367..0000000 --- a/fg21sim/webui/templates/header.html +++ /dev/null @@ -1,35 +0,0 @@ -{# - # Copyright (c) 2016 Weitian LI - # MIT license - # - # Header part - #} - -- cgit v1.2.2