Commit ee38eaa3 authored by Laurent Montel's avatar Laurent Montel 😁

Fix enclosure display + html layout

parent 815ea7dc
......@@ -99,19 +99,6 @@
{% if articles %}
{% for article in articles %}
<hr>
<p><div class="article">
{% if article.strippedTitle %}
<div class="headertitle" dir="{{ applicationDir }}"><a href="{{ article.articleLinkUrl }}">{{ article.strippedTitle|safe }}</a></div>
{% endif %}
{%if article.articlePubDate %}
<span class="header" dir="{{ applicationDir }}">{{ dateI18n }}:</span><span class="headertext">{{ article.articlePubDate }}</span>
{% endif %}
{% if article.author %}
<br/><span class="header" dir="{{ applicationDir }}">{{ authorI18n }}:</span><span class="headertext">{{ article.author|safe }}</span>
{% endif %}
<div class="actiontable">
<div class="actionrowtable">
{% with article.articleStatus as result %}
......@@ -130,6 +117,22 @@
<div class="theactioncell theactionbigcell">{{ article.deleteAction|safe }}</div>
<div>
</div>
</div>
<div class="article">
{% if article.strippedTitle %}
<div class="headertitle" dir="{{ applicationDir }}"><a href="{{ article.articleLinkUrl }}">{{ article.strippedTitle|safe }}</a></div>
{% endif %}
{%if article.articlePubDate %}
<span class="header" dir="{{ applicationDir }}">{{ dateI18n }}:</span><span class="headertext">{{ article.articlePubDate }}</span>
{% endif %}
{% if article.author %}
<br/><span class="header" dir="{{ applicationDir }}">{{ authorI18n }}:</span><span class="headertext">{{ article.author|safe }}</span>
{% endif %}
{% if article.enclosure %}
<br/><span class="header" dir="{{ applicationDir }}">{{ enclosureI18n }}:</span><span class="headertext">{{ article.enclosure|safe }}</span>
......@@ -139,6 +142,8 @@
{% if article.imageFeed %}
{{ article.imageFeed }}
{% endif %}
<hr>
{% if article.content %}
......@@ -149,10 +154,6 @@
<div class="body"><a class="contentlink" href="{{ article.commentLink }}">{{ commentI18n }} ({{ article.commentNumber }})</a>
{% endif %}
{% if article.enclosure %}
<p><em>{{ enclosureI18n }}</em> {{ article.enclosure }}</p>
{% endif %}
{% if article.articleCompleteStoryLink %}
<p><a class="contentlink" href="{{ article.articleCompleteStoryLink }}">{{ completeStoryI18n }}</a></p>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment