changing namespace and urls

This commit is contained in:
2013-07-27 22:23:05 +10:00
parent dd8614fdff
commit 08e36dacb1
19 changed files with 68 additions and 94 deletions

View File

@@ -0,0 +1,7 @@
<ul>
{% for child in children %}
<li> <a href="{{ child.get_absolute_url }}">{{ child }}</a></li>
{% child.children.count > 0 %}
{% children_list child %}
{% endfor %}
</ul>

View File

@@ -0,0 +1 @@
{% children_tag parent %}

View File

@@ -0,0 +1 @@
<h1>{{ sample.name }}</h1>

View File

@@ -0,0 +1,9 @@
{% if active_samples %}
<ul>
{% for sample in active_samples %}
<li><a href="{% url 'three_d_viewer:detail' sample.id %}">{{ sample.name }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No samples are available.</p>
{% endif %}