summaryrefslogtreecommitdiffstats
path: root/equations/templates/equations/equation_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'equations/templates/equations/equation_detail.html')
-rw-r--r--equations/templates/equations/equation_detail.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/equations/templates/equations/equation_detail.html b/equations/templates/equations/equation_detail.html
index b4c3911..978b2e1 100644
--- a/equations/templates/equations/equation_detail.html
+++ b/equations/templates/equations/equation_detail.html
@@ -3,19 +3,25 @@
{% block title %}{{ object.name }}{% endblock %}
{% block content %}
-<div style="width: 100px; text-align:center;">
+<div style="width: 100%; text-align:center;">
<img src="{{ object.get_render_url }}" style="border: none;" /></div>
+<br />
<table width="100%">
{% if object.description %}
- <tr><td><b>Description:</b></td><td>{{ object.description }}</td></tr>
+ <tr><td width="25%"><b>Description:</b></td><td>{{ object.description }}
+ </td></tr>
+{% endif %}
+{% if object.reference %}
+ <tr><td><b>Reference:</b></td><td>
+ <a href="{{ object.reference }}">{{ object.reference }}</a></td></tr>
{% endif %}
{% if object.variables %}
<tr><td><b>Variables:</b></td><td>
- {% for variable in object.variables %}
+ {% for variable in object.variables.all %}
<a href="{{ variable.get_absolute_url }}">{{ variable.name }}</a><br />
{% endfor %}
{% endif %}
- <tr><td><b>Raw LaTeX:</b></td><td>{{ object.latex }}</td></tr>
+ <tr><td><b>Raw LaTeX:</b></td><td><pre>{{ object.latex }}</pre></td></tr>
{% if object.unicode %}
<tr><td><b>Unicode:</b></td><td>{{ object.unicode }}</td></tr>
{% endif %}