commit 5b543c4acb43f8a5dea0cb66fc88a7a398525625
parent 3b71a55a0f7f596823cb3556c460cc72eca4a8e3
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 6 Sep 2008 13:46:43 +1000
don't show readinglog rating in Atom feed if none is given
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/multiple_atom.xml b/templates/multiple_atom.xml
@@ -35,10 +35,10 @@ ATOM_TIME_FORMAT = str('%Y-%m-%dT%H:%M:%S+10:00')
</py:if>
<py:if test="isinstance(entry, blog.ReadingLogEntry)">
<title type="text">${entry.title} by ${entry.author}</title>
- <summary type="text">${entry.rating} stars</summary>
+ <summary py:if="entry.rating" type="text">${entry.rating} stars</summary>
<content type="xhtml"><xhtml:div>
<p><a href="${entry.url}">${entry.title}</a> by ${entry.author}</p>
- <p>${entry.rating} stars</p>
+ <p py:if="entry.rating">${entry.rating} stars</p>
</xhtml:div></content>
</py:if>
</entry>