## -*- coding: utf-8; -*-
<html>
  <head>
    <style type="text/css">
      label {
          display: block;
          font-weight: bold;
          margin-top: 1em;
      }
      p {
          margin: 1em 0 1em 1.5em;
      }
      p.notes {
          white-space: pre-wrap;
      }
    </style>
  </head>
  <body>
    <h1>Upgrade Failure for ${app_title}</h1>

    <p>
      An upgrade was just attempted for ${app_title}, but something seems to have gone wrong!
    </p>

    <label>Description</label>
    <p><a href="${upgrade_url}">${upgrade.description}</a></p>

    <label>Notes</label>
    <p class="notes">${upgrade.notes}</p>

    <label>Executed</label>
    <p>${localtime(rattail_config, upgrade.executed, from_utc=True).strftime("%Y-%m-%d %I:%M %p")}</p>

    <label>Executed by</label>
    <p>${upgrade.executed_by}</p>

    <label>Exit Code</label>
    <p>${upgrade.exit_code}</p>

  </body>
</html>
