<commit_before>{% extends "ndf/base.html" %}
{% load ndf_tags %}
{% load i18n %}
{% block title %} {{username}}'s - Dashboard  {% endblock %}
{% block meta_content %}
  {% comment %}
  <h3>{% trans "About" %}</h3>

  {% blocktrans %}<b>Dashboard</b> shows users' own activities on the site.{% endblocktrans %}<br><br>
  <b>{% trans "Total Activity Rating" %}: &nbsp;{{total_activity_rating}}</b><br> 
  
     {% if site_name == "NROER" %}
     <button data-dropdown="drop1" aria-controls="drop1" aria-expanded="false" class="small button dropdown"> {% trans 'Become Partner' %} </button><br> 
     <ul id="drop1" data-dropdown-content class="f-dropdown" aria-hidden="true"> 
       <li><a href="/home/partner/create_partner/"> {% trans 'State' %} </a> </li>
       <li><a href="/home/partner/create_partner/"> {% trans 'Institutional' %} </a> </li> 
       <li><a href="/home/partner/create_partner/"> {% trans 'Individuals' %} </a></li>
     </ul>
  {% endif %}
  {% endcomment %}
      {% include "ndf/upload_pic_widget.html" with url_name='dashboard' widget_for="userDashboard" %}
      <hr/>
    <div class="action-btn-div">
    <span class="fi-graph-bar">
      <a href="#" data-reveal-id="activity-statistics">{% trans "Activity Ratings" %}</a>
    </span>
  </div>
  <div class="small reveal-modal" id="activity-statistics" data-reveal>
    {% include "ndf/file_statistics.html" %}
    <a href="#" class="close-reveal-modal">&#215;</a>
  </div>

  {% if user.is_superuser and user_id == request.user.id %}
    <div class="action-btn-div">
      <span class="fi-trash">
        <a href="/Trash/data-review">Trash</a>
      </span>
    </div>
  {% endif %}  
  {% endblock %}

{% block style %}
  .resource-drawer { 
    max-height: 202px;
    overflow-y: auto;
  }

  .style2 {
    color: #10c1cb; 
    font-size: 10em;
    text-shadow: 0 1px 0 #0092b3, 0 2px 0 #0087a6;
  }

  .action-btn-div{
    font-size:15px;
    margin-left:0.5rem;
    margin-top:1rem;
  }

  .style-text {
    margin: 10px 0;
  }


  .margin-p5 {
    margin-bottom: 0.5em !important;
  }

  /* Setting css-properties for reveal-modal's label */
    div.reveal-modal > label {
      color: white;
      font-weight: bold;
      font-size: 1rem;
    }

{% endblock %}

{% block body_content %}
    <div id="uDashboardModal" class="reveal-modal medium alert-box radius" data-reveal data-alert>
        <label id="uDashboardModalLabel"></label>
        <a class="close-reveal-modal">&#215;</a>
    </div>

    {% get_group_name groupid as group_name_tag %}
    <div class="row"  id="new" >

              
        <div class="small-12 large-10 columns">
      <h3>
      {{username}}'s  Dashboard 
        <!-- {% trans "Welcome "%} {% firstof current_user_obj.first_name current_user_obj.email %} ! -->
      </h3>

            <dl class="tabs" data-tab >
                <dd class="active"><a href="#view-profile" id='p5' class="fi-torso"> Profile </a> </dd>
                <dd ><a href="#group" id="p1" class="fi-torsos-all"> Groups </a></dd>
                {% if user_task %}<dd><a href="#AssignedTasks" id="p2" class="fi-checkbox"> Assigned Tasks </a></dd> {% endif %}
                <dd ><a href="#Activity" id="p3" class="fi-info"> My Activities </a></dd>      
                <dd ><a href="#view-scheduler-calendar" id="p4" class="fi-calendar"> Events </a></dd>
            </dl>
            <div class="tabs-content">
                <div class="content" id="view-scheduler-calendar">
                      {% include "ndf/scheduler_calender.html"  %}
                </div>
                
                <div class = "content active" id="view-profile">
                    {% include "ndf/user_profile_form.html"  %}
                </div>

                <div class="content " id="group">
                    <ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
                        {% for node in user_groups %}
                            {% get_version_of_module node.pk as version %}
                            <li class="card">
                            
                                <div id="groups">
                                    <header>
                                        <a href="/{{node.pk}}">
                                          <div class="th"><img src="/static/ndf/scss/metastudio/logo.svg"></div>
                                          <h4>{{ node.name|truncatechars:20 }}</h4>
                                          <div>
                                              <hr/>
                                              <small class="subheader"><commit_msg>Events tab is hidden for time being in user dashboard<commit_after>{% extends "ndf/base.html" %}
{% load ndf_tags %}
{% load i18n %}
{% block title %} {{username}}'s - Dashboard  {% endblock %}
{% block meta_content %}
  {% comment %}
  <h3>{% trans "About" %}</h3>

  {% blocktrans %}<b>Dashboard</b> shows users' own activities on the site.{% endblocktrans %}<br><br>
  <b>{% trans "Total Activity Rating" %}: &nbsp;{{total_activity_rating}}</b><br> 
  
     {% if site_name == "NROER" %}
     <button data-dropdown="drop1" aria-controls="drop1" aria-expanded="false" class="small button dropdown"> {% trans 'Become Partner' %} </button><br> 
     <ul id="drop1" data-dropdown-content class="f-dropdown" aria-hidden="true"> 
       <li><a href="/home/partner/create_partner/"> {% trans 'State' %} </a> </li>
       <li><a href="/home/partner/create_partner/"> {% trans 'Institutional' %} </a> </li> 
       <li><a href="/home/partner/create_partner/"> {% trans 'Individuals' %} </a></li>
     </ul>
  {% endif %}
  {% endcomment %}
      {% include "ndf/upload_pic_widget.html" with url_name='dashboard' widget_for="userDashboard" %}
      <hr/>
    <div class="action-btn-div">
    <span class="fi-graph-bar">
      <a href="#" data-reveal-id="activity-statistics">{% trans "Activity Ratings" %}</a>
    </span>
  </div>
  <div class="small reveal-modal" id="activity-statistics" data-reveal>
    {% include "ndf/file_statistics.html" %}
    <a href="#" class="close-reveal-modal">&#215;</a>
  </div>

  {% if user.is_superuser and user_id == request.user.id %}
    <div class="action-btn-div">
      <span class="fi-trash">
        <a href="/Trash/data-review">Trash</a>
      </span>
    </div>
  {% endif %}  
  {% endblock %}

