diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-10-29 18:23:04 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-10-29 18:23:04 -0700 |
commit | a9c1b23705fe609bb88adff2103ad5849c9b3f1f (patch) | |
tree | db6549f5a5bb6915ad4fd457cfc2b442ce59e07a /webface | |
parent | bb907287a9f923615b9f52dbf3a37d7fea20f58e (diff) | |
download | modelthing-a9c1b23705fe609bb88adff2103ad5849c9b3f1f.tar.gz modelthing-a9c1b23705fe609bb88adff2103ad5849c9b3f1f.zip |
show example models in webface
Diffstat (limited to 'webface')
-rw-r--r-- | webface/templates/model_list.html | 11 | ||||
-rw-r--r-- | webface/templates/model_view.html | 18 |
2 files changed, 21 insertions, 8 deletions
diff --git a/webface/templates/model_list.html b/webface/templates/model_list.html new file mode 100644 index 0000000..db11bdc --- /dev/null +++ b/webface/templates/model_list.html @@ -0,0 +1,11 @@ +{{# partial content}} +<h1>Example Models</h1> + +<ul> +{{#each model_slug_list slug}} +<li><a href="/model/{{this}}/">{{ this }}</a> +{{/each}} +</ul> + +{{/partial}} +{{~> base.html~}} diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html index 4dba406..4add92b 100644 --- a/webface/templates/model_view.html +++ b/webface/templates/model_view.html @@ -1,17 +1,19 @@ {{# partial content}} -<h1>{{ model_id }}</h1> +<h1>{{ model_slug }}</h1> -<b>Full Name</b>: {{ model.name }} +<h2>Metadata</h2> +<dl> + <li><b>Full Name</b>: {{ model_name }} + <li><b>Description</b>: {{ model_description }} +</dl> -<b>Raw Model:</b> +<h2>Modelica</h2> <pre> -{{ raw_model }} +{{ modelica }} </pre> - -<h2>Other Info</h2> -{{ page_text }} - +<h2>Wiki Page</h2> +{{ markdown }} {{/partial}} {{~> base.html~}} |