<commit_before>{% extends 'base.html' %}
{% load markdown_deux_tags %}

{% block content %}

<div class="row profile-header">
	<img class="profile-photo-icon img-circle img-responsive img-center pull-left create-post" src="http://placehold.it/175x175">
    <div class="media-body" style="padding-left: 3em;">
    	<!-- Do some logic here : follow, unfollow, accept etc -->
 		<button class="btn btn-success pull-right" style="position: relative; top: 1.5em; right: 1.5em;">Follow</button>

    	<h1> {{ user_account.username }} </h1>
    	<p style="color: grey;"> {{ user_account.email }} </p>
    </div>
</div>

<!-- If this is the logged in user's profile page, show a create post component -->
{% if user_account == user %}
{% include "post/createPost.html" with icon=False %}
{% endif %}

{% for post in posts %}
<div class="row post">
	<img class="profile-photo-icon img-circle img-responsive img-center pull-left" src="http://placehold.it/50x50" data-popover="true" data-html=true data-toggle="popover" title="{{ post.author }}" data-content="<button class='btn btn-default btn-sm'>Follow Me</button><p> </p><button class='btn btn-default btn-sm'>Friend Me</button>"/>

    <div class="panel panel-primary media-body">
    	<div class='panel-heading'> <a class='title' href='{% url "post_detail" post.id %}'> {{ post.title }} </a> <span class='date'> {{ post.published }} </span> </div>
        <div class='panel-body'> 
            {% if post.contentType == "text/x-markdown" %}
                {{ post.content|markdown|urlize }} 
            {% else %}
                {{ post.content|urlize }}
            {% endif %}
        </div>
    	<hr class='post-hr'>
    	<div class='panel-body'>
    		<a href='{% url "post_detail" post.id %}#comments' class='comments'> {{ post.comments.count }} Comments </a>
			<a href='{% url "post_detail" post.id %}' class='pull-right'><i class="fa fa-plus"></i></a>
    	</div>
    </div>

    {% if post.author == user %}
	<div class="media-body post-action-icons">
		<button class="btn btn-default action-icon"><i class="fa fa-pencil-square-o"></i></button>
		<button class="btn btn-default action-icon delete-post" id='delete-post-{{ post.id }}'><i class="fa fa-trash-o"></i></button>
	</div>
	{% else %}
	<div class="media-body post-action-icons placeholder">
	</div>
	{% endif %}
</div>
{% endfor %}
{% endblock %}<commit_msg>imgs are displayed in posts on user profile page now<commit_after>{% extends 'base.html' %}
{% load markdown_deux_tags %}

{% block content %}

<div class="row profile-header">
	<img class="profile-photo-icon img-circle img-responsive img-center pull-left create-post" src="http://placehold.it/175x175">
    <div class="media-body" style="padding-left: 3em;">
    	<!-- Do some logic here : follow, unfollow, accept etc -->
 		<button class="btn btn-success pull-right" style="position: relative; top: 1.5em; right: 1.5em;">Follow</button>

    	<h1> {{ user_account.username }} </h1>
    	<p style="color: grey;"> {{ user_account.email }} </p>
    </div>
</div>

<!-- If this is the logged in user's profile page, show a create post component -->
{% if user_account == user %}
{% include "post/createPost.html" with icon=False %}
{% endif %}

{% for post in posts %}
<div class="row post">
	<img class="profile-photo-icon img-circle img-responsive img-center pull-left" src="http://placehold.it/50x50" data-popover="true" data-html=true data-toggle="popover" title="{{ post.author }}" data-content="<button class='btn btn-default btn-sm'>Follow Me</button><p> </p><button class='btn btn-default btn-sm'>Friend Me</button>"/>

    <div class="panel panel-primary media-body">
    	<div class='panel-heading'> <a class='title' href='{% url "post_detail" post.id %}'> {{ post.title }} </a> <span class='date'> {{ post.published }} </span> </div>
        <div class='panel-body'> 
            {% if post.contentType == "text/x-markdown" %}
                {{ post.content|markdown|urlize }} 
            {% else %}
                {{ post.content|urlize }}
            {% endif %}
            
            {% if post.image_url %}
                <img src="{{ post.image_url }}" />
            {% endif %}
        </div>
    	<hr class='post-hr'>
    	<div class='panel-body'>
    		<a href='{% url "post_detail" post.id %}#comments' class='comments'> {{ post.comments.count }} Comments </a>
			<a href='{% url "post_detail" post.id %}' class='pull-right'><i class="fa fa-plus"></i></a>
    	</div>
    </div>

    {% if post.author == user %}
	<div class="media-body post-action-icons">
        <a href="{% url 'post_edit' post.id %}"><button class="btn btn-default action-icon edit-post"><i class="fa fa-pencil-square-o"></i></button></a>
        <button class="btn btn-default action-icon"><i class="fa fa-trash-o"></i></button>
	</div>
	{% else %}
	<div class="media-body post-action-icons placeholder">
	</div>
	{% endif %}
</div>
{% endfor %}
{% endblock %}
{'fraction_non_alphanumeric': 0.2021492295214923, 'fraction_numerical': 0.006893755068937551, 'mean_word_length': 3.308296943231441, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 112, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '746667', 'n_tokens_mistral': 1724, 'n_tokens_neox': 1587, 'n_words': 391}