aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}}