aboutsummaryrefslogtreecommitdiffstats
path: root/webface
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-06 17:49:57 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-06 17:49:57 -0800
commitf606f6acb36e028e66fa4225ed7d46d2bd653f6f (patch)
tree1a400667e4e37c92dc42317de6d248034e1d95d7 /webface
parenta7fb72e1a4a5f371326fe1efe8aeffb75bde243d (diff)
downloadmodelthing-f606f6acb36e028e66fa4225ed7d46d2bd653f6f.tar.gz
modelthing-f606f6acb36e028e66fa4225ed7d46d2bd653f6f.zip
webface: bit of reordering
Diffstat (limited to 'webface')
-rw-r--r--webface/templates/base.html2
-rw-r--r--webface/templates/model_view.html25
2 files changed, 14 insertions, 13 deletions
diff --git a/webface/templates/base.html b/webface/templates/base.html
index b427d3a..66a0cca 100644
--- a/webface/templates/base.html
+++ b/webface/templates/base.html
@@ -15,7 +15,7 @@ body { font-family: monospace; font-size: larger; line-height: 1.3; }
{{~#block content}}{{/block~}}
<br><br>
-<center>
+<center style="font-size: 0.9em;">
<a href="/m/examples/">examples index</a> -
<a href="/readme/">full readme</a> -
<a href="https://git.bnewbold.net/modelthing">source code</a>
diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html
index 11ffab7..5d307c7 100644
--- a/webface/templates/model_view.html
+++ b/webface/templates/model_view.html
@@ -1,18 +1,19 @@
{{# partial content}}
-<h1>{{ model_slug }}</h1>
+<h1 style="margin-bottom: 0.1em;">{{ model_name }}</h1>
+<span style="font-size: 0.9em;">
+<a href="edit/">edit</a> -
+<a href="raw/">modelica</a> -
+<a href="repr/?format=scheme">scheme</a> -
+<a href="repr/?format=javascript">javascript</a> -
+<a href="repr/?format=latex">latex</a>
+</span>
+<p><i style="color: #222222;">{{ model_description }}</i>
-<h2>Metadata</h2>
-<dl>
- <li><b>Full Name</b>: {{ model_name }}
- <li><b>Description</b>: {{ model_description }}
-</dl>
+<br><br>
+<pre style="margin-left: 0.25em; border-left: 4px solid #BBBBBB; padding: 0.5em;">
+{{ modelica }}</pre>
+<br>
-<h2>Modelica</h2>
-<pre>
-{{ modelica }}
-</pre>
-
-<h2>Wiki Page</h2>
{{{ markdown_html }}}
{{/partial}}