{% extends 'main/layout.html' %}
{% block title %}Analytics — {{ request.user.username }}{% endblock %}
{% block content %}
<main>
<h1>Analytics</h1>
<p>
List of pages:
</p>
<ul>
<li><a href="{% url 'analytic_page_detail' 'index' %}">index</a></li>
<li><a href="{% url 'analytic_page_detail' 'rss' %}">rss</a></li>
<li><a href="{% url 'analytic_page_detail' 'atom' %}">atom</a></li>
{% for page in page_list %}
<li><a href="{% url 'analytic_page_detail' page.slug %}">{{ page.slug }}</a></li>
{% endfor %}
</ul>
{% if post_list %}
<p>
List of posts:
</p>
<ul>
{% for post in post_list %}
<li style="{% if not post.is_published %}opacity: 0.75;{% endif %}">
<a href="{% url 'analytic_post_detail' post.slug %}">
{{ post.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</main>
{% endblock content %}