summaryrefslogtreecommitdiffstats
path: root/equations/templates
diff options
context:
space:
mode:
Diffstat (limited to 'equations/templates')
-rw-r--r--equations/templates/equations/equation_detail.html27
-rw-r--r--equations/templates/equations/equation_list.html24
2 files changed, 51 insertions, 0 deletions
diff --git a/equations/templates/equations/equation_detail.html b/equations/templates/equations/equation_detail.html
new file mode 100644
index 0000000..b4c3911
--- /dev/null
+++ b/equations/templates/equations/equation_detail.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+
+{% block title %}{{ object.name }}{% endblock %}
+
+{% block content %}
+<div style="width: 100px; text-align:center;">
+<img src="{{ object.get_render_url }}" style="border: none;" /></div>
+<table width="100%">
+{% if object.description %}
+ <tr><td><b>Description:</b></td><td>{{ object.description }}</td></tr>
+{% endif %}
+{% if object.variables %}
+ <tr><td><b>Variables:</b></td><td>
+ {% for variable in object.variables %}
+ <a href="{{ variable.get_absolute_url }}">{{ variable.name }}</a><br />
+ {% endfor %}
+{% endif %}
+ <tr><td><b>Raw LaTeX:</b></td><td>{{ object.latex }}</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 %}
diff --git a/equations/templates/equations/equation_list.html b/equations/templates/equations/equation_list.html
new file mode 100644
index 0000000..c7a9632
--- /dev/null
+++ b/equations/templates/equations/equation_list.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block title %}Check out all these equations!{% endblock %}
+
+{% block content %}
+{% if object_list %}
+<table width="!00%">
+ {% for item in object_list %}
+ <tr style="height:50px;"><td style="width:45%;">
+ <a href="{{ item.get_absolute_url }}" class="imglink">
+ <img style="border: none;" src="{{ item.get_render_url }}" /></a>
+ </td><td style="width: 55%"><a href="{{ item.get_absolute_url }}">
+ {{ item.name }}</a></td></tr>
+ {% endfor %}
+</table>
+{% if not is_paginated %}<br />{% if not has_previous %}
+<b><a href="./?page={{ previous }}" style="float:left;">&lt;PREV</a></b>
+{% endif %}{% if has_next %}
+<b><a href="./?page={{ next }}" style="float:right;">NEXT&gt;</a></b>
+{% endif %}{% endif %}
+{% else %}
+Fuck, where are they?
+{% endif %}
+{% endblock %}