documentation/extensions/odoo_theme/layout_templates/legal.html
Olivier Dony 9c16edbf7b [IMP] conf: special case alt lang links for legal terms
Legal terms live under specific URL as their translations are not
managed in the same manner.

Layout is like this:
  /terms/enterprise.html (EN)
  /terms/i18n/enterprise_fr.html (FR)

This commit adapts the generation of alternative languages links for each
"legal terms page", so that it targets the correct i18n link, or goes
back to the canonical EN one, depending on the target language.

closes odoo/documentation#7382

closes odoo/documentation#7384

closes odoo/documentation#7387

Signed-off-by: Olivier Dony (odo) <odo@odoo.com>
2024-01-15 18:16:01 +00:00

140 lines
6.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article id="o_content" class="doc-body o_legal">
<section id="legal">
<h1>
{{ _("Legal") }}
<a class="headerlink" href="#legal" title="Permalink to this headline"></a>
</h1>
</section>
<section id="licenses">
<h2>
{{ _("Licenses") }}
<a class="headerlink" href="#licenses" title="Permalink to this headline"></a>
</h2>
<ul class="simple">
<li>
<p>
<a class="reference internal" href="legal/licenses.html#licenses">
<span class="std std-ref">{{ _("Licenses") }}</span>
</a>
</p>
</li>
</ul>
</section>
<section id="terms-and-conditions">
<h2>
{{ _("Terms and Conditions") }}
<a class="headerlink" href="#terms-and-conditions" title="Permalink to this headline"></a>
</h2>
<div class="row flex-wrap g-3 mb-3">
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body d-flex flex-column justify-content-between">
<div class="d-flex align-items-center mb-2">
<i class="i-article"></i>
<h5 class="card-title mb-0 d-flex flex-wrap gap-2">{{ _("Odoo Enterprise Agreement") }}</h5>
</div>
<p>{{ _("Applies to self-hosting, Odoo.SH and Odoo Cloud.") }}</p>
<div>
{%- set enterprise_agreement_path_en = 'legal/terms/enterprise.html' %}
{%- if language_code not in legal_translations %}
<a class="btn btn-primary" href="{{ enterprise_agreement_path_en }}" role="button">{{ _("Read") }}</a>
{%- else %}
<a class="btn btn-primary" href="{{ 'legal/terms/i18n/enterprise_%s.html' % language_code }}" role="button">{{ _("Read") }}</a>
<a class="btn btn-light text-primary" href="../{{ enterprise_agreement_path_en }}">{{ _("English") }}</a>
{%- endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body d-flex flex-column justify-content-between">
<div class="d-flex align-items-center mb-3">
<i class="i-article"></i>
<h5 class="card-title mb-0">{{ _("Odoo Partnership Agreement") }}</h5>
</div>
<div>
{%- set partnership_agreement_path_en = 'legal/terms/partnership.html' %}
{%- if language_code not in legal_translations %}
<a class="btn btn-primary" href="{{ partnership_agreement_path_en }}" role="button">{{ _("Read") }}</a>
{%- else %}
<a class="btn btn-primary" href="{{ 'legal/terms/i18n/partnership_%s.html' % language_code }}" role="button">{{ _("Read") }}</a>
<a class="btn btn-light text-primary" href="{{ partnership_agreement_path_en }}">{{ _("English") }}</a>
{%- endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card h-100">
<div class="card-body d-flex flex-column justify-content-between">
<div class="d-flex align-items-center mb-3">
<i class="i-article"></i>
<h5 class="card-title mb-0">{{ _("Terms Of Sale") }}</h5>
</div>
<div>
{%- set terms_of_sale_agreement_path_en = 'legal/terms/terms_of_sale.html' %}
{%- if language_code not in legal_translations %}
<a class="btn btn-primary" href="{{ terms_of_sale_agreement_path_en }}" role="button">{{ _("Read") }}</a>
{%- else %}
<a class="btn btn-primary" href="{{ 'legal/terms/i18n/terms_of_sale_%s.html' % language_code }}" role="button">{{ _("Read") }}</a>
<a class="btn btn-light text-primary" href="{{ terms_of_sale_agreement_path_en }}">{{ _("English") }}</a>
{%- endif %}
</div>
</div>
</div>
</div>
</div>
<div class="alert alert-go_to">
<p class="alert-title">
{{ _("See also") }}
</p>
<p>
<a class="reference external" href="https://drive.google.com/open?id=1skSTsdAPOBlaIWi_hUkL3tfaoi8Qdspu" target="_blank">{{ _("Archive of older agreements") }}</a>
</p>
</div>
</section>
<section id="other-legal-references">
<h2>
{{ _("Other legal references") }}
<a class="headerlink" href="#other-legal-references" title="Permalink to this headline"></a>
</h2>
<ul class="simple">
<li>
<p>
<a class="reference external" href="https://www.odoo.com/cloud-sla" target="_blank">{{ _("Odoo Cloud Service Level Agreement (SLA)") }}</a>
</p>
</li>
<li>
<p>
<a class="reference external" href="https://www.odoo.com/acceptable-use" target="_blank">{{ _("Odoo Cloud Acceptable Use Policy") }}</a>
</p>
</li>
<li>
<p>
<a class="reference external" href="https://www.odoo.com/privacy" target="_blank">{{ _("Odoo SAs Privacy Policy") }}</a>
</p>
</li>
<li>
<p>
<a class="reference external" href="https://www.odoo.com/gdpr" target="_blank">{{ _("Odoo SAs GDPR Compliance Guide") }}</a>
</p>
</li>
<li>
<p>
<a class="reference internal" href="legal/cla.html#cla">
<span class="std std-ref">{{ _("Contributor License Agreement") }}</span>
</a>
</p>
</li>
<li>
<p>
<a class="reference internal" href="applications/finance/accounting/fiscal_localizations/localizations/germany.html#germany-gobd">
<span class="std std-ref">{{ _("German Tax Accounting Standards: Odoos guide to GoBD Compliance") }}</span>
</a>
</p>
</li>
</ul>
</section>
</article>