{% extends "base.html" %}
{% load i18n %}
{% load url from future %}

{% block breadcrumbs %}
<li><a href="{% url 'about' %}">{% trans "About" %}</a></li>
{% endblock %}

{% block content %}

<div class="row">
<div class="col-lg-{% if offer_hosting %}6{% else %}12{% endif %}">
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "About Weblate" %}</h4></div>
<div class="panel-body">

<p>{% blocktrans %}Weblate is a web based translation tool with tight Git integration. It features simple and clean user interface, propagation of translations across components, quality checks and automatic linking to source files.{% endblocktrans %}</p>

<p>{% blocktrans %}If you are looking for support for Weblate or want to file bug reports check its website at <a href="{{ weblate_url }}">weblate.org</a>.{% endblocktrans %}</p>

<p>{% blocktrans %}Weblate is free software created by volunteers, but you can still support them financially.{% endblocktrans %}</p>

</div>
<div class="panel-footer">
<a class="btn btn-default" href="https://flattr.com/thing/571085/Weblate">{% trans "Flattr Weblate!" %}</a>
<a class="btn btn-default" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AXN88S8GX5MQ4">{% trans "Donate to Weblate!" %}</a>
</div>
</div>
</div>


{% if offer_hosting %}
<div class="col-lg-6">
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Hosting translations" %}</h4></div>
<div class="panel-body">
<p>
{% trans "This Weblate instance hosts translations for various free software projects." %}
{% blocktrans %}We can host your project as well, if you are interested, please contact us.{% endblocktrans %}
</p>
  <p>
    {% trans "Commercial hosting is possible as well, our price starts at 19 EUR per project and month, please get in touch with us for more details." %}
  </p>
</div>
  <div class="panel-footer">
  <a class="btn btn-default" href="{% url 'hosting' %}">{% trans "Ask for project hosting" %}</a>
  <a class="btn btn-default" href="{% url 'contact' %}?subject=Commercial hosting">{% trans "Contact us for commercial hosting" %}</a>
  </div>
</div>
</div>
{% endif %}

</div>

<div class="row">
<div class="col-lg-6">
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Versions" %}</h4></div>
<div class="panel-body">

<p>{% trans "This site is built using following projects:" %}</p>

<table class="table table-condensed table-striped">
<tr>
<th><a href="{{ weblate_url }}">Weblate</a></th>
<td>{{ version }}</td>
</tr>
{% for ver in versions %}
<th><a href="{{ ver.1 }}">{{ ver.0 }}</a></th>
<td>{{ ver.2 }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>

<div class="col-lg-6">
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Statistics" %}</h4></div>
<div class="panel-body">

<table class="table table-condensed table-striped">
<tr>
<th>{% trans "Strings to translate" %}</th>
<td>{{ total_strings }}</td>
</tr>
<tr>
<th>{% trans "Words to translate" %}</th>
<td>{{ total_words }}</td>
</tr>
<tr>
<th>{% trans "Used languages" %}</th>
<td>{{ total_languages }}</td>
</tr>
<tr>
<th>{% trans "Registered users" %}</th>
<td>{{ total_users }}</td>
</tr>
<tr>
<th>{% trans "Suggestions made" %}</th>
<td>{{ total_suggestions }}</td>
</tr>
<tr>
<th>{% trans "Translations made" %}</th>
<td>{{ total_translations }}</td>
</tr>
<tr>
<th>{% trans "Failing checks found" %}</th>
<td>{{ total_checks }}</td>
</tr>
<tr>
<th>{% trans "Ignored checks" %}</th>
<td>{{ ignored_checks }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>

{% endblock %}

