Changeset 624:55af673a3940


Ignore:
Timestamp:
20/06/12 00:16:20 (11 months ago)
Author:
Santiago Piccinini (SAn) <spiccinini@…>
Branch:
default
Message:

Fixed a bug on newsleters when article.pretitle is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/apps/newsletter/templates/newsletter/content_teasers.html

    r493 r624  
    1515      <div class="show-ToC"><a href="#ToC">{% trans "Return to Table of Contents" %}</a></div> 
    1616      {% endif %} 
    17       
     17 
    1818      {% if article.pictures %} 
    1919      <a href="{% url article-detail article.slug %}"> 
     
    2121      </a> 
    2222      {% endif %} 
    23        
    24        <span class="pretitle"><a name="editorial">{% trans article.pretitle %}</a></span> 
     23      {% if article.pretitle %} <span class="pretitle"><a name="editorial">{% trans article.pretitle %}</a></span>{% endif %} 
    2524      <a name="article__{{ article.slug }}" href="{% url article-detail article.slug %}"> 
    2625        <h2 class="title">{% trans article.name  %}</h2> 
    2726      </a> 
    2827 
    29       
    3028 
    3129      <a href="{% url article-detail article.slug %}"> 
Note: See TracChangeset for help on using the changeset viewer.