diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-01-16 16:56:47 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-01-16 16:56:47 -0800 |
commit | 135616d37d1586d243017504777ce8b1bf361151 (patch) | |
tree | 60a39b7079d775c1d603355ed2d114dbe2fd4876 /webface | |
parent | 6c9ec4f093ecfa48fe3a4a3fa99de16c5676d7dc (diff) | |
download | modelthing-135616d37d1586d243017504777ce8b1bf361151.tar.gz modelthing-135616d37d1586d243017504777ce8b1bf361151.zip |
only show compiled models conditionally
Diffstat (limited to 'webface')
-rw-r--r-- | webface/templates/model_view.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html index 30856ce..14ed5ef 100644 --- a/webface/templates/model_view.html +++ b/webface/templates/model_view.html @@ -23,13 +23,18 @@ </h1> <span style="font-size: 0.9em;"> {{# if editable }} -<a href="edit/">edit</a> - -{{/if }} + <a href="edit/">edit</a> - +{{/if}} <a href="markdown/">markdown</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> +<a href="raw/">original modelica</a> + +<br><b>display:</b> + <a href="repr/?format=latex">latex</a> +{{# if computable }} +<br><b>compile:</b> + <a href="repr/?format=scheme">scheme</a> - + <a href="repr/?format=javascript">javascript</a> +{{/if}} </span> <p><i style="color: #222222;">{{ model_description }}</i> |