<commit_before>{% load ndf_tags %}
{% load i18n %}

<style type="text/css">

  .current-resource{
    background-color:#47b079; 
    padding:0.5em;
    cursor: pointer;
  }

  .current-resource div {
    color: #f9f9f9;
  }

</style>


{% comment %}
<!-- 
<ul class="side-nav">
    <nav class="breadcrumbs">
    {% for key,value in breadcrumbs_list %}
       <a name="{{key}}">{{ value }}</a>
    {% endfor %}
  </nav>

  {% if node.collection_dict|length > 0 %}

  {% for index_key, each_node in node.collection_dict.items %}
  {% get_grid_fs_object each_node as grid_fs_obj %}
  
  {% if each_node.collection_set %}
  <li>
   
      <h5>
      <a class="select" class="collection" name="{{each_node.pk}}"><i class="fi-page-multiple"></i>
          {% if 'image' in each_node.mime_type %}<i class="fi-camera"></i>  {% endif %}
    
     {% if 'video' in each_node.mime_type %}<i class="fi-video"></i>  {% endif %}
   
     {% if 'Pandora_video' in each_node.member_of_names_list %}<i class="fi-video"></i>  {% endif %}
          {{ each_node.name }}</a>
      </h5>
  </li>

{% else %}
  
  <li>
      <h6 class="{{ each_node.type }}">
        <a class="select" name="{{each_node.pk}}">{{ each_node.name }}</a>
      </h6>
  </li>

</ul>

  {% endif %}
  {% endfor %}
{% endif %}
 -->
 {% endcomment %}

<ul class="side-nav collection">

  <!-- current page title -->
  {% for key,value in breadcrumbs_list %}
  {% get_memberof_name key as member_of_name %}

  <li id="{{key}}" class="active collection">
      <h5>
          <a class="row" title="{{ member_of_name }} - {{ value }}">
      <div class="small-2 columns text-center">
        <i class="fi-play"></i>
      </div>
      <div class="small-10 columns" name="{{key}}">{{ value | truncatechars:20 }}</div>
               </a>
    </h5>
     
  </li>

  {% endfor %}

  {% if node.collection_dict|length > 0 %}

    {% for index_key, each_node in node.collection_dict.items %}
    {% get_memberof_name each_node.pk as member_of_name %}

      <li id="{{each_node.pk}}">
          <h6>
        <a class="row" name="{{each_node.pk}}" title="{{member_of_name}} | {{ each_node.mime_type }}: {{ each_node.name }}">
          <div class="small-2 small-push-2 columns text-center">

            {% if member_of_name == "File" %}
              {% if "/zip" in each_node.mime_type %}
                <i class="fi-archive"></i>
              {% elif "image" in each_node.mime_type %}
                <!-- <i class="fi-camera"></i> -->
                <img src="{% url 'getImageThumbnail' groupid each_node.pk %}">
              {% elif "/pdf" in each_node.mime_type %}
                <!-- <i class="fi-page-pdf"></i> -->
                <img src="{% url 'getFileThumbnail' group_id each_node.pk %}">
              {% elif "ogg" in each_node.mime_type or "video" in each_node.mime_type %}
                <i class="fi-video"></i>
                <!-- <img src="#{#% url 'getvideoThumbnail' group_id each_node.pk %}"> -->
                <!-- <div style="background:url#(#url 'getvideoThumbnail' group_id each_node.pk)"></div> -->
              {% else %}
                <i class="fi-folder"></i>
              {% endif %}
            {% elif member_of_name == "Page" %}
              <i class="fi-page-filled"></i>
            {% elif member_of_name == "Forum" %}
              <i class="fi-comments"></i>
            {% elif member_of_name == "Quiz" %}
              <i class="fi-graph-bar"></i>
            {% endif %}

          
          </div>
          <div class="small-8 columns" >
            {{ each_node.name | truncatechars:20 }}
          </div>
        </a>
     </h6>
      </li>

    {% endfor %}
  {% endif%}
  
</ul>


<script><commit_msg>bug resolved in displaying image thumbnails in collection panel for a resource<commit_after>{% load ndf_tags %}
{% load i18n %}

