restart project from sources

This commit is contained in:
Fred Pauchet 2018-10-04 20:48:23 +02:00
parent a37625bc32
commit 88358aca3a
117 changed files with 4747 additions and 4738 deletions

Binary file not shown.

View File

@ -7,6 +7,5 @@ register = template.Library()
@register.inclusion_tag('templatetags/nodes.html')
def display_nodes():
print('test')
nodes = Node.objects.all()
return {'nodes': nodes}

View File

@ -69,7 +69,7 @@
<div class="three wide column">
{% block "content_navigation" %}{% endblock %}
</div>
<div class="ten wide colum">
<div class="nine wide colum">
{% block "content" %}{% endblock %}
</div>
</div>

View File

@ -1,10 +1,13 @@
{% extends "./base.html" %}
{% block "content" %}
{% block "content_navigation" %}
<form action="" method="get">
{{ filter.form.as_p }}
<input type="submit" />
</form>
{% endblock %}
{% block "content" %}
<ul>
{% for obj in filter.qs %}
<li><a href="{% url 'document_details' obj.document.id %}">{{ obj.document }} {{ obj }}</a></li>

View File

@ -1,5 +1,9 @@
{% extends "../base.html" %}
{% block "content_navigation" %}
{{ block.super }}
{% endblock %}
{% block "navigation" %}
{% endblock %}

View File

@ -1,19 +1,22 @@
{% extends "../base.html" %}
{% block "content_navigation" %}
<div class="segment">
{% if standard.measurables %}
{% for measurable in standard.measurables.all %}
<h3>{{ measurable }}</h3>
{{ measurable.get_message_as_markdown | safe }}
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block "content" %}
<h2>{{ standard }}</h2>
{% if standard.measurables %}
<ul>
{% for measurable in standard.measurables.all %}
<li>{{ measurable }}
{{ measurable.get_message_as_markdown | safe }}</li>
{% endfor %}
</ul>
{% endif %}
{% if standard.intent %}
<h2><a href="{% url 'intent_details' standard.intent.id %}">Intent</a></h2>
{{ standard.intent.get_message_as_markdown | safe }}
{% endif %}
{% endblock %}