{{$name := .name}}
{{range .messages}}
<button id="{{.ID}}" type="button" class="listEntry list-group-item">
  <div class="row">
    <div class="col-sm-4 col-md-12 text-primary">{{.Subject}}</div>
    <div class="col-sm-4 col-md-12 small">{{.From}}</div>
    <div class="col-sm-4 col-md-12 small">{{friendlyTime .Date}}</div>
  </div>
</button>
{{else}}
<div class="list-group-item disabled">No messages!</div>
{{end}}
