<commit_before>{% load timepiece_tags %}
{% load url from future %}

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid visible-desktop">
            {% block navbar-left %}
                <ul class="nav pull-left">
                    <li class="active"><a class="brand" href="/">Timepiece</a></li>
                    {% if perms.timepiece.add_entry %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dashboard <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{% url 'timepiece-entries' %}">Time Tracking</a></li>
                                <li><a href="{% url 'view_person_time_sheet' request.user.pk %}">My Ledger</a></li>
                            </ul>
                        </li>
                    {% endif %}
                    {% if perms.timepiece.view_project or perms.auth.view_user or perms.timepiece.view_business %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">CRM <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                {% if perms.timepiece.view_project %}
                                    <li><a href="{% url 'list_projects' %}">Projects</a></li>
                                {% endif %}
                                {% if perms.auth.view_user %}
                                    <li><a href="{% url 'list_people' %}">People</a></li>
                                {% endif %}
                                {% if perms.timepiece.view_business %}
                                    <li><a href="{% url 'list_businesses' %}">Businesses</a></li>
                                {% endif %}
                            </ul>
                        </li>
                    {% endif %}
                    {% if perms.timepiece.view_entry_summary %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{% url 'hourly_report' %}">Hourly</a></li>
                                {% if perms.timepiece.view_payroll_summary %}
                                    <li><a href="{% url 'payroll_summary' %}">Payroll</a></li>
                                {% endif %}
                                {% if perms.timepiece.add_project_contract %}
                                    <li><a href="{% url 'list_contracts' %}">Contracts</a></li>
                                {% endif %}
                                <li><a href="{% url 'timepiece-summary' %}">General Ledger</a></li>
                                <li class="divider"></li>
                                {% if perms.timepiece.edit_person_time_sheet %}
                                    <li><a href="{% url 'invoice_projects' %}">Invoices</a></li>
                                {% endif %}
                            </ul>
                        </li>
                    {% endif %}
                    
                    {% for name, links in extra_nav.items %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ name }} <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                {% for url_name, link_text in links %}
                                    <li><a href="{% url url_name %}">{{ link_text }}</a></li>
                                {% endfor %}
                            </ul>
                        </li>
                    {% endfor %}<commit_msg>refs #348 - Adjusted the permissions checks<commit_after>{% load timepiece_tags %}
{% load url from future %}

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid visible-desktop">
            {% block navbar-left %}
                <ul class="nav pull-left">
                    <li class="active"><a class="brand" href="/">Timepiece</a></li>
                    {% if perms.timepiece.add_entry %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dashboard <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{% url 'timepiece-entries' %}">Time Tracking</a></li>
                                <li><a href="{% url 'view_person_time_sheet' request.user.pk %}">My Ledger</a></li>
                            </ul>
                        </li>
                    {% endif %}
                    {% if perms.timepiece.view_project or perms.auth.view_user or perms.timepiece.view_business %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">CRM <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                {% if perms.timepiece.view_project %}
                                    <li><a href="{% url 'list_projects' %}">Projects</a></li>
                                {% endif %}
                                {% if perms.auth.view_user %}
                                    <li><a href="{% url 'list_people' %}">People</a></li>
                                {% endif %}
                                {% if perms.timepiece.view_business %}
                                    <li><a href="{% url 'list_businesses' %}">Businesses</a></li>
                                {% endif %}
                            </ul>
                        </li>
                    {% endif %}
                    {% if perms.timepiece.view_entry_summary or perms.timepiece.view_payroll_summary or perms.timepiece.add_project_contract or perms.timepiece.change_entrygroup %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                {% if perms.timepiece.view_entry_summary %}
                                    <li><a href="{% url 'hourly_report' %}">Hourly</a></li>
                                {% endif %}
                                {% if perms.timepiece.view_payroll_summary %}
                                    <li><a href="{% url 'payroll_summary' %}">Payroll</a></li>
                                {% endif %}
                                {% if perms.timepiece.add_project_contract %}
                                    <li><a href="{% url 'list_contracts' %}">Contracts</a></li>
                                {% endif %}
                                {% if perms.timepiece.view_entry_summary %}
                                    <li><a href="{% url 'timepiece-summary' %}">General Ledger</a></li>
                                {% endif %}
                                <li class="divider"></li>
                                {% if perms.timepiece.change_entrygroup %}
                                    <li><a href="{% url 'invoice_projects' %}">Invoices</a></li>
                                {% endif %}
                            </ul>
                        </li>
                    {% endif %}
                    
                    {% for name, links in extra_nav.items %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ name }} <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                {% for url_name, link_text in links %}
                                    <li><a href="{% url url_name %}">{{ link_text }}</a></li>
                                {% endfor %}
                            </ul>
                        </li>
                    {% endfor %}
{'fraction_non_alphanumeric': 0.1426129426129426, 'fraction_numerical': 0.0003663003663003663, 'mean_word_length': 1.014510575504181, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6879665', 'n_tokens_mistral': 2204, 'n_tokens_neox': 1927, 'n_words': 373}