<commit_before>{% extends 'layouts/dashboard.html.twig' %}
{% block title %}Posts list{% endblock %}
{% block body %}
    <div class="form-group text-right">
        <a href="{{ path('post_new') }}" class="btn btn-success">Create a new post</a>
    </div>
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th>Title</th>
                <th>Image</th>
                <th>Isactive</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for post in posts %}
            <tr>
                <td>{{ post.title }}</td>
                <td><img src="{{asset('uploads/')}}{{ post.image }}" style="width:100px"> </td>
                <td>{% if post.isActive %}<i class="glyphicon glyphicon-ok btn btn-success"></i>{% else %}<i class="glyphicon glyphicon-remove btn btn-danger"></i>{% endif %}</td>
                <td>
                  <a href="{{ path('articulo', { 'slug': post.slug }) }}" class="btn btn-info glyphicon glyphicon-share-alt" ></a>
                  <a href="{{ path('post_edit', { 'id': post.id }) }}" class="btn btn-primary glyphicon glyphicon-pencil" ></a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}<commit_msg>aplicando target blank al preview link<commit_after>{% extends 'layouts/dashboard.html.twig' %}
{% block title %}Posts list{% endblock %}
{% block body %}
    <div class="form-group text-right">
        <a href="{{ path('post_new') }}" class="btn btn-success">Create a new post</a>
    </div>
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th>Title</th>
                <th>Image</th>
                <th>Isactive</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for post in posts %}
            <tr>
                <td>{{ post.title }}</td>
                <td><img src="{{asset('uploads/')}}{{ post.image }}" style="width:100px"> </td>
                <td>{% if post.isActive %}<i class="glyphicon glyphicon-ok btn btn-success"></i>{% else %}<i class="glyphicon glyphicon-remove btn btn-danger"></i>{% endif %}</td>
                <td>
                  <a href="{{ path('articulo', { 'slug': post.slug }) }}" target="_blank" class="btn btn-info glyphicon glyphicon-share-alt" ></a>
                  <a href="{{ path('post_edit', { 'id': post.id }) }}" class="btn btn-primary glyphicon glyphicon-pencil" ></a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}
{'fraction_non_alphanumeric': 0.19526175009552924, 'fraction_numerical': 0.0022927015666794038, 'mean_word_length': 1.88008800880088, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '2387338', 'n_tokens_mistral': 876, 'n_tokens_neox': 795, 'n_words': 188}