<commit_before>{% extends "ndf/base.html" %}

{% load ndf_tags %}

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

{% block body_content %}
{% endblock %}<commit_msg>Making listing od cards for e-book<commit_after>{% extends "ndf/base.html" %}

{% load ndf_tags %}

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

{% block body_content %}

<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">

<!-- {#% get_preferred_lang request page_nodes "Page" as page_nodes %#} -->

  {% group_type_info groupid request.user as grouptype %}

  <!-- Existing card list-->
  {% for node in all_ebooks %}

      <li class="card">
        {% if grouptype == "Moderated" %}
          {% if node.status == "DRAFT" %}
            <div class="draft page">
          {% elif node.status == "PUBLISHED" %}
            <div class="published page">
          {% endif %}
        {% else %}
          <div class='{% if node.status == "PUBLISHED" %}published{% endif %} page'>
        {% endif %} 

          <a href="{% url 'page_details' group_name_tag node %}">
          <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>
          {% if node.status == "PUBLISHED" or node.created_by == request.user.id %}
          <span style="font-size:12px;">{{ node.html_content|default_if_none:"Add some description."|safe|striptags|truncatechars:75 }}</span><br/>
          {% endif %}
          <footer>
            <div class="age">
              {{ node.member_of_names_list|join:', ' }} created {{node.created_at|timesince}} ago 
              <br/>
              by <span class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</span> 
            </div>
            <span><strong>{{node.contributors|length}}</strong> Contributor{{node.contributors|pluralize}}</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>
      </li>
 
  {% endfor %}

</ul>

{% endblock %}
{'fraction_non_alphanumeric': 0.18166666666666667, 'fraction_numerical': 0.005, 'mean_word_length': 2.1801324503311257, 'pattern_counts': {'":': 1, '<': 43, '<?xml version=': 0, '>': 43, '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': '2646868', 'n_tokens_mistral': 826, 'n_tokens_neox': 719, 'n_words': 157}