aboutsummaryrefslogtreecommitdiffstats
path: root/webface
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-29 18:23:04 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-29 18:23:04 -0700
commita9c1b23705fe609bb88adff2103ad5849c9b3f1f (patch)
treedb6549f5a5bb6915ad4fd457cfc2b442ce59e07a /webface
parentbb907287a9f923615b9f52dbf3a37d7fea20f58e (diff)
downloadmodelthing-a9c1b23705fe609bb88adff2103ad5849c9b3f1f.tar.gz
modelthing-a9c1b23705fe609bb88adff2103ad5849c9b3f1f.zip
show example models in webface
Diffstat (limited to 'webface')
-rw-r--r--webface/templates/model_list.html11
-rw-r--r--webface/templates/model_view.html18
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~}}