<commit_before><% return if dali_document.nil? or dali_document.author.nil? %>

<li class="resource box-item" dali_id="<%=dali_document.id%>"<%if defined?(obj_id)%>edit-id="<%=obj_id%>"<%end%>>
<% if defined?(prefix_id) && (prefix_id == "join" || prefix_id == "tw") %>
<div class="selecting-item" style="display:none;"><i class="fa fa-check"></i><%= t('competition.modal.selected') %></div>
<% end %>

  <!-- <div class="corner-delete" onclick="delete_function(<%=dali_document.id%>)">
    <div class="trash-icon">
      <i class="fa fa-trash"></i>
    </div>
  </div>-->

  <!-- corner -->
  <% if current_subject and dali_document.owner_id == current_subject.actor.id%>
    <%= link_to edit_dali_document_path(dali_document) do %>
      <div class="corner-item">
        <div class="corner-item2">
          <div class="corner-color"></div>
          <%#= link_to raw(icon(resource,false)), resource, :title => resource.title %>
          <%= raw(icon(dali_document,false)) %>
        </div>
        <div class="corner-background"></div>
      </div>
      <!-- image/icon -->
      <div class="container-img">
        <div class="img-box resource-center">
          <%#= link_to raw(icon(resource)), resource, :title => resource.title %>
          <%= raw(icon(dali_document)) %>
        </div>
      </div>
    <%end%>
  <% else %>
    <%= link_to dali_document_path(dali_document) do %>
      <div class="corner-item">
        <div class="corner-item2">
          <div class="corner-color"></div>
          <%#= link_to raw(icon(resource,false)), resource, :title => resource.title %>
          <%= raw(icon(dali_document,false)) %>
        </div>
        <div class="corner-background"></div>
      </div>
      <!-- image/icon -->
      <div class="container-img">
        <div class="img-box resource-center">
          <%#= link_to raw(icon(resource)), resource, :title => resource.title %>
          <%= raw(icon(dali_document)) %>
        </div>
      </div>
    <%end%>
  <% end %>
  <!-- INFO -->
  <div class="caption">

    <!-- Title -->
    <h6>
      <%= link_to dali_document.title, edit_dali_document_path(dali_document) %> <!-- Aquí debería ir el title, pero no está implementado -->
    </h6>

    <!-- Author -->
    <span class="author">
      <span class="by"><%=t('by')%></span>
      <%= link_to truncate_name(dali_document.author.name, length: 25), dali_document.author.subject %>
    </span>

    <hr>

    <div class="info-bottom">

      <!--like -->
      <div class="like">
        <div class="count"><%=dali_document.post_activity.likes.count.to_s%></div>
        <%= link_like(dali_document.post_activity, {:title =>t('excursion.actions.favorite')})%>
      </div>

      <!--views -->
      <div class="views">
        <%if dali_document.private_scope? %>
          <div class="private-resource-mark">
            <i class="fa fa-lock"></i>
          </div>
        <%else%>
          <%=resource.visit_count.to_s%>
          <i class="fa fa-eye"></i>
        <%end%>
      </div>

    </div>

  </div>

</li><commit_msg>Small fix in resources :hammer:<commit_after><% return if dali_document.nil? or dali_document.author.nil? %>

<li class="resource box-item" dali_id="<%=dali_document.id%>"<%if defined?(obj_id)%>edit-id="<%=obj_id%>"<%end%>>
<% if defined?(prefix_id) && (prefix_id == "join" || prefix_id == "tw") %>
<div class="selecting-item" style="display:none;"><i class="fa fa-check"></i><%= t('competition.modal.selected') %></div>
<% end %>

  <!-- <div class="corner-delete" onclick="delete_function(<%=dali_document.id%>)">
    <div class="trash-icon">
      <i class="fa fa-trash"></i>
    </div>
  </div>-->

  <!-- corner -->
  <% if current_subject and dali_document.owner_id == current_subject.actor.id%>
    <%= link_to edit_dali_document_path(dali_document) do %>
      <div class="corner-item">
        <div class="corner-item2">
          <div class="corner-color"></div>
          <%#= link_to raw(icon(resource,false)), resource, :title => resource.title %>
          <%= raw(icon(dali_document,false)) %>
        </div>
        <div class="corner-background"></div>
      </div>
      <!-- image/icon -->
      <div class="container-img">
        <div class="img-box resource-center">
          <%#= link_to raw(icon(resource)), resource, :title => resource.title %>
          <%= raw(icon(dali_document)) %>
        </div>
      </div>
    <%end%>
  <% else %>
    <%= link_to dali_document_path(dali_document) do %>
      <div class="corner-item">
        <div class="corner-item2">
          <div class="corner-color"></div>
          <%#= link_to raw(icon(resource,false)), resource, :title => resource.title %>
          <%= raw(icon(dali_document,false)) %>
        </div>
        <div class="corner-background"></div>
      </div>
      <!-- image/icon -->
      <div class="container-img">
        <div class="img-box resource-center">
          <%#= link_to raw(icon(resource)), resource, :title => resource.title %>
          <%= raw(icon(dali_document)) %>
        </div>
      </div>
    <%end%>
  <% end %>
  <!-- INFO -->
  <div class="caption">

    <!-- Title -->
    <h6>
      <%= link_to dali_document.title, edit_dali_document_path(dali_document) %> <!-- Aquí debería ir el title, pero no está implementado -->
    </h6>

    <!-- Author -->
    <span class="author">
      <span class="by"><%=t('by')%></span>
      <%= link_to truncate_name(dali_document.author.name, length: 25), dali_document.author.subject %>
    </span>

    <hr>

    <div class="info-bottom">

      <!--like -->
      <div class="like">
        <div class="count"><%=dali_document.post_activity.likes.count.to_s%></div>
        <%= link_like(dali_document.post_activity, {:title =>t('excursion.actions.favorite')})%>
      </div>

      <!--views -->
      <div class="views">
        <%if dali_document.private_scope? %>
          <div class="private-resource-mark">
            <i class="fa fa-lock"></i>
          </div>
        <%else%>
          <%=dali_document.visit_count.to_s%>
          <i class="fa fa-eye"></i>
        <%end%>
      </div>

    </div>

  </div>

</li>
{'fraction_non_alphanumeric': 0.21117810004888382, 'fraction_numerical': 0.001955352778230406, 'mean_word_length': 2.6341030195381885, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 217, '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': '3624265', 'n_tokens_mistral': 2190, 'n_tokens_neox': 2042, 'n_words': 349}