2019-08-30 00:05:59 +02:00
|
|
|
{{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">
|
2020-02-14 22:13:54 +01:00
|
|
|
For details on features, bug fixes or notes on upgrading, <a href="{{.LatestReleaseNotesURL}}">read the release notes</a>.
|
2019-08-30 00:05:59 +02:00
|
|
|
</section>
|
|
|
|
{{end}}
|
2020-02-15 17:57:55 +01:00
|
|
|
<p>Last checked at: <time class="dt-published" datetime="{{.LastChecked8601}}">{{.LastChecked}}</time>. <a href="/admin/updates?check=now">Check now</a>.</p>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
// Code modified from /js/localdate.js
|
|
|
|
var displayEl = document.querySelector("time");
|
|
|
|
var d = new Date(displayEl.getAttribute("datetime"));
|
|
|
|
displayEl.textContent = d.toLocaleDateString(navigator.language || "en-US", { dateStyle: 'long', timeStyle: 'short' });
|
|
|
|
</script>
|
2019-08-30 00:05:59 +02:00
|
|
|
|
|
|
|
{{template "footer" .}}
|
|
|
|
|
|
|
|
{{template "body-end" .}}
|
|
|
|
{{end}}
|