<commit_before>{% extends "base.html" %}
{% load static %}
{% load oh_tags %}

{% block content %}
{% likes_for_user user as likes %}
{% comment %}
    Here we show the list of the OSHW element present in the database
{% endcomment %}
{% for item in object_list %}
<div class="col-md-4 oh-list">
    <div class="card">
      <img class="card-img-top" src="{{ item.image.url }}" style="width:100%" alt="Card image cap">
      <div class="card-block">
        <h4 class="card-title"><a href="#">{{ item.name }}</a></h4>
        <p class="card-text">{{ item.short_description }}</p>
          <p>{% for tag in item.tags.all %}<span class="label label-pill label-default">{{ tag.name }}</span> {% endfor %}</p>
          {% for attachment in item.openhardwareattachment_set.all %}
          <p>{{ attachment.type }}: <a href="{{ attachment.file.url }}">{{ attachment.description }}</a> </p>
          {% empty %}
          <p>NO ATTACHMENTS</p>
          {% endfor %}
          <p>
              <a href="#" class="like-action" data-id="{{ item.pk }}" data-action="{%if item in likes %}un{% endif%}set">
                  <i class="fa fa-lg fa-star{% if item not in likes %}-o{% endif %}"></i>
              </a>
          </p>
      </div>
</div>
</div>
{% empty %}
It's not possible, NO Open Hardware!!!
{% endfor %}
{% endblock content %}

{% block javascript %}
{{ block.super }}<commit_msg>Add link to main site.<commit_after>{% extends "base.html" %}
{% load static %}
{% load oh_tags %}

{% block content %}
{% likes_for_user user as likes %}
{% comment %}
    Here we show the list of the OSHW element present in the database
{% endcomment %}
{% for item in object_list %}
<div class="col-md-4 oh-list">
    <div class="card">
      <img class="card-img-top" src="{{ item.image.url }}" style="width:100%" alt="Card image cap">
      <div class="card-block">
        <h4 class="card-title"><a href="{{ item.url }}">{{ item.name }}</a></h4>
        <p class="card-text">{{ item.short_description }}</p>
          <p>{% for tag in item.tags.all %}<span class="label label-pill label-default">{{ tag.name }}</span> {% endfor %}</p>
          {% for attachment in item.openhardwareattachment_set.all %}
          <p>{{ attachment.type }}: <a href="{{ attachment.file.url }}">{{ attachment.description }}</a> </p>
          {% empty %}
          <p>NO ATTACHMENTS</p>
          {% endfor %}
          <p>
              <a href="#" class="like-action" data-id="{{ item.pk }}" data-action="{%if item in likes %}un{% endif%}set">
                  <i class="fa fa-lg fa-star{% if item not in likes %}-o{% endif %}"></i>
              </a>
          </p>
      </div>
</div>
</div>
{% empty %}
It's not possible, NO Open Hardware!!!
{% endfor %}
{% endblock content %}

{% block javascript %}
{{ block.super }}
{'fraction_non_alphanumeric': 0.2086305278174037, 'fraction_numerical': 0.0042796005706134095, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '2986433', 'n_tokens_mistral': 985, 'n_tokens_neox': 885, 'n_words': 259}