Version 1
[yaffs-website] / web / core / modules / update / templates / update-last-check.html.twig
diff --git a/web/core/modules/update/templates/update-last-check.html.twig b/web/core/modules/update/templates/update-last-check.html.twig
new file mode 100644 (file)
index 0000000..213f724
--- /dev/null
@@ -0,0 +1,23 @@
+{#
+/**
+ * @file
+ * Default theme implementation for the last time update data was checked.
+ *
+ * Available variables:
+ * - last: The timestamp that the site was last checked for updates.
+ * - time: The formatted time since the site last checked for updates.
+ * - link: A link to check for updates manually.
+ *
+ * @see template_preprocess_update_last_check()
+ *
+ * @ingroup themeable
+ */
+#}
+<p>
+  {% if last %}
+    {{ 'Last checked: @time ago'|t({'@time': time}) }}
+  {% else %}
+    {{ 'Last checked: never'|t }}
+  {% endif %}
+  ({{ link }})
+</p>