<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 %}

<!-- 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 %}


<!-- actions -->
{% block app_action_list %}

  {% if user.is_authenticated %}
    {% user_access_policy groupid request.user as user_access %}
    {% if user_access == "allow" %}

      <li>
          <a href="{% url 'uploadDoc' group_name_tag %}?next={{request.path}}">
            {% trans "Upload File" %}
          </a>
      </li>
    
      <li>
        <a href="{% url 'data_review' group_name_tag %}">
          {% trans "Data Review" %}
        </a>
      </li>

    {% endif %}
  {% endif %}

  <li>
    <a href="#" data-reveal-id="library-statistics">
      {% trans "File Statistics" %}
    </a>
  </li>

  <div class="medium reveal-modal" id="library-statistics" data-reveal>
    {% include "ndf/file_statistics.html" %}
    <a class="close-reveal-modal">&#215;</a>
  </div>

{% endblock %}

{% block body_content %}
  {% get_group_name groupid as group_name_tag %}

<header class="row">
  <dl class="tabs" data-tab >
    
    <!-- all files -->
    <dd class="active">
      <a href="#view-all">
        <i class="fi-eye"></i>
        {% trans "All files" %} \ {% if files.count %}({{ files.count }}){% endif %}
      </a>
    </dd>
    
    <!-- Documents -->
    <dd>
      <a href="#view-doc">
        <i class="fi-page-filled"></i>
        {% trans "Documents" %} {% if docCollection.count %}({{ docCollection.count }}){% endif %}
      </a>
    </dd>

    <!-- Interactives -->
    {% if interactiveCollection.count %}
      <dd>
        <a href="#view-interactive">
          <i class="fi-arrows-compress"></i>
          {% trans "Interactives" %} ({{ interactiveCollection.count }})
        </a>
      </dd>
    {% endif %}

    <!-- Audio -->
    {% if audioCollection.count %}
      <dd>
        <a href="#view-audio">
          <i class="fi-music"></i>
          {% trans "Audios" %} ({{ audioCollection.count }})
        </a>
      </dd>
    {% endif %}

    <!-- Image -->
    <dd>
      <a href="#view-image"><i class="fi-camera"></i>
        {% trans "Images" %} {% if imageCollection.count %}({{ imageCollection.count }}){% endif %}
      </a>
    </dd>

    <!-- Video -->
    {% if site.SITE_VIDEO == 'pandora_and_local' or site.SITE_VIDEO == 'local' %}
      <dd>
        <a href="#view-video"><i class="fi-video"></i>
          {% trans "Videos" %}{% if videoCollection.count %}({{ videoCollection.count }}){% endif %}
        </a>
      </dd>
    {% endif %}

    <!-- Pandora -->
    {% if site.SITE_VIDEO == 'pandora_and_local' %}
      <dd>
        <a href="#view-pandora-video"><i class="fi-video"></i>
          {% trans "Pandora Videos" %}
        </a>
      </dd>
    {% endif %}

    {% if site.SITE_VIDEO == 'pandora' %}
      <dd>
        <a href="#view-pandora-video"><i class="fi-video"></i>
          {% trans "Videos" %}
          {% if pandoravideoCollection.count %}
            ({{ pandoravideoCollection.count }})
          {% endif %}
        </a>
      </dd>
    {% endif %}

    {% if title != "Browse Resource" %}
      <dd>
        <a href="#view-collection">
          <i class="fi-page-multiple"></i>{% trans "Collections" %}
        </a>
      </dd>
    {% endif %}

   </dl>
</header>

<div class="tabs-content gallery">

  {% if already_uploaded %} 
    <div id="message">
      <span style="color:red">
        {% trans "Files Listed below are already uploaded. Duplicate file uploads are not possible." %}
      </span><commit_msg>condition modified according to 'E-Library' as app name<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 %}

<!-- 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 %}


