<commit_before>{% extends "admin/adminBase.twig" %}

{% block content %}

            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">{{lang.labelGroup}} <a href="add" class="btn btn-primary btn-lg">{{lang.btnNewGroup}}</a></h1>
                </div>
            </div>

             <div class="row">
                <div class="col-lg-12">
                     {% include "admin/alerts.twig" %}
                </div>
            </div>
                    
           <div class="row">
                <div class="col-lg-12">
                    
                    <div style="text-align:right">
                        {% include "admin/pager.twig" %}
                    </div>
                    
                    <table class="table table-striped">
                        
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>{{lang.formGroupAvatar}}</th>
                                <th>{{lang.formGroupCategory}}</th>
                                <th>{{lang.formGroupName}}</th>
                                <th>{{lang.labelCreated}}</th>
                                <th>{{lang.labelModified}}</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                        
                            {% for group in groups %}

                                <tr>
                                    <td>{{group.value._id}}</td>
                                    <td>
                                        {% if group.value.avatar_thumb_file_id != '' %}
                                            <img class="img-thumbnail" src="{{ROOT_URL}}/api/filedownloader?file={{group.value.avatar_thumb_file_id}}" width="60"/>
                                        {% else %}
                                            <img class="img-thumbnail" src="http://dummyimage.com/60x60/e2e2e2/7a7a7a&text=nopicture" width="60"/>
                                            
                                        {% endif %}
                                    </td>
                                    <td>{{categoryList[group.value.category_id].title}}</td>
                                    <td>{{group.value.name}}</td>
                                    <td>{{group.value.created}}</td>
                                    <td>{{group.value.modified}}</td>
                                    <td>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/view/{{group.value._id}}" class="btn btn-primary">
                                            <i class="fa fa-search"></i> {{lang.labelView}}
                                        </a>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/edit/{{group.value._id}}" class="btn btn-success">
                                            <i class="fa fa-pencil-square-o"></i> {{lang.labelEdit}}
                                        </a>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/delete/{{group.value._id}}" class="btn btn-danger">
                                            <i class="fa fa-eraser"></i> {{lang.labelDelete}}
                                        </a>
                                        
                                    </td>
                                </tr>

                            {% endfor %}

                        </tbody>
                    </table>
<commit_msg>fixed problem showing group list<commit_after>{% extends "admin/adminBase.twig" %}

{% block content %}

            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">{{lang.labelGroup}} <a href="add" class="btn btn-primary btn-lg">{{lang.btnNewGroup}}</a></h1>
                </div>
            </div>

             <div class="row">
                <div class="col-lg-12">
                     {% include "admin/alerts.twig" %}
                </div>
            </div>
                    
           <div class="row">
                <div class="col-lg-12">
                    
                    <div style="text-align:right">
                        {% include "admin/pager.twig" %}
                    </div>
                    
                    <table class="table table-striped">
                        
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>{{lang.formGroupAvatar}}</th>
                                <th>{{lang.formGroupCategory}}</th>
                                <th>{{lang.formGroupName}}</th>
                                <th>{{lang.labelCreated}}</th>
                                <th>{{lang.labelModified}}</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                        
                            {% for group in groups %}

                                <tr>
                                    <td>{{group._id}}</td>
                                    <td>
                                        {% if group.avatar_thumb_file_id != '' %}
                                            <img class="img-thumbnail" src="{{ROOT_URL}}/api/filedownloader?file={{group.avatar_thumb_file_id}}" width="60"/>
                                        {% else %}
                                            <img class="img-thumbnail" src="http://dummyimage.com/60x60/e2e2e2/7a7a7a&text=nopicture" width="60"/>
                                            
                                        {% endif %}
                                    </td>
                                    <td>{{categoryList[group.category_id].title}}</td>
                                    <td>{{group.name}}</td>
                                    <td>{{group.created}}</td>
                                    <td>{{group.modified}}</td>
                                    <td>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/view/{{group._id}}" class="btn btn-primary">
                                            <i class="fa fa-search"></i> {{lang.labelView}}
                                        </a>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/edit/{{group._id}}" class="btn btn-success">
                                            <i class="fa fa-pencil-square-o"></i> {{lang.labelEdit}}
                                        </a>
                                        
                                        <a href="{{ROOT_URL}}/admin/group/delete/{{group._id}}" class="btn btn-danger">
                                            <i class="fa fa-eraser"></i> {{lang.labelDelete}}
                                        </a>
                                        
                                    </td>
                                </tr>

                            {% endfor %}

                        </tbody>
                    </table>

{'fraction_non_alphanumeric': 0.1271083524490622, 'fraction_numerical': 0.0059371204965591685, 'mean_word_length': 0.6482099177229264, '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': 82, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4107051', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1480, 'n_words': 218}