
{% extends "base_2col.html" %}

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

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

{% block left_col %}
<div class="row">
	{% for insight in insights %}
	<div class="col-3">
		<div class="insightCard">
			<span class="insightVal">{{ insight.value }}</span>
			<span class="insightLabel">{{ insight.name }}</span>
		</div>
	</div>
	{% endfor %}
</div>
{% endblock %}

{% block right_col %}
<div class="row justify-content-center">
	<h3>Your contributions</h3>
</div>
{% if request.user.is_authenticated %}
{% for insight in personal_insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.probability }}</span>
	<span class="insightLabel">{{ insight.tone }}</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 %}
</div>
{% endblock %}



{% extends "base_2col.html" %}

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

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

{% block left_col %}
<div class="row">
	{% for insight in insights %}
	<div class="col-3">
		<div class="insightCard">
			<span class="insightVal">{{ insight.value }}</span>
			<span class="insightLabel">{{ insight.name }}</span>
		</div>
	</div>
	{% endfor %}
</div>
{% endblock %}

{% block right_col %}
<div class="row justify-content-center">
	<h3>Your contributions</h3>
</div>
{% if request.user.is_authenticated %}
{% for insight in personal_insights %}
<div class="insightCard">
	<span class="insightVal">{{ insight.probability }}</span>
	<span class="insightLabel">{{ insight.tone }}</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><a href="{% url 'login' %}" class="log">Log in</a> to see your contributions</span>
</div>
{% endif %}
</div>
{% endblock %}


Add functional login link to general insights login suggestion
Add functional login link to general insights login suggestion
