{% extends 'base.html' %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %}
{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %}
{% block main %}
<div class="container-xxl">
    <div class="jumbotron text-center">
        <h1>{% translate "Search for:" %} {{ request.GET.search }}</h1>
    </div>
    <div class="row">
        {% for result in object_list  %}
        <div class="card m-2">
            <div class="card-header">
                {{ result.title_de }}
            </div>
            <div class="card-body">
                <h5 class="card-title">{{ result.subtitle_de }}</h5>
                <p class="card-text">{{result.desc_de}}</p>
                <a href="/{{ LANGUAGE_CODE }}{{ result.suburl }}" class="btn btn-primary">Go somewhere</a>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock main %}
