<commit_before>{% load i18n localtv_thumbnail %}

<div {% ifequal video current_video %}
       class="video hoverable selected"
     {% endifequal %}
     {% ifnotequal video current_video %}
       class="video hoverable unselected"
     {% endifnotequal %}>
  <span class="video_id">{{ video.id }}</span>
  <a class="thumbnail click_to_display"
     {% if video.metasearch_vid %}
       href="{% url localtv_admin_livesearch_display %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
     {% else %}
       href="{% url localtv_admin_preview_video %}?video_id={{ video.id }}"
     {% endif %}>
    <div>
      {% if video.thumbnail_url %}
        <img style="background: url({% get_thumbnail_url video 142 104 %}) no-repeat;" src="/images/vid_overlay.png" />
      {% else %}
        <img src="/images/vid_overlay.png" />
      {% endif %}
    </div>
  </a>
  <div class="title_desc">
    <h3>
      <a class="click_to_display"
         {% if video.metasearch_vid %}
           href="{% url localtv_admin_livesearch_display %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
         {% else %}
           href="{% url localtv_admin_preview_video %}?video_id={{ video.id }}"
         {% endif %}>
        {% if video.name %}
          {{ video.name }}
        {% else %}
          {% trans "(no title)" %}
        {% endif %}
      </a>
    </h3>

    {% autoescape off %}
      <p>{{ video.description|striptags }}</p>
    {% endautoescape %}

  </div>
  
  <div class="approve_reject">
      <a class="feature med_button"
         {% if video.metasearch_vid %}
           href="{% url localtv_admin_livesearch_approve %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}&feature=true"
         {% else %}
           href="{% url localtv_admin_approve_video_action %}?video_id={{ video.id }}&feature=true"
         {% endif %}><span>Feature</span></a>
    <a class="approve med_button"
       {% if video.metasearch_vid %}
         href="{% url localtv_admin_livesearch_approve %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
       {% else %}
         href="{% url localtv_admin_approve_video_action %}?video_id={{ video.id }}"
       {% endif %}><span>Approve</span></a> 
    {% if not video.metasearch_vid %}
      <a class="reject med_button"
         href="{% url localtv_admin_reject_video_action %}?video_id={{ video.id }}"><span>Reject</span></a>
    {% endif %}
  </div>
</div>
<commit_msg>show the submit/publish dates<commit_after>{% load i18n localtv_thumbnail %}

<div {% ifequal video current_video %}
       class="video hoverable selected"
     {% endifequal %}
     {% ifnotequal video current_video %}
       class="video hoverable unselected"
     {% endifnotequal %}>
  <span class="video_id">{{ video.id }}</span>
  <a class="thumbnail click_to_display"
     {% if video.metasearch_vid %}
       href="{% url localtv_admin_livesearch_display %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
     {% else %}
       href="{% url localtv_admin_preview_video %}?video_id={{ video.id }}"
     {% endif %}>
    <div>
      {% if video.thumbnail_url %}
        <img style="background: url({% get_thumbnail_url video 142 104 %}) no-repeat;" src="/images/vid_overlay.png" />
      {% else %}
        <img src="/images/vid_overlay.png" />
      {% endif %}
    </div>
  </a>
  <div class="title_desc">
    <h3>
      <a class="click_to_display"
         {% if video.metasearch_vid %}
           href="{% url localtv_admin_livesearch_display %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
         {% else %}
           href="{% url localtv_admin_preview_video %}?video_id={{ video.id }}"
         {% endif %}>
        {% if video.name %}
          {{ video.name }}
        {% else %}
          {% trans "(no title)" %}
        {% endif %}
      </a>
    </h3>

    {% autoescape off %}
      <p>{{ video.description|striptags|truncatewords:50 }}</p>
    {% endautoescape %}
    
    <p>Submitted: {{ video.when_submitted|timesince }} ago</p>
    {% if video.when_published %}
    <p>Published: {{ video.when_published|timesince }} ago</p>
    {% endif %}
  </div>
  
  <div class="approve_reject">
      <a class="feature med_button"
         {% if video.metasearch_vid %}
           href="{% url localtv_admin_livesearch_approve %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}&feature=true"
         {% else %}
           href="{% url localtv_admin_approve_video_action %}?video_id={{ video.id }}&feature=true"
         {% endif %}><span>Feature</span></a>
    <a class="approve med_button"
       {% if video.metasearch_vid %}
         href="{% url localtv_admin_livesearch_approve %}?query={{ query_string|urlencode }}&video_id={{ video.id }}&order_by={{ order_by|default:"relevant" }}"
       {% else %}
         href="{% url localtv_admin_approve_video_action %}?video_id={{ video.id }}"
       {% endif %}><span>Approve</span></a> 
    {% if not video.metasearch_vid %}
      <a class="reject med_button"
         href="{% url localtv_admin_reject_video_action %}?video_id={{ video.id }}"><span>Reject</span></a>
    {% endif %}
  </div>
</div>

{'fraction_non_alphanumeric': 0.18061916101850156, 'fraction_numerical': 0.004030042132258656, 'mean_word_length': 3.108352144469526, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '3523786', 'n_tokens_mistral': 1954, 'n_tokens_neox': 1797, 'n_words': 342}