<commit_before>{% extends 'base.html' %}

{% block title %}{{ board.name }}{% endblock %}

{% block body %}

<div class="col-sm-12">
    <h3>{{ board.name }}</h3>
    <div class="panel panel-default">
        <div class="panel-body">
            <table id="id_post_list_table" class="table table-hover">
                <thead>
                    <tr>
                        <th>#</th>
                        <th class="table-title">제목</th>
                        <th>날짜</th>
                        <th>추천</th>
                        <th>조회 수</th>
                    </tr>
                </thead>
                <tbody>
                    {% for post in posts %}
                        <tr>
                            <td>{{ forloop.counter }}</td>
                            <td><a href="{% url 'board:view_post' post.id %}">{{ post.title }}</a></td>
                            <td>{{ post.created_time|date:"Y-m-d H:i:s" }}</td>
                            <td>{{ post.like_count }}</td>
                            <td class="page-view-count">{{ post.page_view_count }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>

            {% include 'pagination.html' with pages_nav_info=pages_nav_info search_info=search_info %}
        </div>
    </div>

    <!-- pagination -->
    <div class="row">
        <div class="col-sm-8">
        <form method="GET" class="form-inline">
            <select name="search_flag" class="form-control search-flag">
                {% for key, value in search_info.flags %}
                    <option value="{{ key }}"
                            {% if search_info.selected_flag == key %} selected {% endif %}>{{ value }}</option>
                {% endfor %}
            </select>
            <div class="input-group">
                <input type="text" class="form-control" name="query"
                   placeholder="검색어 입력" value="{{search_info.query}}">
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default btn-search">
                        <i class="glyphicon glyphicon-search"></i>
                    </button>
                </span>
            </div>
        </form>
        </div>
        <div class="col-sm-3">
            <button type="button" id="id_create_post_button" class="form-control btn btn-primary redirection-button"
                    path="{% url 'board:new_post' board.slug %}">글쓰기</button>
        </div>
        <div class="col-sm-3">
            <button type="button" id="board_list_button" class="form-control btn btn-default redirection-button"
                    path="{% url 'board:board_list' %}">게시판 목록</button>
        </div>
    </div>
</div>
{% endblock %}
<commit_msg>Fix 'post_list' template layout<commit_after>{% extends 'base.html' %}

{% block title %}{{ board.name }}{% endblock %}

{% block body %}

<div class="col-sm-12">
    <h3>{{ board.name }}</h3>
    <div class="panel panel-default">
        <div class="panel-body">
            <table id="id_post_list_table" class="table table-hover">
                <thead>
                    <tr>
                        <th>#</th>
                        <th class="table-title">제목</th>
                        <th>날짜</th>
                        <th>추천</th>
                        <th>조회 수</th>
                    </tr>
                </thead>
                <tbody>
                    {% for post in posts %}
                        <tr>
                            <td>{{ forloop.counter }}</td>
                            <td><a href="{% url 'board:view_post' post.id %}">{{ post.title }}</a></td>
                            <td>{{ post.created_time|date:"Y-m-d H:i:s" }}</td>
                            <td>{{ post.like_count }}</td>
                            <td class="page-view-count">{{ post.page_view_count }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>

            {% include 'pagination.html' with pages_nav_info=pages_nav_info search_info=search_info %}
        </div>
    </div>

    <!-- pagination -->
    <div class="row">
        <div class="col-sm-8">
        <form method="GET" class="form-inline">
            <select name="search_flag" class="form-control search-flag">
                {% for key, value in search_info.flags %}
                    <option value="{{ key }}"
                            {% if search_info.selected_flag == key %} selected {% endif %}>{{ value }}</option>
                {% endfor %}
            </select>
            <div class="input-group">
                <input type="text" class="form-control" name="query"
                   placeholder="검색어 입력" value="{{search_info.query}}">
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default btn-search">
                        <i class="glyphicon glyphicon-search"></i>
                    </button>
                </span>
            </div>
        </form>
        </div>
        <div class="col-sm-2">
            <button type="button" id="id_create_post_button" class="form-control btn btn-primary redirection-button"
                    path="{% url 'board:new_post' board.slug %}">글쓰기</button>
        </div>
        <div class="col-sm-2">
            <button type="button" id="board_list_button" class="form-control btn btn-default redirection-button"
                    path="{% url 'board:board_list' %}">게시판 목록</button>
        </div>
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.1623167679656775, 'fraction_numerical': 0.0025026814444047193, 'mean_word_length': 1.348866498740554, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, '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': '7304211', 'n_tokens_mistral': 1686, 'n_tokens_neox': 1609, 'n_words': 319}