<style type="text/css">

  .current-resource{
    background-color:#47b079; 
    padding:0.5em;
    cursor: pointer;
  }

  .current-resource div {
    color: #f9f9f9;
  }

</style>


{% comment %}
<!-- 
<ul class="side-nav">
    <nav class="breadcrumbs">
    {% for key,value in breadcrumbs_list %}
       <a name="{{key}}">{{ value }}</a>
    {% endfor %}
  </nav>

  {% if node.collection_dict|length > 0 %}

  {% for index_key, each_node in node.collection_dict.items %}
  {% get_grid_fs_object each_node as grid_fs_obj %}
  
  {% if each_node.collection_set %}
  <li>
   
      <h5>
      <a class="select" class="collection" name="{{each_node.pk}}"><i class="fi-page-multiple"></i>
          {% if 'image' in each_node.mime_type %}<i class="fi-camera"></i>  {% endif %}
    
     {% if 'video' in each_node.mime_type %}<i class="fi-video"></i>  {% endif %}
   
     {% if 'Pandora_video' in each_node.member_of_names_list %}<i class="fi-video"></i>  {% endif %}
          {{ each_node.name }}</a>
      </h5>
  </li>

{% else %}
  
  <li>
      <h6 class="{{ each_node.type }}">
        <a class="select" name="{{each_node.pk}}">{{ each_node.name }}</a>
      </h6>
  </li>

</ul>

  {% endif %}
  {% endfor %}
{% endif %}
 -->
 {% endcomment %}

<ul class="side-nav collection">

  <!-- current page title -->
  {% for key,value in breadcrumbs_list %}
  {% get_memberof_name key as member_of_name %}
  
  <li id="{{key}}" class="active collection">
      <h5>
        <a>
        <div class="row" title="{{ member_of_name }} - {{ value }}">
          <div class="small-2 columns">
            <i class="fi-play"></i>
          </div>
          <div class="small-10 columns" name="{{key}}">{{ value | truncatechars:20 }}
          </div>
        </div>
        </a>
      </h5>
     
  </li>

  {% endfor %}

  {% if node.collection_dict|length > 0 %}

    {% for index_key, each_node in node.collection_dict.items %}
    {% get_memberof_name each_node.pk as member_of_name %}

      <li id="{{each_node.pk}}">
        <a>
        <div class="row" name="{{each_node.pk}}" title="{{member_of_name}} | {{ each_node.mime_type }}: {{ each_node.name }}">
          <div class="small-5 columns">

            {% if member_of_name == "File" %}
              {% if "/zip" in each_node.mime_type %}
                <i class="fi-archive"></i>
              {% elif "image" in each_node.mime_type %}
                <!-- <i class="fi-camera"></i> -->
                <img src="{% url 'getImageThumbnail' group_id each_node.pk %}">
              {% elif "/pdf" in each_node.mime_type %}
                <!-- <i class="fi-page-pdf"></i> -->
                <img src="{% url 'getFileThumbnail' group_id each_node.pk %}">
              {% elif "ogg" in each_node.mime_type or "video" in each_node.mime_type %}
                <i class="fi-video"></i>
                <!-- <img src="#{#% url 'getvideoThumbnail' group_id each_node.pk %}"> -->
                <!-- <div style="background:url#(#url 'getvideoThumbnail' group_id each_node.pk)"></div> -->
              {% else %}
                <i class="fi-folder"></i>
              {% endif %}
            {% elif member_of_name == "Page" %}
              <i class="fi-page-filled"></i>
            {% elif member_of_name == "Forum" %}
              <i class="fi-comments"></i>
            {% elif member_of_name == "Quiz" %}
              <i class="fi-graph-bar"></i>
            {% endif %}

          
          </div>
          <div class="small-7 columns" >
            {{ each_node.name | truncatechars:20 }}
          </div>
        </div>
        </a>
      </li>

    {% endfor %}
  {% endif%}
  
</ul>


<script>
{'fraction_non_alphanumeric': 0.19557392347686975, 'fraction_numerical': 0.008132249033462205, 'mean_word_length': 2.0533170533170533, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6961293', 'n_tokens_mistral': 2773, 'n_tokens_neox': 2510, 'n_words': 511}