{% extends "base.html.twig" %} {% import "components/new_version.macro.html.twig" as nv %} {% import "components/search.macro.html.twig" as search %} {% import "vars.macro.twig" as vars %} {% block item_search %} {% if is_granted('@parts.read') %} {{ search.search_form("standalone") }} {% endif %} {% endblock %} {% block item_banner %}

{{ vars.partdb_title() }}

{% if settings_instance('customization').showVersionOnHomepage %}

{% trans %}version.caption{% endtrans %}: {{ shivas_app_version }} {% if git_branch is not empty or git_commit is not empty %} ({{ git_branch ?? '' }}/{{ git_commit ?? '' }}) {% endif %}

{% endif %} {% if banner is not empty %}
{{ banner | format_markdown }}
{% endif %}
{% endblock %} {% block item_first_steps %} {% if show_first_steps %}

{% trans %}homepage.first_steps.title{% endtrans %}

{% trans with {"%url%": "https://docs.part-db.de/usage/getting_started.html"} %}homepage.first_steps.introduction{% endtrans %}
{% trans with {"%url%": path('part_new')} %}homepage.first_steps.create_part{% endtrans %}
{% trans %}homepage.first_steps.hide_hint{% endtrans %}
{% endif %} {% endblock %} {% block item_license %}

{% trans %}homepage.license{% endtrans %}

Part-DB, Copyright © 2019 - {{ "now" | date("Y") }} of Jan Böhmer .
Part-DB is published under the GNU Affero General Public License v3.0 (or later), so it comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Click here for details.

{% trans %}homepage.github.caption{% endtrans %}: {% trans with {'%href%': 'https://github.com/Part-DB/Part-DB-server'}%}homepage.github.text{% endtrans %}
{% trans %}homepage.help.caption{% endtrans %}: {% trans with {'%href%': 'https://docs.part-db.de/'}%}homepage.help.text{% endtrans %}
{% trans %}homepage.forum.caption{% endtrans %}: {% trans with {'%href%': 'https://github.com/Part-DB/Part-DB-server/discussions'}%}homepage.forum.text{% endtrans %}
{% endblock %} {% block item_last_activity %} {% if datatable is not null %}
{% trans %}homepage.last_activity{% endtrans %}
{% import "components/history_log_macros.html.twig" as log %} {{ log.last_activity_component(datatable) }}
{% endif %} {% endblock %} {% block content %} {% if is_granted('@system.show_updates') %} {{ nv.new_version_alert(new_version_available, new_version, new_version_url) }} {% endif %} {% for item in settings_instance('customization').homepageitems %} {% if block('item_' ~ item.value) is defined %} {{ block('item_' ~ item.value) }}
{% else %} {% endif %} {% endfor %} {% endblock %}