2020-10-23 22:54:30 +00:00
|
|
|
==
|
2020-10-31 23:35:56 +00:00
|
|
|
{% if feeditemclass is empty %}
|
2020-11-01 01:13:53 +00:00
|
|
|
{% set feeditemclass = 'feeditem masonry-item' %}
|
2020-10-31 23:35:56 +00:00
|
|
|
{% else %}
|
2020-11-01 01:13:53 +00:00
|
|
|
{% set feeditemclass = 'feeditem masonry-item ' ~ feeditemclass %}
|
2020-10-31 23:35:56 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if posts is empty %}
|
|
|
|
<p>No feed items have been found.</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for post in posts %}
|
2020-11-01 01:13:53 +00:00
|
|
|
<div class="{{ feeditemclass }}" data-timestamp="{{ post.timestamp }}">
|
2020-10-31 23:35:56 +00:00
|
|
|
<div class="card">
|
|
|
|
{% if post.extra.img %}
|
|
|
|
<img class="card-img-top" src="{{ post.extra.img }}">
|
|
|
|
{% elseif post.extra.lat %}
|
|
|
|
<img class="card-img-top" src="https://api.mapbox.com/styles/v1/jason32dev/ckgehopjc2o1y19o09aqs4x11/static/pin-l+B05C71({{ post.extra.lng }},{{ post.extra.lat }})/{{ post.extra.lng }},{{ post.extra.lat }},14,0/545x300@2x?access_token=pk.eyJ1IjoiamFzb24zMmRldiIsImEiOiJjazFsNHd5djcwMXptM2htbW8zM3MyZGxuIn0.-TtNNGFysQPQRfGR1P8DUA">
|
|
|
|
{% endif %}
|
|
|
|
<div class="card-body">
|
|
|
|
{% if post.channel.slug == 'twitter' or post.channel.slug == 'instagram' %}
|
|
|
|
{% if post.title | striptags | length < 100 %}
|
|
|
|
<p class="card-text giant">{{ post.title | raw | nl2br }}</h2>
|
|
|
|
{% elseif post.title | striptags | length < 150 %}
|
|
|
|
<p class="card-text main">{{ post.title | raw | nl2br }}</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="card-text">{{ post.title | raw | nl2br }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% elseif post.channel.slug == 'foursquare' %}
|
|
|
|
{% if post.body %}<p class="card-text main">{{ post.body | raw | nl2br }}</p>{% endif %}
|
|
|
|
<h2 class="card-title mb-1">{{ post.title }}</h2>
|
|
|
|
<p class="card-text">{{ post.extra.address }}</p>
|
|
|
|
{% endif %}
|
|
|
|
<div class="feedcard-footer">
|
2020-11-01 01:13:53 +00:00
|
|
|
<p class="float-right feedcard-itemtype"><span class="friendlytime">{{ post.friendlytime }}</span> <i class="{{ post.channel.icon }}" style="color: {{ post.channel.colour }};"></i></p>
|
2020-10-31 23:35:56 +00:00
|
|
|
{% if post.channel.slug == 'twitter' and post.extra.opuser %}
|
|
|
|
<p class="float-left feedcard-attribution"><i class="fas fa-retweet"></i> <a href="https://twitter.com/{{ post.extra.opuser }}">{{ post.extra.opname }}</a> <img src="{{ post.extra.opimg }}"></p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-23 22:54:30 +00:00
|
|
|
{% endfor %}
|