{% load i18n news_tags thumbnail %}
{% get_news_of_category news_category_active as news_list %}
<ul>
{% for news in news_list %}
    <li class="newsitem2{% if forloop.first %} first {% endif %}{% if forloop.last %} last {% endif %}">
        {% if news.main_image %}
            {% thumbnail news.main_image 146x88 as thumb %}
            <div class="imageLeft" >
              <img width="146px" height="88px" src="{{ thumb }}" />
            </div>
        {% else %}
           <div class="imageLeft noImage">
            <img width="146px" height="88px" src="{{ THEME_MEDIA_URL }}img/no_image.jpg" />
            <span class="noImageText">{% trans "No Image" %}</span>
           </div>
        {% endif %}
        <h2><a href="{{ news.get_absolute_url }}" alt="{{ news.name }}" title="{{ news.name }}">{{ news.name }}</a></h2>
        <span class="date">
            {% with news.publish_date as date %}
                <a href="{% url plugins.news.views.news_by_date date.year date.month date.day%}"> {{ date|date }} </a>
            {% endwith %}
        </span>
        <p>{{ news.description|safe|truncatewords_html:20 }}</p>
        <a class="readMore" href="{{ news.get_absolute_url }}" alt="{% trans 'read more' %}" title="{% trans 'read more' %}"><img src="{{ THEME_MEDIA_URL }}img/read_more.gif" /></a>
        <div class="visualClear"></div>
    </li>
{% endfor %}
</ul>
