<commit_before>{% extends "base/base.html" %}

{% block page_title %}Hourly rates{% endblock %}

{% block content %}
        <h1>Hourly rates</h1>
        {% if hourly_rates|length == 0 %}
        <div class="panel panel-warning ">
          <div class="panel-heading">No hourly rates</div>
          <div class="panel-body">
            It seems you don't have hourly rates. <a href="{% url 'hourly_rates:new' %}" title="New hourly rate" class="btn btn-primary">Create a new hourly rate</a>
          </div>
        </div>
        {% else %}
            <a href="{% url 'hourly_rates:new' %}" title="New hourly rate" class="btn btn-primary">New</a>
            <div class="panel">
                <table class="table">
                    <tr>
                        <td>Name</td>
                        <td>Start date</td>
                        <td>End date</td>
                        <td>Is active?</td>
                        <td>Actions</td>
                    </tr>
                    {% for hourly_rate in hourly_rates %}
                        <tr>
                            <td>{{hourly_rate.name}}</td>
                            <td>{{hourly_rate.start_date}}</td>
                            <td>{% if hourly_rate.end_date %}{{hourly_rate.end_date}}{% else %}Until now{% endif %}</td>
                            <td>{% if hourly_rate.is_active %}Yes{% else %}No{% endif %}</td>
                            <td>
                                <a href="{% url 'hourly_rates:edit' hourly_rate.id %}"  class="btn btn-primary">Edit</a>
                                <a href="{% url 'hourly_rates:delete' hourly_rate.id %}" class="btn btn-danger">Delete</a>
                            </td>
                        </tr>
                    {% endfor %}
                </table><commit_msg>Improve hourly rate list<commit_after>{% extends "base/base.html" %}

{% block page_title %}Hourly rates{% endblock %}

{% block content %}
        <h1>Hourly rates</h1>
        {% if hourly_rates|length == 0 %}
        <div class="panel panel-warning ">
          <div class="panel-heading">No hourly rates</div>
          <div class="panel-body">
            It seems you don't have hourly rates. <a href="{% url 'hourly_rates:new' %}" title="New hourly rate" class="btn btn-primary">Create a new hourly rate</a>
          </div>
        </div>
        {% else %}
            <a href="{% url 'hourly_rates:new' %}" title="New hourly rate" class="btn btn-primary">New</a>
            <div class="panel">
                <table class="table">
                    <tr>
                        <td>Name</td>
                        <td>Start date</td>
                        <td>End date</td>
                        <td>Rate</td>
                        <td>Number of boards</td>
                        <td>Is active?</td>
                        <td>Actions</td>
                    </tr>
                    {% for hourly_rate in hourly_rates %}
                        <tr>
                            <td>{{hourly_rate.name}}</td>
                            <td>{{hourly_rate.start_date}}</td>
                            <td>{% if hourly_rate.end_date %}{{hourly_rate.end_date}}{% else %}Until now{% endif %}</td>
                            <td>{{hourly_rate.amount|floatformat:-2}}</td>
                            <td>{{hourly_rate.boards.all.count}}</td>
                            <td>{% if hourly_rate.is_active %}Yes{% else %}No{% endif %}</td>
                            <td>
                                <a href="{% url 'hourly_rates:edit' hourly_rate.id %}"  class="btn btn-primary">Edit</a>
                                <a href="{% url 'hourly_rates:delete' hourly_rate.id %}" class="btn btn-danger">Delete</a>
                            </td>
                        </tr>
                    {% endfor %}
                </table>
{'fraction_non_alphanumeric': 0.15108471074380164, 'fraction_numerical': 0.0018078512396694215, 'mean_word_length': 1.274221961244862, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3958249', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1041, 'n_words': 234}