aboutsummaryrefslogtreecommitdiffstats
path: root/webface/templates/model_view.html
diff options
context:
space:
mode:
Diffstat (limited to 'webface/templates/model_view.html')
-rw-r--r--webface/templates/model_view.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html
index 7b8a64d..8aad444 100644
--- a/webface/templates/model_view.html
+++ b/webface/templates/model_view.html
@@ -8,6 +8,11 @@
renderMathInElement(document.body);
});
</script>
+
+<style>
+.mfrac { font-size:0.8em; }
+.infoblock { margin-left: 0.25em; border-left: 4px solid #BBBBBB; }
+</style>
{{/partial}}
@@ -21,7 +26,7 @@
<a href="edit/">edit</a> -
{{/if }}
<a href="markdown/">markdown</a> -
-<a href="raw/">modelica</a> -
+<a href="raw/">original modelica</a> -
<a href="repr/?format=scheme">scheme</a> -
<a href="repr/?format=javascript">javascript</a> -
<a href="repr/?format=latex">latex</a>
@@ -31,15 +36,16 @@
<br><br>
{{# if latex }}
-<div style="margin-left: 0.25em; border-left: 4px solid #BBBBBB; padding: 0.5em;" id="model_latex">
+<div id="model_latex" class="infoblock">
$${{ latex }}$$
</div>
{{/if}}
{{{ markdown_html }}}
+<br>
<h2>Modelica Code</h2>
-<pre style="margin-left: 0.25em; border-left: 4px solid #BBBBBB; padding: 0.5em;">
+<pre id="model_modelica" class="infobox" style="padding: 0.5em;">
{{ modelica }}</pre>
<br>