<template name="dialogInfo">
  {{#dialogSimple (extend this
    title=(choose this.title 'Error')
  )}}
    <div class="messages">
      {{#each message in this.messages}}
        <div class="message">{{{message}}}</div>
      {{else}}
        {{#if isError}}
            {{>pageError (extend this error=this.details)}}
        {{else}}
          {{#let message=(choose this.reason this.message 'An error has ocurred.')}}
            <div class="message">{{message}}</div>
          {{/let}}
        {{/if}}
      {{/each}}
    </div>
  {{/dialogSimple}}
</template>
