{#
# GNU MediaGoblin -- federated, autonomous media hosting
# Copyright (C) 2011, 2012 MediaGoblin contributors.  See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#}

{% if request.user %}
    <h1>{% trans %}Explore{% endtrans %}</h1>
  {% else %}
    <a href="http://mediagoblin.org"><img class="blogcover" src="{{ request.staticdirect('/images/mediagoblin_header.png', 'theme') }}" alt="media.jpope.org cover image"></a>
    <div class="frontpage_message">
      <h1>{% trans %}Hi there, welcome to this MediaGoblin site!{% endtrans %}</h1>
      <p>{% trans %}This site is running <a href="http://mediagoblin.org">MediaGoblin</a>, an extraordinarily great piece of media hosting software.{% endtrans %}</p>
      {% if auth %}
      <p>{% trans %}To add your own media, place comments, and more, you can log in with your MediaGoblin account.{% endtrans %}</p>
      {% if allow_registration %}
        <p>{% trans %}Don't have one yet? It's easy!{% endtrans %}</p>
        <a class="button" href=
          {% if persona_auth is defined %}
            "javascript:;" id="persona_login1"
          {% else %}
            "{{ request.urlgen('mediagoblin.auth.register') }}"
          {% endif %}
          {% trans %}
          >Create an account at this site</a>
          or
        {%- endtrans %}
      {% endif %}
      {% endif %}
        {% trans %}
          <a class="button" href="http://mediagoblin.readthedocs.org/">Set up MediaGoblin on your own server</a>
        {%- endtrans %}
    </div>
    <div class="clear"></div>
  {% endif %}

