diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-07 17:29:11 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-07 17:29:11 +0530 |
commit | c50a59db94a3997c42a96ce9e5d279861f10622a (patch) | |
tree | 222f85fa19cce25817051959f6c9623c14f2c092 /gnowsys-ndf/gnowsys_ndf | |
parent | e4a31f388b272836e61494c01e7a00d28581875a (diff) | |
download | gnowsys-c50a59db94a3997c42a96ce9e5d279861f10622a.tar.gz |
Showing teaches topics in the resource breadcrumb
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html index bb3d0a0..6548448 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html @@ -303,7 +303,6 @@ ul#navigation li a.last { <div class="row page" itemscope itemtype="{{schema.1.type}}"> <section class="medium-9 columns"> - {% if breadcrumbs_list %} <ul class="breadcrumbs"> {% for e in breadcrumbs_list %} @@ -316,6 +315,15 @@ ul#navigation li a.last { </b></li> {% endfor %} </ul> + {% elif node.teaches %} + <ul class="breadcrumbs"> + <li> + {% for each_topic in node.teaches %} + <a href="{% url 'topic_details' group_name_tag each_topic.pk %}" style="color:black;">{{ each_topic.name }},</a> + {% endfor %} + </li> + </ul> + {% endif %} {% if node.status == 'MODERATION' %} @@ -559,23 +567,7 @@ ul#navigation li a.last { --> {% endcomment %} - <div class="small-4 columns"> - {% get_teaches_list node as teaches_list %} - {% if teaches_list %} - <div class="panel"> - <h6>Resource for: </h6> - {% for each_node in teaches_list %} - {% get_grid_fs_object each_node as grid_fs_obj %} - {% if each_node.mime_type %} - <a href="{% url 'read_file' group_name_tag each_node.pk grid_fs_obj.filename %}{% if nav_list %}?nav_li={{nav_list}}{% endif %}">{{ each_node.name }}</a>, - {% else %} - <a href="{% url 'topic_details' group_name_tag each_node.pk %}{% if nav_list %}?nav_li={{nav_list}}{% endif %}">{{ each_node.name }}</a> - {% if not forloop.last %}, {% endif %} - {% endif %} - {% endfor %} - </div> - {% endif %} - </div> + <div class="small-4 columns"> </div> <div class="small-4 small-pull-4 columns"> <!-- {#% if node.assesses %#} --> |