diff options
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~}} |