/
video.html.twig
62 lines (59 loc) · 2.76 KB
/
video.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% extends "ECENetagoraBundle::layout.html.twig" %}
{% block content %}
<div class="page_name">Videos Feeds</div>
{% if app.user.twitterID %}
<p id="refresh_timeline">
<a href="{{ path('twitter_refresh') }}">Refresh your timeline</a>
</p>
{% endif %}
{% for publication in publications %}
<div class="feeds">
<div class="one_feed">
<div class="avatar">
<img src="{{ publication.authorPicture }}" alt=""/>
</div>
<div class="content">
<div class="ids">
<div class="pseudo">
<a href="https://twitter.com/#!/{{ publication.authorScreenName }}" target="_blank">
{{ publication.author }}
</a>
</div>
<div class="{{ publication.socialNetwork }}"></div>
{% if (publication.favorite) %}
<div id="{{ publication.id }}" class="fav_publication"></div>
{% else %}
<div id="{{ publication.id }}" class="fav_icon"></div>
{% endif %}
<div class="share_feed">
<a class="t_reply" href="https://twitter.com/intent/tweet?in_reply_to={{ publication.reference }}" target="_blank"></a>
<a class="t_favorite" href="https://twitter.com/intent/favorite?tweet_id={{ publication.reference }}" target="_blank"> </a>
<a class="t_retweet" href="https://twitter.com/intent/retweet?tweet_id={{ publication.reference }}" target="_blank"> </a>
Published at: {{ publication.publishedAt|date("d/m/Y g:ia") }}
</div>
</div>
<div class="feed_content display">
<div class="text">{{ publication.content }}</div>
<br />
<div class="link_origin">
<b>Link</b>: <a href="{{ publication.linkUrl }}" target="_blank">{{ publication.KnownLink.url }}</a>
</div>
</div>
</div>
</div>
</div>
{% else %}
<center>
<p>No publications</p>
{% if app.user.twitterID %}
<p>
<a href="{{ path('twitter_refresh') }}">Refresh your timeline</a>
</p>
{% else %}
<p>
<a href="{{ path('profile') }}">Connect your Twitter account via your profile</a>
</p>
{% endif %}
</center>
{% endfor %}
{% endblock %}