{{ define "categories" }}
<section class="breadcrumb-section pb-3 pt-3">
    <div class="container">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/">Home</a></li>
            <li class="breadcrumb-item"><a href="/section/{{ .game.ID }}">{{ .game.Name }}</a></li>
            <!--<li class="breadcrumb-item active" aria-current="page">{{ .product.Name}}</li>-->
        </ol>
    </div>
</section>
<section class="product-page pb-4 pt-4">
    <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-12">
                <div class="sidebar">
                    <div class="sidebar-widget">
                        <div class="widget-title">
                            <h3>Kategorien</h3>
                            {{ if .user }}
                            {{ if .user.Admin }}
                            <a href="/admin/category/{{ .game.ID }}">Bearbeiten</a>
                            {{ end }}
                            {{ end }}
                        </div>
                        <div class="widget-content widget-categories">
                            <ul>
                                {{ range $i, $categorie := .categories }}
                                <li><a href="/products/cat/{{ $categorie.ID }}">{{ $categorie.Name }}</a></li>
                                {{ end }}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

{{ end }}