File size: 1,463 Bytes
340cbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends "base.html" %}

{% block content %}
    <div class="text container centered">
        <a style="padding: 1.3em; display: block;" href="{{ url_for('following') }}" class="ui small teal statistic">
            <div class="value">
                {{ followedCount }}
            </div>
            <div class="label">
                Following
            </div>
        </a>
    </div>
    <div class="text container" id="card-container">
        {% if posts %}
            {% for post in posts %}
                    {% include '_twitter_post.html' %}
            {% endfor %}
        {% else %}
            {% include '_empty_feed.html' %}
        {% endif %}
        <div class="scroller">
            <a href="#top" class="ui button">
                <i style="margin: 0;" class="chevron up icon"></i>
            </a>
        </div>
    </div>
    <div class="text container center aligned">
        <div class="ui centered pagination menu">
            {%for page in range(init_page, pages)%}
                {% if page == actual_page%}
                    <a href="/twitter/{{page}}" class="active item">
                        {{page}}
                    </a>
                {% else %}
                    <a href="/twitter/{{page}}" class="item">
                        {{page}}
                    </a>
                {% endif %}
            {% endfor %}
        </div>
    </div>
{% endblock %}