<commit_before>@(currentPage: Page[entities.Event], userContext: Option[models.entities.UserContext])(implicit request: be.studiocredo.auth.SecureRequest[_], lang: Lang)

@base("Evenementen")(userContext) {

    @if(!currentPage.isEmpty) {
        <table class="table table-hover table-striped">
            <thead>
                <tr>
                    <th>Naam</th>
                    <th>Beschrijving</th>
                    <th/>
                </tr>
            </thead>
            <tbody>
            @currentPage.items.map { event =>
                <tr>
                    <td><a href="@routes.Events.view(event.id)">@event.name</a></td>
                    <td>@event.description</td>
                    <td><a class="btn btn-default btn-xs" href="@routes.Orders.start(event.id)">Bestellen</a></td>
                </tr>
            }
            </tbody>
        </table>

        @helper.pagingMinimal(currentPage, (page:Int) => routes.Events.list(page))
    } else {
        <div class="well">
            <em>Geen evenementen gevonden.</em>
        </div>

    }
}<commit_msg>only show link when applicable<commit_after>@(currentPage: Page[entities.Event], userContext: Option[models.entities.UserContext])(implicit request: be.studiocredo.auth.SecureRequest[_], lang: Lang)

@base("Evenementen")(userContext) {

    @if(!currentPage.isEmpty) {
        <table class="table table-hover table-striped">
            <thead>
                <tr>
                    <th>Naam</th>
                    <th>Beschrijving</th>
                    <th/>
                </tr>
            </thead>
            <tbody>
            @currentPage.items.map { event =>
                <tr>
                    <td><a href="@routes.Events.view(event.id)">@event.name</a></td>
                    <td>@event.description</td>
                    <td>
                        @if(event.reservationAllowed) {
                        <a class="btn btn-default btn-xs" href="@routes.Orders.start(event.id)">Bestellen</a>
                        }
                    </td>
                </tr>
            }
            </tbody>
        </table>

        @helper.pagingMinimal(currentPage, (page:Int) => routes.Events.list(page))
    } else {
        <div class="well">
            <em>Geen evenementen gevonden.</em>
        </div>

    }
}
{'fraction_non_alphanumeric': 0.1512174284493806, 'fraction_numerical': 0.0, 'mean_word_length': 1.4888416578108394, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 65, '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': '7120197', 'n_tokens_mistral': 708, 'n_tokens_neox': 681, 'n_words': 99}