<!-- actions -->
{% block app_action_list %}

  {% if user.is_authenticated %}
    {% user_access_policy groupid request.user as user_access %}
    {% if user_access == "allow" %}

      <li>
          <a href="{% url 'uploadDoc' group_name_tag %}?next={{request.path}}">
            {% trans "Upload File" %}
          </a>
      </li>
    
      <li>
        <a href="{% url 'data_review' group_name_tag %}">
          {% trans "Data Review" %}
        </a>
      </li>

    {% endif %}
  {% endif %}

  <li>
    <a href="#" data-reveal-id="library-statistics">
      {% trans "File Statistics" %}
    </a>
  </li>

  <div class="medium reveal-modal" id="library-statistics" data-reveal>
    {% include "ndf/file_statistics.html" %}
    <a class="close-reveal-modal">&#215;</a>
  </div>

{% endblock %}

{% block body_content %}
  {% get_group_name groupid as group_name_tag %}

<header class="row">
  <dl class="tabs" data-tab >
    
    <!-- all files -->
    <dd class="active">
      <a href="#view-all">
        <i class="fi-eye"></i>
        {% trans "All files" %} \ {% if files.count %}({{ files.count }}){% endif %}
      </a>
    </dd>
    
    <!-- Documents -->
    <dd>
      <a href="#view-doc">
        <i class="fi-page-filled"></i>
        {% trans "Documents" %} {% if docCollection.count %}({{ docCollection.count }}){% endif %}
      </a>
    </dd>

    <!-- Interactives -->
    {% if interactiveCollection.count %}
      <dd>
        <a href="#view-interactive">
          <i class="fi-arrows-compress"></i>
          {% trans "Interactives" %} ({{ interactiveCollection.count }})
        </a>
      </dd>
    {% endif %}

    <!-- Audio -->
    {% if audioCollection.count %}
      <dd>
        <a href="#view-audio">
          <i class="fi-music"></i>
          {% trans "Audios" %} ({{ audioCollection.count }})
        </a>
      </dd>
    {% endif %}

    <!-- Image -->
    <dd>
      <a href="#view-image"><i class="fi-camera"></i>
        {% trans "Images" %} {% if imageCollection.count %}({{ imageCollection.count }}){% endif %}
      </a>
    </dd>

    <!-- Video -->
    {% if site.SITE_VIDEO == 'pandora_and_local' or site.SITE_VIDEO == 'local' %}
      <dd>
        <a href="#view-video"><i class="fi-video"></i>
          {% trans "Videos" %}{% if videoCollection.count %}({{ videoCollection.count }}){% endif %}
        </a>
      </dd>
    {% endif %}

    <!-- Pandora -->
    {% if site.SITE_VIDEO == 'pandora_and_local' %}
      <dd>
        <a href="#view-pandora-video"><i class="fi-video"></i>
          {% trans "Pandora Videos" %}
        </a>
      </dd>
    {% endif %}

    {% if site.SITE_VIDEO == 'pandora' %}
      <dd>
        <a href="#view-pandora-video"><i class="fi-video"></i>
          {% trans "Videos" %}
          {% if pandoravideoCollection.count %}
            ({{ pandoravideoCollection.count }})
          {% endif %}
        </a>
      </dd>
    {% endif %}

    {% if title != "E-Library" %}
      <dd>
        <a href="#view-collection">
          <i class="fi-page-multiple"></i>{% trans "Collections" %}
        </a>
      </dd>
    {% endif %}

   </dl>
</header>

<div class="tabs-content gallery">

  {% if already_uploaded %} 
    <div id="message">
      <span style="color:red">
        {% trans "Files Listed below are already uploaded. Duplicate file uploads are not possible." %}
      </span>
{'fraction_non_alphanumeric': 0.2047814537551316, 'fraction_numerical': 0.0026563631972953395, 'mean_word_length': 2.2017781213761114, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 193, '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': '4037693', 'n_tokens_mistral': 3056, 'n_tokens_neox': 2711, 'n_words': 611}