changing namespace and urls
This commit is contained in:
parent
dd8614fdff
commit
08e36dacb1
19 changed files with 68 additions and 94 deletions
7
project_directory/three_d_viewer/templates/children.html
Normal file
7
project_directory/three_d_viewer/templates/children.html
Normal 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>
|
||||
1
project_directory/three_d_viewer/templates/main.html
Normal file
1
project_directory/three_d_viewer/templates/main.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{% children_tag parent %}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<h1>{{ sample.name }}</h1>
|
||||
|
|
@ -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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue