{{define "body"}}
<div class="row">
    <div class="nav-container full-width relative">
    <ol class="breadcrumb full-width">
        <li class="breadcrumb-item"></li>
        <li class="breadcrumb-item"><a href="/{{.BodyTitle}}">{{.BodyTitle}}</a></li>
        <li class="breadcrumb-item active">{{.Data.Title}}</li>
    </ol>
    <div class="btn-group btn-breadcrumb">
        <a href="/{{.Data.StoreTitle}}/md" class="btn btn-sm btn-primary">Markdown</a>
        {{if .Login}}
        <a href="/{{.Data.StoreTitle}}/edit" class="btn btn-sm btn-primary">Edit</a>
        {{if eq .Data.Perm 2}}
        <a href="/{{.Data.StoreTitle}}/share" class="btn btn-sm btn-primary">Share</a>
        {{end}}
        {{if ne .Data.StoreTitle "wiki/Index"}}
        <a href="/{{.Data.StoreTitle}}/del" class="btn btn-sm btn-danger">Delete</a>
        {{end}}
        {{end}}
    </div>
    </div>
</div>
<div class="row mt-3">
    <div class="col">
        <strong>Created by:</strong> {{.Data.Created}}<br>
        {{if .Data.Updated}}
        <strong>Updated by:</strong> {{.Data.Updated}}<br>
        {{end}}
        <strong>Visibility:</strong>
        {{if eq .Data.Perm 1}}
        <span class="badge badge-primary">Public</span>
        {{end}}
        {{if eq .Data.Perm 2}}
        <span class="badge badge-danger">Private</span>
        {{end}}
        <br>
    </div>
</div>
<div class="row mt-5">
    <div class="col">
    {{.Data.TOC}}
    </div>
</div>
{{.Data.HTML}}
{{end}}
