{% load i18n %} {% load ndf_tags %} {% check_is_gstaff group_id request.user as is_gstaff %} {% user_access_policy groupid request.user as user_access_priv %} {% block head %} {% endblock %} {% include 'ndf/widget_user_access_modal.html' %}
{% if edit or not asset_obj.name %} × {% endif %}
{% if title == "asset_detail" %} {% endif %} {% if title == "raw_material_detail" %} {% endif %} {% if title == "asset_gallery_detail" %} {% endif %}
{% if not edit and asset_obj.name %}

{{asset_obj.name}}

{% if not edit and asset_obj %} {% if asset_obj.created_by == request.user.id or is_gstaff %} {% endif %} {% endif%} {% if request.user.is_authenticated %} {% if 'raw@material' in asset_obj.tags and is_gstaff and title == "raw_material_detail" %} {% endif %} {% if 'asset@gallery' in asset_obj.tags %} {% endif %} {% if title == 'asset_detail' %} {% endif %} {% endif %}
{% if asset_obj.tags %} {% for tag in asset_obj.tags %} {% if tag != "asset@asset" and tag != "raw@material" and tag != "asset@gallery" %} {% endif %} {% endfor %} {% endif %}
{% include 'ndf/rating.html' with node=asset_obj %}

{{asset_obj.content|safe|striptags}}
{% else %}

  {% if not asset_obj %} {% trans "Add a new" %} {% else %} {% trans "Edit" %} {% endif %} {% if title == "raw material" and is_gstaff %} {% trans "Resource" %} {% elif title == "gallery" %} {% trans "Folder" %} {% elif title == "asset_list" %} {% trans "Asset" %} {% endif %}

{% endif %}

{% if edit or not asset_obj %}
{% endif %}
{% endif %}
{% if asset_content_list.grel_id and asset_obj.created_by == request.user.id or is_gstaff and asset_obj and asset_content_list.grel_id %}
{% endif %} {% for each in asset_content_list.grel_node %} {% if 'DELETED' != each.status %}
{{each.name|truncatechars:35}} {% if user.is_authenticated and not group_object.edit_policy == "NON_EDITABLE" or gstaff_access %} {% endif %}
{{each.content|truncatechars:35}}
{% endif %} {% endfor %}
{% if node %}
  {% include "ndf/asset_content_detail.html" with node=node %} {% endif %}

{% if user.is_authenticated %} {% get_thread_node asset_obj.pk as thread_node_obj %} {% if thread_node_obj %} {% get_disc_replies thread_node_obj.pk group_id global_disc_all_replies as all_replies %} {% include 'ndf/in-line-texteditor.html' with node=thread_node_obj var_name="content_org" allow_to_comment=True ckeditor_toolbar="LMSStudentsToolbar" %} {% endif %} {% endif %}
{% endif %}