blob: c1bd6fc431c7fb4c9a4c8f23bb88777de4627e77 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{% extends "ndf/node_details_base.html" %}
{% load i18n %}
{% block title %} {{title}} {% endblock %}
{% block url %}{% url 'create_edit' groupid node %}{% endblock %}
<!-- overide head block from base.html -->
{% block head %}
<!-- <script src="/static/ndf/js/tree.jquery.js"></script> -->
<script src="/static/ndf/bower_components/jqtree/tree.jquery.js"></script> <!-- checked -->
<script type="text/javascript">
$(document).ready(function()
{
$(function() {
$('.tree').tree({
autoOpen: 0
});
});
});
</script>
{% endblock %}
<!-- overiding block from node_detail_base.html -->
{% block meta_content %}
{% endblock %}
<!-- overiding block_related content -->
{% block related_content %}
<section class="medium-6 large-12 columns">
<h3>{% trans "Modules " %}</h3>
<div class ="row">
<!-- bellow div for making tree from json data -->
<div class="tree" data-url="{% url 'get_module_json' groupid %}?_id={{node.pk}}"></div>
</div>
</section>
{% endblock %}
<!-- overiding block from node_detail_base.html -->
{% block collection_content %}
{% endblock %}
<!-- overiding block from node_detail_base.html -->
{% block body_content %}
<header class="row page">
<section class="medium-2 columns">
<div class="label-list">
{% for tag in node.tags %}
<span class="radius label">{{tag}}</span>
{% endfor %}
</div>
</section>
<section class="medium-10 columns" >
<h2>
<span class='node'>{{node.name}}</span>
<!--<span><a class="button" href="{% url 'create_edit' groupid node.pk %}">Edit</a></span>-->
</h2>
<h3 class="subheader"></h3>
<small>
{{ node.last_update|timesince }} {% trans "ago edited by " %}<a class="user">{% trans "User " %}</a> <a href="#view-changes"><i class="fi-clock"></i> View history</a>
</small>
</section>
</header>
<div class="row">
{% with node.html_content|safe as description %}
{% if description != "None" %}
{{ description }}
{% endif %}
{% endwith %}
</div>
{% endblock %}
|