From ac0cd67a0d37b50effcd0eeddbff1e0817270afd Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 15 Sep 2010 10:10:15 +0000 Subject: [PATCH] 'AllPosts' page implemented in RSS design --- Common/UserContext.cs | 3 ++- templates/Rss/AllPosts.xslt | 12 +++++++++ templates/Rss/elems/Main.xslt | 44 +++++++++++++++++++++++++++++++ templates/Rss/elems/PostInfo.xslt | 30 +++++++++++++++++++++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 templates/Rss/AllPosts.xslt create mode 100644 templates/Rss/elems/Main.xslt create mode 100644 templates/Rss/elems/PostInfo.xslt diff --git a/Common/UserContext.cs b/Common/UserContext.cs index 680e663..d12c4af 100644 --- a/Common/UserContext.cs +++ b/Common/UserContext.cs @@ -46,7 +46,8 @@ namespace FLocal.Common { new XElement("hour", dateTime.Hour), new XElement("minute", dateTime.Minute), new XElement("second", dateTime.Second), - new XElement("ticks", dateTime.Ticks) + new XElement("ticks", dateTime.Ticks), + new XElement("rss", dateTime.ToString("o")) ); } diff --git a/templates/Rss/AllPosts.xslt b/templates/Rss/AllPosts.xslt new file mode 100644 index 0000000..5de5503 --- /dev/null +++ b/templates/Rss/AllPosts.xslt @@ -0,0 +1,12 @@ + + + + + + Все сообщения + + + + + + \ No newline at end of file diff --git a/templates/Rss/elems/Main.xslt b/templates/Rss/elems/Main.xslt new file mode 100644 index 0000000..1854207 --- /dev/null +++ b/templates/Rss/elems/Main.xslt @@ -0,0 +1,44 @@ + + + + + + https:// + + : + + + + 443 + + + + + + RSS Title + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/Rss/elems/PostInfo.xslt b/templates/Rss/elems/PostInfo.xslt new file mode 100644 index 0000000..27b66ed --- /dev/null +++ b/templates/Rss/elems/PostInfo.xslt @@ -0,0 +1,30 @@ + + + + + + + <xsl:value-of select="title"/> + <xsl:text> от </xsl:text> + <xsl:value-of select="poster/user/name"/> + + + + + + + /Post/ + + / + + + post- + + + + + + + + + \ No newline at end of file