Add a "reply-to" link in RSS feed
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 17 Mar 2007 10:15:44 +0000 (10:15 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:34 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@224 9869982d-c50d-0410-be91-f2a2ec7c7c7b

Makefile
banana/templates/banana-feed-rss2.tpl

index 486eb35..85e8396 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,11 @@ VCS_FILTER = ! -name .svn
 
 # global targets
 
+all: build
+
+# build for development (prepare spool
+devel: spool spool/templates_c
+
 build: pkg-build
 
 dist: clean pkg-dist
@@ -24,6 +29,10 @@ clean:
        -rm $@
        sed -e 's,@VERSION@,$(VERSION) The Bearded Release,g' $< > $@
 
+spool spool/templates_c:
+       mkdir -p $@
+       chmod o+w $@
+
 # banana package targets
 
 pkg-build: banana/banana.inc.php
index b454a40..882c430 100644 (file)
       <title><![CDATA[{$message.title}]]></title>
       <guid isPermaLink="false">{$id}</guid>
       <link>{$message.link}</link>
-      <description><![CDATA[{$message.body}]]></description>
+      <description><![CDATA[{$message.body}
+        <div>
+          <a href="{$message.reply}">{img img=reply alt="RĂ©pondre"|b} {"RĂ©pondre"|b}</a>
+      </div>]]></description>
       <author>{$message.author}</author>
       <pubDate>{$message.date|rss_date}</pubDate>
     </item>