From 08051e1ccf5825c3e3616064c96c85fa73c05139 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 22 Feb 2013 17:06:58 +0000 Subject: [PATCH] Show layer notes records as alerts on layer detail These can be used to show important notes (e.g. "This layer is deprecated, use layer xyz instead.") as eye-catching alerts at the top of the detail page. Signed-off-by: Paul Eggleton --- TODO | 1 - layerindex/detail.html | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 7718cba..b0b5678 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,6 @@ TODO: * Recipe info page * Captcha for layer submission interface? * Touch up publishing interface -* Show layer notes records Later: * Show count of layers to be reviewed next to review button diff --git a/layerindex/detail.html b/layerindex/detail.html index c4718c7..f6efd13 100644 --- a/layerindex/detail.html +++ b/layerindex/detail.html @@ -35,6 +35,14 @@
+
+ {% for note in layeritem.layernote_set.all %} +
+ {{ note.text }} +
+ {% endfor %} +
+