{% extends "base.html" %}

{% block head %}
<title>Mozilla Moderator - Events</title>
{% endblock %}

{% block content %}

{% if user.is_authenticated() %}
  <hgroup id="main-feature" class="center">
    <h2>Select event to view and ask questions.</h2>
  </hgroup>
  {% for event in events %}
    <a href="{{ url('event', e_slug=event.slug) }}">
      <div class="billboard event_listing">
        <h1>{{ event.name }}</h1>
        <span class="questions_counter"> {{ event.questions.count() }} questions asked</span>
      </div>
    </a>
  {% endfor %}
{% else %}
  <hgroup id="main-feature" class="center">
    <h2>Let your voice be heard.</h2>
    <p>Mozilla Moderator is a panel moderation system for submitting and voting on questions.</p>
    <p>Please log in using your vouched mozillians.org account.</p>
  </hgroup>
{% endif %}

{% endblock %}

{% extends "base.html" %}

{% block head %}
<title>Mozilla Moderator - Events</title>
{% endblock %}

{% block content %}

{% if user.is_authenticated() %}
  <hgroup id="main-feature" class="center">
    <h2>Select event to view and ask questions.</h2>
  </hgroup>
  {% for event in events.order_by('-created_at') %}
    <a href="{{ url('event', e_slug=event.slug) }}">
      <div class="billboard event_listing">
        <h1>{{ event.name }}</h1>
        <span class="questions_counter"> {{ event.questions.count() }} questions asked</span>
      </div>
    </a>
  {% endfor %}
{% else %}
  <hgroup id="main-feature" class="center">
    <h2>Let your voice be heard.</h2>
    <p>Mozilla Moderator is a panel moderation system for submitting and voting on questions.</p>
    <p>Please log in using your vouched mozillians.org account.</p>
  </hgroup>
{% endif %}

{% endblock %}

Order events in main page by descending creation date.
Order events in main page by descending creation date.
