Commits

Ian Lewis committed e00a023

Updated the flickr detail page template

Comments (0)

Files changed (2)

templates/lifestream/sites/basic_detail.html

 {% load utility_tags %}
 
 <div class="lifestream-item {% item_class object %}">
-<div class="lifestream-item-msg {% item_class object %}">From <a href="{% url domain_page object.feed.domain %}">{{ object.feed.domain }}</a></div>
+  <div class="lifestream-item-msg {% item_class object %}">From <a href="{% url domain_page object.feed.domain %}">{{ object.feed.domain }}</a></div>
   {% block item_inner %}
   <div class="lifestream-item-inner {% item_class object %}">
     <h2><a href="{{ object.permalink }}">{{ object.title }}</a></h2>

templates/lifestream/sites/flickr-com_detail.html

+{% load lifestream %}
+{% load utility_tags %}
+
+<div class="lifestream-item {% item_class object %}">
+  <div class="lifestream-item-msg {% item_class object %}">From <a href="{% url domain_page object.feed.domain %}">{{ object.feed.domain }}</a></div>
+  {% block item_inner %}
+  <div class="lifestream-item-inner-detail {% item_class object %}">
+    <h2><a href="{{ object.permalink }}">{{ object.title }}</a></h2>
+    <p><img src="{{ object.media_url }}"/></p>
+    <p>
+      {% if object.media_description %}
+        {{ object.media_description|striptags|safe }}
+      {% else %}
+        &nbsp;
+      {% endif %}
+    </p>
+  </div>
+  {% endblock %}
+  <div class="lifestream-item-date">{{ object.date|friendly_date }}</div>
+</div>