From ece908a4c1373a10f0de9d2cf26130a928320b02 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 1 Apr 2014 23:01:28 +0200 Subject: [PATCH] Revert "Revert "don't publish news items with future @date"" This reverts commit 581f0be64f6648c450876135cec92e0071d37771. Conflicts: documentation/conventions.md --- documentation/conventions.md | 5 ++++- documentation/todo.md | 4 ---- xsl/atom.xsl | 4 ++-- xsl/portal2items.xsl | 36 ++++++++++++++++-------------------- xsl/rss.xsl | 4 ++-- xsl/xhtml5.xsl | 21 +++++++++++++++++++-- 6 files changed, 43 insertions(+), 31 deletions(-) diff --git a/documentation/conventions.md b/documentation/conventions.md index 91394b46c..43fec250d 100644 --- a/documentation/conventions.md +++ b/documentation/conventions.md @@ -10,7 +10,6 @@ XSL-Stylesheet - Begründung: Ermöglicht Transformation in verschiedene Formate durch Angabe des entsprechenden XSL-Stylesheets (z.B. item-XML-Datei in HTML oder alternativ in RSS transformieren) - # Features Podcast-Einbettung @@ -42,3 +41,7 @@ Kommentare: MUC: - Integration mit Nick input + Submit button - Vielleicht auch iframe? + +## news pre-posting + +some news shall be written right now but published later, thats why the date next to author of the news/events item etc. should be compared and if greater than the current one not considered for publication yet. diff --git a/documentation/todo.md b/documentation/todo.md index bd5de90a6..748f4b135 100644 --- a/documentation/todo.md +++ b/documentation/todo.md @@ -1,9 +1,5 @@ = was man noch machen könnte -== news pre-posting - -some news shall be written right now but published later, thats why the date next to author of the news/events item etc. should be compared and if greater than the current one not considered for publication yet. - == potal-mediagoblin eine option für das bekanntgeben eines neuen Bilcdes fehlt im Mediagobline. Derzeit werden alle Bilder von bestimmten Nutzern (john, astro, lachmoewe, bigalex) bekannt gegeben.. nuja. diff --git a/xsl/atom.xsl b/xsl/atom.xsl index 37098d652..dc06cc92a 100644 --- a/xsl/atom.xsl +++ b/xsl/atom.xsl @@ -41,8 +41,8 @@ - + starts-with(substring-after(substring-after($newsfile, '/'), '/'), $prefix) and + starts-with(date:difference(date:date-time(), document(.)/item/@date), '-')"> diff --git a/xsl/portal2items.xsl b/xsl/portal2items.xsl index c76d30564..3ec3419e1 100644 --- a/xsl/portal2items.xsl +++ b/xsl/portal2items.xsl @@ -1,6 +1,7 @@ @@ -17,10 +18,13 @@ - - - + + + + + @@ -85,23 +89,15 @@ - + - - - - -
News
-
by
- - - -
- + +
News
+
by
+ + + +
diff --git a/xsl/rss.xsl b/xsl/rss.xsl index 3806e2d50..0c2529032 100644 --- a/xsl/rss.xsl +++ b/xsl/rss.xsl @@ -39,8 +39,8 @@ - + starts-with(substring-after(substring-after($newsfile, '/'), '/'), $prefix) and + starts-with(date:difference(date:date-time(), document(.)/item/@date), '-')"> diff --git a/xsl/xhtml5.xsl b/xsl/xhtml5.xsl index a5b6970d0..623898d99 100644 --- a/xsl/xhtml5.xsl +++ b/xsl/xhtml5.xsl @@ -135,7 +135,14 @@ - + @@ -252,7 +259,17 @@ - +