view templates/sat_website/finance.html @ 125:699b9b130368

fixes i18n of the campaign's links
author souliane <souliane@mailoo.org>
date Mon, 23 Nov 2015 15:18:35 +0100
parents a14845624e01
children
line wrap: on
line source

{% comment %}
SàT website: Salut à Toi's presentation website
Copyright (C) 2012  Jérôme Poisson (goffi@goffi.org)

This file is part of SàT website.

SàT website 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.

Foobar 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 Foobar.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% load i18n %}

{% if obj == "members" %}

<div class="progress">
    <div class="progress-bar progress-bar-info progress-bar-striped" style="width: {{ asso_members_perc }}%">
        {% blocktrans with actual=asso_members_actual %}{{ actual }} members{% endblocktrans %}
    </div>
    <div class="progress-bar progress-bar-left progress-bar-striped active" style="width: {{ asso_members_perc_left }}%">
        {% blocktrans with left=asso_members_left %}{{ left }} members left{% endblocktrans %}
    </div>
</div>

{% else %}

<div class="progress">
    <div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{ asso_finance_perc }}%">
        {% blocktrans with actual=asso_finance_actual %}{{ actual }}{% endblocktrans %}
    </div>
    <div class="progress-bar progress-bar-left progress-bar-striped active" style="width: {{ asso_finance_perc_left }}%">
        {% blocktrans with left=asso_finance_left %}{{ left }} € left{% endblocktrans %}
    </div>
</div>

{% endif %}