{% block style %}
  .resource-drawer { 
    max-height: 202px;
    overflow-y: auto;
  }

  .style2 {
    color: #10c1cb; 
    font-size: 10em;
    text-shadow: 0 1px 0 #0092b3, 0 2px 0 #0087a6;
  }

  .action-btn-div{
    font-size:15px;
    margin-left:0.5rem;
    margin-top:1rem;
  }

  .style-text {
    margin: 10px 0;
  }


  .margin-p5 {
    margin-bottom: 0.5em !important;
  }

  /* Setting css-properties for reveal-modal's label */
    div.reveal-modal > label {
      color: white;
      font-weight: bold;
      font-size: 1rem;
    }

{% endblock %}

{% block body_content %}
    <div id="uDashboardModal" class="reveal-modal medium alert-box radius" data-reveal data-alert>
        <label id="uDashboardModalLabel"></label>
        <a class="close-reveal-modal">&#215;</a>
    </div>

    {% get_group_name groupid as group_name_tag %}
    <div class="row"  id="new" >

              
        <div class="small-12 large-10 columns">
      <h3>
      {{username}}'s  Dashboard 
        <!-- {% trans "Welcome "%} {% firstof current_user_obj.first_name current_user_obj.email %} ! -->
      </h3>

            <dl class="tabs" data-tab >
                <dd class="active"><a href="#view-profile" id='p5' class="fi-torso"> Profile </a> </dd>
                <dd ><a href="#group" id="p1" class="fi-torsos-all"> Groups </a></dd>
                {% if user_task %}<dd><a href="#AssignedTasks" id="p2" class="fi-checkbox"> Assigned Tasks </a></dd> {% endif %}
                <dd ><a href="#Activity" id="p3" class="fi-info"> My Activities </a></dd>      
                {% comment %}<dd ><a href="#view-scheduler-calendar" id="p4" class="fi-calendar"> Events </a></dd>{% endcomment %}
            </dl>
            <div class="tabs-content">
                <div class="content" id="view-scheduler-calendar">
                      {% include "ndf/scheduler_calender.html"  %}
                </div>
                
                <div class = "content active" id="view-profile">
                    {% include "ndf/user_profile_form.html"  %}
                </div>

                <div class="content " id="group">
                    <ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
                        {% for node in user_groups %}
                            {% get_version_of_module node.pk as version %}
                            <li class="card">
                            
                                <div id="groups">
                                    <header>
                                        <a href="/{{node.pk}}">
                                          <div class="th"><img src="/static/ndf/scss/metastudio/logo.svg"></div>
                                          <h4>{{ node.name|truncatechars:20 }}</h4>
                                          <div>
                                              <hr/>
                                              <small class="subheader">
{'fraction_non_alphanumeric': 0.17470720962716235, 'fraction_numerical': 0.014612657139787258, 'mean_word_length': 1.9069331667707683, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644288', 'n_tokens_mistral': 3194, 'n_tokens_neox': 2899, 'n_words': 598}