Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (52 sloc) 2.49 KB
<div class="twitter">
{% if language %}
{% if 'en' in language %}<h2>Recent tweets</h2>{% endif %}
{% if 'de' in language %}<h2>Aktuelle Tweets</h2>{% endif %}
{% endif %}
{% set twitter = tweets | tweetExcludeAnswers %}
{%- for item in twitter.slice(0, 5) -%}
<div class="tweet row">
{% if item.is_quote_status %}
<div class="col-1-3">
<a class="tweet-date" href="{{ metadata.social.twitter.url }}/status/{{ item.id_str }}" title="{% if 'de' in language %}Tweet ansehen{% else %}Show tweet{% endif %}" target="_blank" rel="noopener">
<time datetime="{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "YYYY-MM-DDTHH:mm:ssZZ") }}">
{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "Do MMMM YYYY", language) }}
</time>
</a>
</div>
<div class="col-2-3">
<div class="tweet-status row">{{ item.text | tweetRemoveLink }}</div>
<div class="row tweet-src">
<div class="tweet-src-name">{{ item.quoted_status.user.screen_name | safe }}</div>
<div class="tweet-src-text">{{ item.quoted_status.text | tweetRemoveLink }}</div>
</div>
</div>
{% endif %}
{% if item.retweeted %}
<div class="col-1-3">
<a class="tweet-date" href="{{ metadata.social.twitter.url }}/status/{{ item.id_str }}" title="{% if 'de' in language %}Tweet ansehen{% else %}Show tweet{% endif %}" target="_blank" rel="noopener">
<time datetime="{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "YYYY-MM-DDTHH:mm:ssZZ") }}">
{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "Do MMMM YYYY", language) }}
</time>
</a>
</div>
<div class="col-2-3 tweet-src">
<div class="row">
<div class="tweet-src-name">{{ item.retweeted_status.user.screen_name | safe }}</div>
<div class="tweet-src-text">{{ item.retweeted_status.text | tweetRemoveLink }}</div>
</div>
</div>
{% endif %}
{% if not item.is_quote_status and not item.retweeted %}
<div class="col-1-3">
<a class="tweet-date" href="{{ metadata.social.twitter.url }}/status/{{ item.id_str }}" title="{% if 'de' in language %}Tweet ansehen{% else %}Show tweet{% endif %}" target="_blank" rel="noopener">
<time datetime="{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "YYYY-MM-DDTHH:mm:ssZZ") }}">
{{ item.created_at | date("ddd MMM D HH:mm:ss ZZ YYYY", "Do MMMM YYYY", language) }}
</time>
</a>
</div>
<div class="tweet-status col-2-3">{{ item.text | tweetRemoveLink }}</div>
{% endif %}
</div>
{%- endfor -%}
</div>
You can’t perform that action at this time.