summaryrefslogtreecommitdiffstats
path: root/equations/templates/equations/equation_detail.html
blob: 968e5ef583e049b0b33ee78e5e17c40f0c377972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "base.html" %}

{% block title %}{{ object.name }}{% endblock %}

{% block content %}
<div style="width: 100%; text-align:center;">
<img src="{{ object.render.url }}" style="border: none;" /></div>
<br />
<table width="100%">
{% if object.description %}
  <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.all %}
    <a href="{{ variable.get_absolute_url }}">{{ variable.name }}</a><br />
    {% endfor %}
{% endif %}
  <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 %}
  <tr><td></td><td><br />
    This equation was created on <i>{{ object.created }}</i>; 
    it was last updated on <i>{{ object.updated }}</i>. It's owner is
    <i>{{ object.owner }}</i>.</td></tr>
</table>
{% endblock %}