<div class="box">
  {{ with .Entry }}
    <h4 class="title is-5">{{ .Name }}</h4>
    <p><strong>Type :</strong> {{ ext .Name }}</p>
    <p><strong>Taille :</strong> {{ printf "%.1f KB" (toKB .Size) }}</p>
    <p><strong>Modifié le :</strong> {{ .ModTime.Format "02 Jan 2006 15:04" }}</p>
    {{ if and (not .IsDir) (or (hasSuffix .Name ".jpg") (hasSuffix .Name ".png")) }}
      <figure class="image">
        <img src="/app/upload/{{ .Path }}">
      </figure>
    {{ end }}
  {{ end }}
</div>

