<commit_before>﻿@model dynamic
@{
    var colInvoiceNum = "col-lg-3 col-sm-3";
    var colDate = "col-lg-2 col-sm-2";
    var colProject = "col-lg-3 col-sm-3";
    var colState = "col-lg-1 col-sm-1";
    var colHours = "col-lg-1 col-sm-1";
    var colSum = "col-lg-1 col-sm-1";
}
<div class="clearfix">
    <h2>Invoices</h2>
</div>
<ul class="nav nav-pills section">
    <li ui-sref-active="active">
        <a ui-sref="invoiceList({ mode: 'pending' })">Pending invoices</a>
    </li>
    <li ui-sref-active="active">
        <a ui-sref="invoiceList({ mode: 'archive' })">Archive</a>
    </li>
</ul>
<div class="clearfix text-muted">
    <div class="@colInvoiceNum">
        Invoice #
    </div>
    <div class="@colDate">Date</div>
    <div class="@colProject">Project</div>
    <div class="@colHours">Hours</div>
    <div class="@colSum">Sum</div>
    <div class="@colSum">Received</div>
    <div ng-if="displayStatus"
         class="@colState">State</div>
</div>
<div class="clearfix h4 invoice-list-row"
     ng-class="{ 'text-muted' : inv.isCancelled }"
     ui-sref="invoiceDetails({ invoiceNum: inv.invoiceNum })"
     ng-if="data"
     ng-repeat="inv in data">
    <div class="@colInvoiceNum">
        {{inv.invoiceNum}}
    </div>
    <div class="@colDate">
        {{dates.format(inv.at)}}
    </div>
    <div class="@colProject">
        {{inv.projectTitle}}
    </div>
    <div class="@colHours">
        {{inv.hours | hours}}
    </div>
    <div class="@colSum text-primary">
        {{inv.sum | currency}}
    </div>
    <div class="@colSum text-success">
        {{inv.receivedSum | currency}}
    </div>
    <div ng-if="displayStatus"
         class="@colState">
        {{ inv.isPaid ? "Paid" : "Cancelled" }}
    </div>
</div><commit_msg>Info messages if there is no invoice.<commit_after>﻿@model dynamic
@{
    var colInvoiceNum = "col-lg-3 col-sm-3";
    var colDate = "col-lg-2 col-sm-2";
    var colProject = "col-lg-3 col-sm-3";
    var colState = "col-lg-1 col-sm-1";
    var colHours = "col-lg-1 col-sm-1";
    var colSum = "col-lg-1 col-sm-1";
}
<div class="clearfix">
    <h2>Invoices</h2>
</div>
<ul class="nav nav-pills section">
    <li ui-sref-active="active">
        <a ui-sref="invoiceList({ mode: 'pending' })">Pending invoices</a>
    </li>
    <li ui-sref-active="active">
        <a ui-sref="invoiceList({ mode: 'archive' })">Archive</a>
    </li>
</ul>
<div class="clearfix text-muted"
     ng-if="data.length">
    <div class="@colInvoiceNum">
        Invoice #
    </div>
    <div class="@colDate">Date</div>
    <div class="@colProject">Project</div>
    <div class="@colHours">Hours</div>
    <div class="@colSum">Sum</div>
    <div class="@colSum">Received</div>
    <div ng-if="displayStatus"
         class="@colState">State</div>
</div>
<div class="clearfix h4 invoice-list-row"
     ng-class="{ 'text-muted' : inv.isCancelled }"
     ui-sref="invoiceDetails({ invoiceNum: inv.invoiceNum })"
     ng-if="data.length"
     ng-repeat="inv in data">
    <div class="@colInvoiceNum">
        {{inv.invoiceNum}}
    </div>
    <div class="@colDate">
        {{dates.format(inv.at)}}
    </div>
    <div class="@colProject">
        {{inv.projectTitle}}
    </div>
    <div class="@colHours">
        {{inv.hours | hours}}
    </div>
    <div class="@colSum text-primary">
        {{inv.sum | currency}}
    </div>
    <div class="@colSum text-success">
        {{inv.receivedSum | currency}}
    </div>
    <div ng-if="displayStatus"
         class="@colState">
        {{ inv.isPaid ? "Paid" : "Cancelled" }}
    </div>
</div>
<div class="alert alert-info"
     ng-if="!data.length">
    No invoices yet. <a ui-sref="track-time">Track time</a> and bill some project to make invoice.
</div>
{'fraction_non_alphanumeric': 0.2030538440932226, 'fraction_numerical': 0.008036431824270024, 'mean_word_length': 2.775530839231547, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '1085738', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1377, 'n_words': 272}