3a51bfa414da

Everything feed is once again unborked, and the templates are cleaner!
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 15 Feb 2009 00:50:20 -0500
parents c413184a564e
children 8d75ea2ae6de
branches/tags (none)
files templates/feeds/all_description.html templates/feeds/all_title.html

Changes

--- a/templates/feeds/all_description.html	Sun Feb 15 00:47:38 2009 -0500
+++ b/templates/feeds/all_description.html	Sun Feb 15 00:50:20 2009 -0500
@@ -1,26 +1,7 @@
 {% load markup %}
 
-{% ifequal obj.type 'blog' %}
-	{{ obj.item.body|markdown }}
-{% endifequal %}
-
-{% ifequal obj.type 'project' %}
-	{{ obj.item.body|markdown }}
+{% ifequal obj.type 'photoblog' %}
+    <img src="{{ obj.item.original_image.url }}" />
 {% endifequal %}
 
-{% ifequal obj.type 'thought-text' %}
-	{{ obj.item.body|markdown }}
-{% endifequal %}
-
-{% ifequal obj.type 'thought-link' %}
-	<a href="{{ obj.item.url }}">
-		{% if obj.item.name %}
-			{{ obj.item.name }}
-		{% else %}
-			{{ obj.item.url }}
-		{% endif %}
-	</a>
-	{% if obj.item.description %}
-		{{ obj.item.description|markdown }}
-	{% endif %}
-{% endifequal %}
\ No newline at end of file
+{{ obj.item.body|markdown }}
\ No newline at end of file
--- a/templates/feeds/all_title.html	Sun Feb 15 00:47:38 2009 -0500
+++ b/templates/feeds/all_title.html	Sun Feb 15 00:50:20 2009 -0500
@@ -1,23 +1,1 @@
-{% ifequal obj.type 'blog' %}
-	{{ obj.item.title }}
-{% endifequal %}
-
-{% ifequal obj.type 'project' %}
-	{{ obj.item.name }}
-{% endifequal %}
-
-{% ifequal obj.type 'thought-text' %}
-	{% if obj.item.title %}
-		{{ obj.item.title }}
-	{% else %}
-		{{ obj.item.body|truncatewords:10 }}
-	{% endif %}
-{% endifequal %}
-
-{% ifequal obj.type 'thought-link' %}
-	{% if obj.item.name %}
-		{{ obj.item.name }}
-	{% else %}
-		{{ obj.item.url }}
-	{% endif %}
-{% endifequal %}
\ No newline at end of file
+{{ obj.title }}
\ No newline at end of file