{% extends "ndf/base.html" %} {% load i18n %} {% load ndf_tags %} {% get_group_name groupid as group_name_tag %} {% block title %} {{ node.member_of_names_list|join:", " }} - {{ node.name }} {% endblock %} {% block head %} {% endblock %} {% block style %} .topic.accordion dd > a{ background: none; {# color: Gray; #} } {% endblock style %} {% block meta_content %} {{block.super }}
{% firstof node.name node.altnames node.name %}

{% endblock %} {% block related_content %} {% endblock %} {% block collection_content %} {% check_group node.pk as is_group %} {% comment %} {% if node.collection_set and not node.if_file.original.relurl and not is_group %}
Show Collection
{% endif %} {% endcomment %} {% if node.collection_set %}
{% include "ndf/collection_ajax_view.html" %}
{% endif %} {% if not 'video' in node.if_file.mime_type and not is_group %}
Change Thumbnail
{% include "ndf/widget_photo_upload.html" with node_id=node.pk url_name="file" widget_for="file_detail_view" is_banner=False is_profile=False is_thumbnail=True %}
{% endif %} {% if node.teaches %}
Teaches


{% endif %} {% endblock %} {% block add_resource_content %} {% comment %} {% user_access_policy groupid request.user as user_access %} {% if user.is_authenticated %} {% if user_access == "allow" %} {% if topic %}
{% trans "Add resources in this topic " %}
  {% trans "Add Page " %}   

{% trans "Add New Page: " %}

{% include "ndf/add_editor.html" with var_name="content_org" var_placeholder="Enter the content here" %}
×
  {% trans "Add File " %}   

{% trans "Add New File: " %}


{% csrf_token %}
×
  {% trans "Add Events " %}   
{% trans "Add events feature will be coming soon " %} ×
{% endif %} {% endif %} {% else %} {% endif %} {% endcomment %} {% endblock %} {% comment %} {% block shelf_content %} {% if user.is_authenticated %} {% shelf_allowed node as allowed %} {% include "ndf/shelf.html" %} {% else %}

{% trans 'Please Login to create your shelf' %}

{% endif %} {% endblock %} {% endcomment %} {% block breadcrumb %} {% endblock breadcrumb %} {% block body_content %}
{% include "ndf/node_ajax_view.html" %}
{% endblock %} {% block script%} {% comment %} function addNewShelf(shelfName) { shelfNameList = []; $('#shelf-items dd > a').each(function(b){ shelfNameList.push($(this).text())}); if ( ($.inArray(shelfName.toLowerCase(), $.map(shelfNameList, function(n,i){return n.toLowerCase()}))) < 0 ) { shelfNameId = shelfName.split(" ").join("_"); $( "#shelf-items dd:nth-child(1)" ) .after( "
"+shelfName+"
Add this to shelf
" ); } else { alert("{% trans 'Shelf with this name already exist !\n\n Create shelf with different name.' %}"); } } {% endcomment %} {% endblock %}