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

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

{% block meta_content %}  
<h2 class="subheader">{% trans "Partners" %}</h2>
{% endblock %}


{% block help_content %}

{% endblock %}


{% block search_content %}
  {% include "ndf/node_search_base.html" %}
{% endblock %}


{% block related_content %}
  {% if user.is_authenticated %}
  {% user_access_policy groupid request.user as user_access %}
  {% if user_access == "allow" %}
  <br/>
  <div class="create card">
    <div class="group">
      <br/>
      <a class="button medium" href="{% url 'create_partner' group_name_tag %}">
    	<span class="fi-plus">&nbsp;&nbsp;{% trans "New Partner" %}</span>
      </a>
    </div>
  </div>
  {% endif %}
  {% endif %}
{% endblock %}


{% block body_content %}
{% get_group_name groupid as group_name_tag %}
<header class="row">
  <dl class="tabs" data-tab data-options="deep_linking:true">
    <dd class="active"><a href="#panel2-1"><i class="fi-eye"></i> All Partners {% if group_nodes_count %}({{ group_nodes_count }}){% endif %}</a></dd>
    <!--<dd><a href="#panel2-3"><i class="fi-trophy"></i> Popular Groups</a></dd>-->
  </dl>
</header>

<div class="content row">
    
{% if searching and group_nodes_count > 0 %}

  <div class="small-12 columns end">
    <p>{% trans "Search Results:" %} <span class="label success round">Found {{group_nodes_count}} {{title|lower}}{{group_nodes_count|pluralize}}.</span></p>
  </div>

{% elif searching and group_nodes_count == 0 %}
  <div class="small-12 columns">
    <p>{% trans "Search Results:" %} <span class="label alert">No {{title|lower}}{{group_nodes_count|pluralize}} matched your search criteria!!!</span></p>
  </div>  

{% endif %}

<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
  
  <!-- Existing card list-->
  {% get_group_type request.path request.user as group_type %}
  {% group_type_info groupid request.user as grouptype %}

  {% autopaginate group_nodes 23 %}

  {% for node in group_nodes %}
  {% if node.name != request.user.username %}
  
    <li class="card">
      {% if grouptype == "Moderated" %}
        {% if node.status == "DRAFT" %}
          <div class="draft group">
        {% elif node.status == "PUBLISHED" %}
          <div class="published group">
        {% endif %}
      {% else %}
        <div class='{% if node.status == "PUBLISHED" %}published{% endif %} group'>
      {% endif %} 

      <a href="{% url 'groupchange' node.pk %}">
      <div class="row">
        <div class="small-10 columns">                             
            <b>
              {{ node.name }}{% if node.collection_set %} <i class="fi-page-multiple"></i> {% endif %}
            </b>
        </div>
      </div>
      
      <span style="font-size:12px;">{{ node.html_content|default_if_none:"Add some description."|safe|striptags|truncatechars:75 }}</span><br/>
      
      <footer>
          <div class="age">
            {{ node.member_of_names_list|join:', ' }} created {{node.created_at|timesince}} ago by <span class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</span>
        </div>
        <span><strong>{{node.author_set|length}}</strong> Members</span>
        {% get_group_resources node as obj_count %}
        <span class="right"><strong>{{obj_count}}</strong> Objects</span>
      </footer>
      </a>

      <div class="label-list small-12 columns">
        {% for tag in node.tags|slice:":3" %}
          <a href="{% url 'tag_info' groupid tag %}"><span class="label" style="background-color:yellow;">{{tag}}</span></a>
        {% endfor %}
      </div>

    </div><commit_msg>partner_list view added<commit_after>{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}

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

{% block meta_content %}  
<h2 class="subheader">{% trans "Partners" %}</h2>
{% endblock %}


{% block help_content %}

{% endblock %}


{% block search_content %}
  {% include "ndf/node_search_base.html" %}
{% endblock %}


{% block related_content %}
  {% if user.is_authenticated %}
  {% user_access_policy groupid request.user as user_access %}
  {% if user_access == "allow" %}
  <br/>
  <div class="create card">
    <div class="group">
      <br/>
      <a class="button medium" href="{% url 'create_partner' group_name_tag %}">
    	<span class="fi-plus">&nbsp;&nbsp;{% trans "New Partner" %}</span>
      </a>
    </div>
  </div>
  {% endif %}
  {% endif %}
{% endblock %}


{% block body_content %}
{% get_group_name groupid as group_name_tag %}
<header class="row">
  <dl class="tabs" data-tab data-options="deep_linking:true">
    <dd class="active"><a href="#panel2-1"><i class="fi-eye"></i> All Partners {% if group_nodes_count %}({{ group_nodes_count }}){% endif %}</a></dd>
    <!--<dd><a href="#panel2-3"><i class="fi-trophy"></i> Popular Groups</a></dd>-->
  </dl>
</header>

<div class="content row">
    
{% if searching and group_nodes_count > 0 %}

  <div class="small-12 columns end">
    <p>{% trans "Search Results:" %} <span class="label success round">Found {{group_nodes_count}} {{title|lower}}{{group_nodes_count|pluralize}}.</span></p>
  </div>

{% elif searching and group_nodes_count == 0 %}
  <div class="small-12 columns">
    <p>{% trans "Search Results:" %} <span class="label alert">No {{title|lower}}{{group_nodes_count|pluralize}} matched your search criteria!!!</span></p>
  </div>  

{% endif %}

<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
  
  <!-- Existing card list-->
  {% get_group_type request.path request.user as group_type %}
  {% group_type_info groupid request.user as grouptype %}

  {% autopaginate group_nodes 23 %}

  {% for node in group_nodes %}
  {% if node.name != request.user.username %}
  
    <li class="card">
      {% if grouptype == "Moderated" %}
        {% if node.status == "DRAFT" %}
          <div class="draft group">
        {% elif node.status == "PUBLISHED" %}
          <div class="published group">
        {% endif %}
      {% else %}
        <div class='{% if node.status == "PUBLISHED" %}published{% endif %} group'>
      {% endif %} 

      <a href="{% url 'partnerlist' node.pk %}">
      <div class="row">
        <div class="small-10 columns">                             
            <b>
              {{ node.name }}{% if node.collection_set %} <i class="fi-page-multiple"></i> {% endif %}
            </b>
        </div>
      </div>
      
      <span style="font-size:12px;">{{ node.html_content|default_if_none:"Add some description."|safe|striptags|truncatechars:75 }}</span><br/>
      
      <footer>
          <div class="age">
            {{ node.member_of_names_list|join:', ' }} created {{node.created_at|timesince}} ago by <span class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</span>
        </div>
        <span><strong>{{node.author_set|length}}</strong> Members</span>
        {% get_group_resources node as obj_count %}
        <span class="right"><strong>{{obj_count}}</strong> Objects</span>
      </footer>
      </a>

      <div class="label-list small-12 columns">
        {% for tag in node.tags|slice:":3" %}
          <a href="{% url 'tag_info' groupid tag %}"><span class="label" style="background-color:yellow;">{{tag}}</span></a>
        {% endfor %}
      </div>

    </div>
{'fraction_non_alphanumeric': 0.19583552978386926, 'fraction_numerical': 0.007380073800738007, 'mean_word_length': 3.144729655925724, 'pattern_counts': {'":': 2, '<': 167, '<?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': '4622957', 'n_tokens_mistral': 2752, 'n_tokens_neox': 2445, 'n_words': 549}