<commit_before>{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}

{% block title %} {{title}} {% endblock %}

{% block style %}

  .first-load { display: none; }

  .tabs dd.active a, .tabs .tab-title.active a {
    background-color: #f7f7f7;
  }

  .tabs dd.active{
    width: 100%;
  }

{% endblock %}

<!-- left top panel -->
{% block meta_content %}
  <h2 class="subheader">{% trans "Gallery" %}</h2>
{% endblock %}


{% block help_content %}
  <h3>{% trans "Files" %}</h3>
  <p>
    {% trans "Upload your files from your computer to metaStudio. You can view the existing files in the group and create collections." %}
  </p>
{% endblock %}


{% block shelf_content %}
  {% if user.is_authenticated %}
    {% include "ndf/shelf.html" %}
  {% else %}
  <h4>Please Login to create your shelf</h4>
  {% endif %}  
{% endblock %}

{% block related_content %}

{% check_user_join request groupid as user_is_joined %}

<ul class="side-nav">

  <div class="panel"  style="background-color:#ddd;">
    <b>{% trans "Visit" %}</b>
    <br/><br/>
    <dl class="tabs" data-tab >
      <!-- all files -->
      <dd class="active">
        <a href="#view-all">
          <i class="fi-eye"></i>
          {% trans "All files" %} {% if file_pages.count > 0 %}({{ file_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Documents -->
      <dd>
        <a href="#view-doc">
          <i class="fi-page-filled"></i>
          {% trans "Documents" %} {% if doc_pages.count > 0 %}({{ doc_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Interactives -->
      {% if interactiveCollection.count %}
        <dd>
          <a href="#view-interactive">
            <i class="fi-arrows-compress"></i>
            {% trans "Interactives" %} ({{ interactiveCollection.count }})
          </a>
        </dd><br/>
      {% endif %}
      <!-- Audio -->
      {% if audioCollection.count %}
        <dd>
          <a href="#view-audio">
            <i class="fi-music"></i>
            {% trans "Audios" %} ({{ audioCollection.count }})
          </a>
        </dd><br/>
      {% endif %}
      <!-- Image -->
      <dd>
        <a href="#view-image"><i class="fi-camera"></i>
          {% trans "Images" %} {% if image_pages.count > 0 %}({{ image_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Video -->
      {% if site.SITE_VIDEO == 'pandora_and_local' or site.SITE_VIDEO == 'local' %}
<commit_msg>bug resolved in displaying audios and its count<commit_after>{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}

{% block title %} {{title}} {% endblock %}

{% block style %}

  .first-load { display: none; }

  .tabs dd.active a, .tabs .tab-title.active a {
    background-color: #f7f7f7;
  }

  .tabs dd.active{
    width: 100%;
  }

{% endblock %}

<!-- left top panel -->
{% block meta_content %}
  <h2 class="subheader">{% trans "Gallery" %}</h2>
{% endblock %}


{% block help_content %}
  <h3>{% trans "Files" %}</h3>
  <p>
    {% trans "Upload your files from your computer to metaStudio. You can view the existing files in the group and create collections." %}
  </p>
{% endblock %}


{% block shelf_content %}
  {% if user.is_authenticated %}
    {% include "ndf/shelf.html" %}
  {% else %}
  <h4>Please Login to create your shelf</h4>
  {% endif %}  
{% endblock %}

{% block related_content %}

{% check_user_join request groupid as user_is_joined %}

<ul class="side-nav">

  <div class="panel"  style="background-color:#ddd;">
    <b>{% trans "Visit" %}</b>
    <br/><br/>
    <dl class="tabs" data-tab >
      <!-- all files -->
      <dd class="active">
        <a href="#view-all">
          <i class="fi-eye"></i>
          {% trans "All files" %} {% if file_pages.count > 0 %}({{ file_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Documents -->
      <dd>
        <a href="#view-doc">
          <i class="fi-page-filled"></i>
          {% trans "Documents" %} {% if doc_pages.count > 0 %}({{ doc_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Interactives -->
      {% if interactiveCollection.count %}
        <dd>
          <a href="#view-interactive">
            <i class="fi-arrows-compress"></i>
            {% trans "Interactives" %} ({{ interactiveCollection.count }})
          </a>
        </dd><br/>
      {% endif %}
      <!-- Audio -->
      {% if audioCollection.count %}
        <dd>
          <a href="#view-audio">
            <i class="fi-music"></i>
            {% trans "Audios" %} {% if audio_pages.count > 0 %}({{ audio_pages.count }}){% endif %}
          </a>
        </dd><br/>
      {% endif %}
      <!-- Image -->
      <dd>
        <a href="#view-image"><i class="fi-camera"></i>
          {% trans "Images" %} {% if image_pages.count > 0 %}({{ image_pages.count }}){% endif %}
        </a>
      </dd><br/>
      <!-- Video -->
      {% if site.SITE_VIDEO == 'pandora_and_local' or site.SITE_VIDEO == 'local' %}

{'fraction_non_alphanumeric': 0.20754348250928278, 'fraction_numerical': 0.006839945280437756, 'mean_word_length': 2.202753441802253, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 124, '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': '6196764', 'n_tokens_mistral': 1899, 'n_tokens_neox': 1686, 'n_words': 397}