{% from 'components/page-heading.html' import page_heading %} {% from 'components/pagination.html' import pagination %} {% from 'components/search.html' import search_form with context %} {% set family = method_kind %}{% set collection = collections.get(family,{}) %} {% call page_heading(t.methods, t.methods_subtitle) %}{% if not generation_open %}
{{ t.method_generate_now }}{{ t.method_generate_dream }}
{% endif %}{% endcall %} {% include 'components/source-consumption.html' %} {% if generation_open %}{% include 'components/method-generation.html' %}{% else %} {% if request.query_params.get('generation_result') == 'no_op' %}

{{ t.method_generation_no_op }}

{% endif %} {{ search_form(t.search_experiences if family == 'experience' else t.search_skills,2000,family) }} {% if collection.get('search_limited') %}

{{ t.experiences_limit if family == 'experience' else t.skills_limit }}

{% endif %} {% if errors.get(family) %}{{ read_error(errors[family],t[family]) }}{% endif %}
{% for record in collection.get('items',[]) if 'error' not in record %}

{{ record.lesson if family == 'experience' else record.description or record.name }}

{{ (record.situation if family == 'experience' else record.name)|truncate(220,true) }}

{{ t[family] }} · {{ t.revision }} {{ record.revision }} {{ t.read_experience if family == 'experience' else t.read_skill }} →
{% else %}{% if not errors.get(family) %}

{{ (t.experiences_no_match if family == 'experience' else t.skills_no_match) if search_query else (t.experience_empty if family == 'experience' else t.skills_empty) }}

{{ t.methods_empty_body }}

{% endif %}{% endfor %}
{{ pagination(collection.get('pager'),t,always=family == 'skill') }} {% endif %}