diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 17:34:02 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 17:34:02 +0800 |
commit | 823fb20c83ff9dedcc5d804f32a0f80ab1810813 (patch) | |
tree | 2d5aa508947941b1c0bd9cf7eaa5e8a14759abe7 /fg21sim/webui/templates/index.html | |
parent | 2573db8dd4084b88d73d628271f270f6ef00e33b (diff) | |
download | fg21sim-823fb20c83ff9dedcc5d804f32a0f80ab1810813.tar.bz2 |
webui: Fix the issues due to the split of "header-{base,index}.html"
Tornado currently do NOT support *nested* template extensions.
* Rename "header-base.html" back to "header.html"
* Merge the contents of "header-index.html" to "index.html"
* Add new block "subtitle" to "base.html"
Diffstat (limited to 'fg21sim/webui/templates/index.html')
-rw-r--r-- | fg21sim/webui/templates/index.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 150a060..9e47472 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -7,9 +7,19 @@ {% extends "base.html" %} -{% block header %} - {% include "header-index.html" %} -{% end %} +{% block header_contents %} + <span id="ws-status" class="label label-default"> + <span class="icon fa fa-question-circle" aria-hidden="true"></span> + <span class="text">N/A</span> + </span> + <span id="ws-reconnect" class="btn fa fa-refresh" aria-hidden="true"></span> + + <ul class="navigation-list float-right"> + <li class="navigation-item"><a class="navigation-link button button-outline" href="#configs" title="Configurations"><span class="fa fa-wrench" aria-hidden="true"></span> Configurations</a></li> + <li class="navigation-item"><a class="navigation-link button button-outline" href="#console" title="Console"><span class="fa fa-gamepad" aria-hidden="true"></span> Console</a></li> + <li class="navigation-item"><a class="navigation-link button button-outline" href="#results" title="Results"><span class="fa fa-files-o aria-hidden="true"></span> Results</a></li> + </ul> +{% end %} {# block header_contents #} {% block main %} {% include "configs.html" %} |