<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<div class="page" data-name="log">

    <div class="navbar">
        <div class="navbar-bg"></div>
        <div class="navbar-inner">
            <div class="left">
                <a href="#" class="link icon-only back">
                    <i class="icon icon-back"></i>
                </a>
            </div>
            <div class="title">Activity Log</div>
            <div class="right">
                <a class="link text-color-red" onclick="confirmDeleteActivityLog()">
                    <i class="icon material-icons">delete</i>
                </a>
            </div>
        </div>
    </div>

    <div class="page-content">
        <div class="row justify-content-center">
            <div class="col-100 medium-60 large-50 xlarge-40 elevation-tablet margin-top-tablet">
                {{#if events}}
                <div class="timeline medium-sides">
                    {{#each events}}
                    <div class="timeline-item">
                        <div class="timeline-item-date noselect">{{date}} <small>{{addldate}}</small></div>
                        <div class="timeline-item-divider"></div>
                        <div class="timeline-item-content">
                            {{#each entries}}
                            <div class="timeline-item-inner">
                                <div class="timeline-item-time">{{time}}</div>
                                <div class="timeline-item-title"><i class="{{icon}}"></i> {{title}}</div>
                                <div class="timeline-item-subtitle">{{subtitle}}</div>
                                <div class="timeline-item-text">{{content}}</div>
                            </div>
                            {{/each}}
                        </div>
                    </div>
                    {{/each}}
                </div>
                {{else}}
                <div class="block text-align-center noselect">
                    <img style="width: 60%; max-width: 300px; max-height: 40vh;" src="assets/images/history-dashed.svg" class="margin-vertical" />
                    <div class="margin-top">Log empty! When you mark packages as delivered, add notes, and more, this log will automatically gain entries.</div>
                </div>
                {{/if}}
            </div>
        </div>
    </div>

    <script src="assets/js/toolbox_log.js"></script>
</div>
