From 19692ed60a6bf8388a3e7b8350d37bd9ed240902 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 11 May 2016 15:21:36 +0200 Subject: [PATCH] Warn when viewing an outdated example, and offer a redirect to latest --- config/examples/example.html | 31 +++++++++++++++++++++++++++++++ examples/resources/layout.css | 4 ++++ 2 files changed, 35 insertions(+) diff --git a/config/examples/example.html b/config/examples/example.html index b0102bc5b7..5b9ae887c9 100644 --- a/config/examples/example.html +++ b/config/examples/example.html @@ -36,6 +36,11 @@
+ +

{{ title }}

@@ -85,4 +90,30 @@ {{{ js.tag }}} + diff --git a/examples/resources/layout.css b/examples/resources/layout.css index a049565693..c140ddc8ba 100644 --- a/examples/resources/layout.css +++ b/examples/resources/layout.css @@ -122,3 +122,7 @@ pre { #api-links ul { display: inline; } +#latest-check { + margin-top: -10px; + margin-bottom: 10px; +}