{{!< default}}

<p>
    <b>
        {{! Grab 1st coreName value (it will be same value for entire set).}}
        {{#if alerts.0.coreName}}
            Alerts from Particle Core: {{alerts.0.coreName}}
        {{else}}
            Alerts from Particle Core: # No Name #
        {{/if}}
    </b>

    <a href="https://particle.kaplon.us/core/edit/{{this.coreId}}" class="btn btn-primary">Edit Details</a>
</p>

<table class="table table-striped">
    <thead>
        <tr>
            <th>Timestamp</th>
            <th>Status</th>
        </tr>
    </thead>
    <tbody>
        {{#each alerts}}
            <tr>
                <td>{{this.published_at}}</td>
                <td>{{this.status}}</td>
            </tr>
        {{/each}}
    </tbody>
</table>

<script>
    setTimeout(
        function() {
            location.reload();
        }, 10000
    );
</script>