<div class="ui centered card"><!--Start tweet-->
    <div class="content">
        <div class="extra content">
            <div class="left floated author">
                <img alt="Avatar" class="ui avatar image" src="{{ post.profilePic }}">
            </div>
            
            <a target="_blank" href="{{post.url}}"><span class="right floated star">
                <i class="share square outline icon"></i>
            </span></a>
        </div>
        <div class="header" id="author"><a href="{{url_for('u', username=post.op.replace('@',''))}}">{{ post.op }}</a></div>
        <div class="meta">
            <span class="category" id="time"><i class="clock icon"></i> {{post.date}} </span>
            {% if post.isPinned %}
                <span class="category" id="time"><i class="map pin icon"></i> Pinned </span>
            {%endif%}
            {% if post.isRT %}
                <span class="category"><i class="retweet icon"></i> {{post.username}}</span>
            {%endif%}
        </div>
        <div class="description break-word">
            <p>{{post.content}}</p>
        </div>
        <div class="extra content">
            {% if post.attachedImg %}
                <img alt="Image attachment" class="ui centered medium image" src="{{post.attachedImg}}">
            {% endif %}
            {% if post.isReply %}
                <div class="ui card">
                    <div class="content">
                        <div class="header">{{post.replyingUser}}</div>
                        <div class="meta">{{post.replyingUser}}</div>
                        <div class="description break-word">
                        {{post.replyingTweetContent}}
                        {% if post.replyAttachedImg %}
                            <img alt="Image attachment" class="ui centered medium image" src="{{post.replyAttachedImg}}">
                        {% endif %}
                        </div>
                    </div>
                </div>
            {% endif %}

            <p>
                <form class="ui form" action="{{ url_for('savePost', url=post.url.replace('/', '~')) }}" method="post">
                    <button type="submit" class="ui icon button">
                        <i class="bookmark outline icon"></i>
                        </button>
                </form>
            </p>
        </div>
    </div>
</div> <!--End tweet--> 