aboutsummaryrefslogtreecommitdiff
{#
SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0

Website main page.

This file is part of Hydrilla&Haketilo website.

Copyright (C) 2022 Wojtek Kosior

Dual licensed under
* GNU General Public License v3.0 or later and
* Creative Commons Attribution Share Alike 4.0 International.

You can choose to use either of these licenses or both.


I, Wojtek Kosior, thereby promise not to sue for violation of this
file's licenses. Although I request that you do not make use of this
code in a proprietary work, I am not going to enforce this in court.
#}
{% extends "website_base.html.jinja" %}

{% block title %} {{ _('index.title') }} {% endblock %}

{% block style %}
  {{ super() }}

  img#haketilo-web {
      display: block;
      margin: 20px;
      max-height: 300px;
      max-width: 100%;
      margin: auto;
  }

  .
{% endblock %}

{% set here_url = url_for('main') %}
{% set site_git_url = 'https://git.koszko.org/hydrilla-website/' %}

{%
  set nav_links_data = [
      ('',             here_url ~ '#',
       _('index.nav.home')),
      ('about',        here_url ~ '#about',
       _('index.nav.about')),
      ('manual',       here_url ~ '#manual',
       _('index.nav.manual')),
      (none,           url_for('downloads') ~ '#',
       _('index.nav.downloads')),
      ('get-involved', here_url ~ '#get-involved',
       _('index.nav.get_involved')),
      ('langs',        here_url ~ '#langs',
       _('index.nav.languages')),
      (none,           site_git_url,
       _('index.nav.site_sources'))
  ]
%}

{% block body %}
  {% call subpage('') %}
    <img id="haketilo-web" alt="Haketilo hatchet stabbed into the Web"
         src="/static/haketilo-web.svg" draggable="false">
    <h3>
      {{ _('index.h_big.taking_back_the_web') }}
    </h3>
  {% endcall %}

  {% call subpage('about') %}
    <h3>
      {{ _('index.h_big.about') }}
    </h3>

    <p>
      {{ _('index.about.html.haketilo_is_a_tool')|safe }}
    </p>

    <p>
      {{ _('index.about.html.haketilo_javascript_trap')|safe }}
    </p>

    <p>
      {{ _('index.about.html.haketilo_is_libre_proxy')|safe }}
    </p>

    <p>
      {{ _('index.about.html.haketilo_extension_variant')|safe }}
    </p>

    <h4>{{ _('index.about.h_medium.available_packages') }}</h4>

    <p>
      {{ _('index.about.available_packages.html')|safe }}
    </p>

    <h4>{{ _('index.about.h_medium.credits') }}</h4>

    <p>
      {{ _('index.about.credits.special_thanks_to') }}
    </p>

    {% call unordered_list() %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.nlnet')|safe }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.jahoti')|safe }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.nick')|safe }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.david_lyons')|safe }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.mitmproxy')|safe }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.about.credits.list_entry.html.pallets')|safe }}
      {% endcall %}
    {% endcall %}
  {% endcall %}

  {% call subpage('manual') %}
    <h3>{{ _('index.h_big.user_manual') }}</h3>

    <p>
      {{ _('index.user_manual.html.haketilo_wiki_and_inline_doc')|safe }}
    </p>

    <p>
      {{ _('index.user_manual.html.hydrilla_wiki')|safe }}
    </p>
  {% endcall %}

  {% call subpage('get-involved') %}
    <h3>{{ _('index.h_big.get_involved') }}</h3>

    <p>
      {{ _('index.get_involved.html.project_redmine_instance')|safe }}
    </p>

    {% call unordered_list() %}
      {% call list_entry() %}
        {{ _('index.get_involved.list_entry.provide_feedback') }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.get_involved.list_entry.report_bugs') }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.get_involved.list_entry.share_custom_scripts') }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.get_involved.list_entry.provide_translations') }}
      {% endcall %}
      {% call list_entry() %}
        {{ _('index.get_involved.list_entry.contribute_code') }}
      {% endcall %}
    {% endcall %}

    <p>
      {{ _('index.get_involved.html.email_maintainer')|safe }}
    </p>
  {% endcall %}

  {% call subpage('langs') %}
    <h3>{{ _('index.h_big.choose_language') }}</h3>

    {% call unordered_list() %}
      {% set action_url = url_for('set_locale') %}
      {%
        for lang_name, lang_code in [
            ('english', 'en_US'),
            ('polski', 'pl_PL')
        ]
      %}
        {% call list_entry() %}
          <form method="POST" action="{{ action_url }}" class="inline">
            {% set value = locale_serializer.dumps(lang_code) %}
            <input type="hidden" name="lang_code" value="{{ value }}">
            <button>{{ lang_name }}</button>
          </form>
        {% endcall %}
      {% endfor %}
    {% endcall %}
  {% endcall %}
{% endblock %}