{% extends "base_2col.html" %}

{% block title %}<title>Textifai - Global Insights</title>{% endblock %}

{% block page_head %}
<h1>Global Insights</h1>
{% endblock %}

{% block left_col %}
{% for insight in insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.tone }}</span>
	<span class="insightLabel">{{ insight.probability }}</span>
</div>
{% endfor %}
{% endblock %}

{% block right_col %}
<div class="row justify-content-center">
	<h3>Your contributions</h3>
</div>
{% if username %}
{% for insight in personal_insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.tone }}</span>
	<span class="insightLabel">{{ insight.probability }}</span>
</div>
{% empty %}
<div class="row justify-content-center">
	<span><a href={% url 'textinput' %}>Add something</a> to contribute!</span>
</div>
{% endfor %}
{% else %}
<div class="row justify-content-center">
	<span>Log in to see your contributions</span>
</div>
{% endif %}
{% endblock %}


{% extends "base_2col.html" %}

{% block title %}<title>Textifai - Global Insights</title>{% endblock %}

{% block page_head %}
<h1>Global Insights</h1>
{% endblock %}

{% block left_col %}
{% for insight in insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.probability }}</span>
	<span class="insightLabel">{{ insight.tone }}</span>
</div>
{% endfor %}
{% endblock %}

{% block right_col %}
<div class="row justify-content-center">
	<h3>Your contributions</h3>
</div>
{% if username %}
{% for insight in personal_insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.tone }}</span>
	<span class="insightLabel">{{ insight.probability }}</span>
</div>
{% empty %}
<div class="row justify-content-center">
	<span><a href={% url 'textinput' %}>Add something</a> to contribute!</span>
</div>
{% endfor %}
{% else %}
<div class="row justify-content-center">
	<span>Log in to see your contributions</span>
</div>
{% endif %}
{% endblock %}


Fix reversed display of insight values and names
Fix reversed display of insight values and names
