{#
# This file is part of Invenio.
# Copyright (C) 2012, 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}

{#
# This file contains footer part of main page template.
#
# Usage:
# {% include 'footer.html' %}
#}

{%- block footer -%}
<div class="container">
  <hr/>
  <div class="row">
    <div class="col-md-6">
      <p>
{%- block footer_credits %}
        {{ config["CFG_SITE_NAME_INTL"][g.ln] }}<br/>
        {{ _("Powered by") }} <a class="footer" href="http://invenio-software.org/">Invenio</a>
        v{{ config.CFG_VERSION }}<br />
        {{ _("Maintained by") }} <a class="footer" href="mailto:{{ config.CFG_SITE_SUPPORT_EMAIL }}">
          {{- config.CFG_SITE_SUPPORT_EMAIL -}}
        </a><br/>
  {%- if lastupdated -%}
      {{ _("Last updated") }}: {{ lastupdated|invenio_format_date }}
  {%- endif -%}
{%- endblock footer_credits %}
      </p>
    </div>
    <div class="col-md-6">
{%- block footer_languages %}
  {%- if config.CFG_LANGUAGE_LIST_LONG -%}
      {{ _("This site is also available in the following languages:") }}
      <ul class="langs list-inline">
    {%- for (lang, lang_namelong) in config.CFG_LANGUAGE_LIST_LONG %}

      <li><a href="?ln={{ lang }}" class="langinfo{% if lang == g.ln %} langinfo-active{% endif %}" hreflang="{{ lang }}">{{ lang_namelong }}</a></li>
    {%- endfor %}
  {%- endif -%}
      </ul>
{%- endblock footer_languages %}
    </div>
  </div>
</div>
{%- endblock footer -%}
