<commit_before>{extends "designs/site.tpl"}

{block title}{_ 'Events'} &mdash; {$dwoo.parent}{/block}

{block content}

{block content}
    <header class="page-header">
        <div class="btn-toolbar pull-right">
            {if $.User}
                <form action="/events/create">
                    <button class="btn btn-success" type="submit">{glyph "plus"}&nbsp;{_ "Add Event&hellip;"}</button>
                </form>
            {/if}
        </div>
        <h1>{_ "Events"} <span class="badge">{$total|number_format}</span></h1>
    </header>

    <div class="row">
        <div class="col-sm-4 col-md-3">
            [Event Filters]
        </div>
        <div class="col-sm-8 col-md-9">
            {foreach item=Event from=$data}
                <article class="post panel panel-default">
                    <div class="panel-body">
                        <h2 class="post-title">
                            <a name="{$Event->Handle}" href="{$Event->getURL()}">{$Event->Title|escape}</a>
                        </h2>
                        <dl class="dl-horizontal">
                            {if $Event->Status != 'published'}
                                <dt>Status</dt>
                                <dd><strong>{$Event->Status}</strong></dd>
                            {/if}

                            <dt>Start time</dt>
                            <dd>{timestamp $Event->StartTime time=yes}</dd>

                            {if $Event->EndTime}
                                <dt>End time</dt>
                                <dd>{timestamp $Event->EndTime time=yes}</dd>
                            {/if}

                            {if $Event->Location}
                                <dt>Location</dt>
                                <dd><a href="https://www.google.com/maps?q={$Event->Location|escape:url}">{$Event->Location|escape}</a></dd>
                            {/if}

                            {if $Event->Description}
                                <dt>Description</dt>
                                <dd class="well">
                                    <div class="markdown event-description">{$Event->Description|truncate:600|escape|markdown}</div>
                                </dd>
                            {/if}
                        </dl>
                    </div>
                </article>
            {foreachelse}
                <em>No events were found, try creating one{if count($conditions)} or <a href="?">browse without any filters</a>{/if}.</em>
            {/foreach}
        </div>
    </div>
{/block}

{/block}<commit_msg>Fix mistakes in events template markup<commit_after>{extends "designs/site.tpl"}

{block title}{_ 'Events'} &mdash; {$dwoo.parent}{/block}

{block content}
    <header class="page-header">
        <div class="btn-toolbar pull-right">
            {if $.User}
                <form action="/events/create">
                    <button class="btn btn-success" type="submit">{glyph "plus"}&nbsp;{_ "Add Event&hellip;"}</button>
                </form>
            {/if}
        </div>
        <h1>{_ "Events"} <span class="badge">{$total|number_format}</span></h1>
    </header>

    <div class="row">
        <div class="col-sm-4 col-md-3">
            [Event Filters]
        </div>
        <div class="col-sm-8 col-md-9">
            {foreach item=Event from=$data}
                <article class="post panel panel-default">
                    <div class="panel-body">
                        <h2 class="post-title">
                            <a name="{$Event->Handle}" href="{$Event->getUrl()}">{$Event->Title|escape}</a>
                        </h2>
                        <dl class="dl-horizontal">
                            {if $Event->Status != 'published'}
                                <dt>Status</dt>
                                <dd><strong>{$Event->Status}</strong></dd>
                            {/if}

                            <dt>Start time</dt>
                            <dd>{timestamp $Event->StartTime time=yes}</dd>

                            {if $Event->EndTime}
                                <dt>End time</dt>
                                <dd>{timestamp $Event->EndTime time=yes}</dd>
                            {/if}

                            {if $Event->Location}
                                <dt>Location</dt>
                                <dd><a href="https://www.google.com/maps?q={$Event->Location|escape:url}">{$Event->Location|escape}</a></dd>
                            {/if}

                            {if $Event->Description}
                                <dt>Description</dt>
                                <dd class="well">
                                    <div class="markdown event-description">{$Event->Description|truncate:600|escape|markdown}</div>
                                </dd>
                            {/if}
                        </dl>
                    </div>
                </article>
            {foreachelse}
                <em>No events were found, try creating one{if count($conditions)} or <a href="?">browse without any filters</a>{/if}.</em>
            {/foreach}
        </div>
    </div>
{/block}
{'fraction_non_alphanumeric': 0.15471625766871167, 'fraction_numerical': 0.004217791411042945, 'mean_word_length': 1.132869991823385, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 145, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3200438', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1346, 'n_words': 243}