{{define "app-updates"}}
{{template "header" .}}

<style type="text/css">
</style>

<div class="content-container snug">
	{{template "admin-header" .}}

	{{if not .UpdateAvailable}}
  <p class="alert info">WriteFreely is up to date.</p>
  {{else}}
  <p class="alert info">WriteFreely {{.LatestVersion}} is available.</p>
  <section class="changelog">
    For details on features, bug fixes or notes on upgrading, <a href="{{.LatestReleaseURL}}">read the release notes</a>.
  </section>
  {{end}}
  <p>Last checked at: {{.LastChecked}}. <a href="/admin/updates?check=now">Check now</a>.</p>

{{template "footer" .}}

{{template "body-end" .}}
{{end}}
