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

{% block content %}
<div class="container" xmlns="http://www.w3.org/1999/html">
    <div class="dashboard">
        <div class="panel panel-success">

            <div class="panel-heading">
                <span class="fa fa-dashboard"></span> {{ username|capitalize }} Dashboard
            </div>

            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-8 col-sm-offset-2">

                        <div>

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active"><a href="#dashboard" aria-controls="dashboard" role="tab" data-toggle="tab"><span><i class="fa fa-dashboard"></i> </span>Dashboard</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane fade in active" id="dashboard">

                                    <div class="">
                                    {% if shopping_lists %}
                                        <table class="table table-bordered">
                                            <caption>My Shopping lists <span class="badge">{{ shopping_lists|count }}</span></caption>
                                            <thead>
                                            <tr>
                                                <th>Shopping list No</th>
                                                <th>Name</th>
                                                <th>Date Created</th>
                                                <th>Action</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            {% for shl in shopping_lists %}
                                                <tr>
                                                    <td>#{{ loop.index }}</td>
                                                    <td>{{ shl.get('name') }}</td>
                                                    <td>{{ shl.get('shl').date_added }}</td>
                                                    <td>
                                                        <span class="shl-view">
                                                            <a class="btn btn-default btn-xs" href="{{ url_for('shopping-list-detail', name=shl.get('name')) }}">
                                                                <i class="fa fa-eye text-info"></i>
                                                            </a>
                                                        </span>
                                                        <span class="shl-edit">
                                                            <a class="btn btn-default btn-xs" href="{{ url_for('update-shopping-list', name=shl.get('name')) }}">
                                                                <i class="fa fa-pencil text-info"></i>
                                                            </a>
                                                        </span>
                                                        <span class="shl-delete">
                                                            <a href="{{ url_for('remove-shopping-list', name=shl.get('name') ) }}">
                                                                <span>
                                                                    <i class="fa fa-trash text-danger"></i>
                                                                </span></a>
                                                        </span>

                                                    </td>
                                                </tr>
                                            {% endfor %}
                                            </tbody>
                                        </table>
                                    {% else %}
                                        <div class="well">
                                            <p class="text-center">You do not have any shopping lists yet, create some using the link below.</p>
                                        </div>
                                    {% endif %}
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4 col-sm-offset-4">

                                        <div class="thumbnail text-center add-new-list">
                                            <label class="label label-default">
                                                <a href="{{ url_for('create-shopping-list') }}"><span><i class="fa fa-plus"></i> </span> Add new list</a>
                                            </label>
                                        </div>

                                    </div>
                                    </div>

                                </div>
                                <div role="tabpanel" class="tab-pane fade" id="messages">...</div>
                                <div role="tabpanel" class="tab-pane fade" id="settings">...</div>
                            </div>

                            </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
</div>

{% endblock content %}<commit_msg>Update button sizes<commit_after>{% extends 'base.html' %}

{% block content %}
<div class="container" xmlns="http://www.w3.org/1999/html">
    <div class="dashboard">
        <div class="panel panel-success">

            <div class="panel-heading">
                <span class="fa fa-dashboard"></span> {{ username|capitalize }} Dashboard
            </div>

            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-8 col-sm-offset-2">

                        <div>

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active"><a href="#dashboard" aria-controls="dashboard" role="tab" data-toggle="tab"><span><i class="fa fa-dashboard"></i> </span>Dashboard</a></li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane fade in active" id="dashboard">

                                    <div class="">
                                    {% if shopping_lists %}
                                        <table class="table table-bordered">
                                            <caption>My Shopping lists <span class="badge">{{ shopping_lists|count }}</span></caption>
                                            <thead>
                                            <tr>
                                                <th>Shopping list No</th>
                                                <th>Name</th>
                                                <th>Date Created</th>
                                                <th>Action</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            {% for shl in shopping_lists %}
                                                <tr>
                                                    <td>#{{ loop.index }}</td>
                                                    <td>{{ shl.get('name') }}</td>
                                                    <td>{{ shl.get('shl').date_added }}</td>
                                                    <td>
                                                        <div class="ui compact selection dropdown" id="action">
                                                            <i class="dropdown icon"></i>
                                                            <div class="text">Action</div>
                                                            <div class="menu">
                                                                <a class="item" href="{{ url_for('shopping-list-detail', name=shl.get('name')) }}">
                                                                    <i class="fa fa-eye text-info"></i> <small>view</small>
                                                                </a>
                                                                <a class="item" href="{{ url_for('update-shopping-list', name=shl.get('name')) }}">
                                                                    <i class="fa fa-pencil text-info"></i> <small>edit</small>
                                                                </a>
                                                                <a class="item" href="{{ url_for('remove-shopping-list', name=shl.get('name') ) }}">
                                                                    <i class="fa fa-trash text-danger"></i> <small>delete</small>
                                                                </a>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                            {% endfor %}
                                            </tbody>
                                        </table>
                                    {% else %}
                                        <div class="well">
                                            <p class="text-center">You do not have any shopping lists yet, create some using the link below.</p>
                                        </div>
                                    {% endif %}
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4 col-sm-offset-4">

                                        <div class="thumbnail text-center add-new-list">
                                            <a class="ui green basic button" href="{{ url_for('create-shopping-list') }}"><span><i class="fa fa-plus"></i> </span> Add new list</a>
                                        </div>

                                    </div>
                                    </div>

                                </div>
                            </div>

                            </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
</div>

{% endblock content %}
{'fraction_non_alphanumeric': 0.11127365822437597, 'fraction_numerical': 0.0016457895218067113, 'mean_word_length': 0.5717775542462997, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 200, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6120961', 'n_tokens_mistral': 1977, 'n_tokens_neox': 1880, 'n_words': 425}