2019-03-12 13:34:33 +01:00
{% extends "base.html.twig" %}
2023-08-04 23:49:26 +02:00
{% import "components/new_version.macro.html.twig" as nv %}
2024-02-29 22:46:19 +01:00
{% import "components/search.macro.html.twig" as search %}
2023-08-04 23:49:26 +02:00
2019-03-12 13:34:33 +01:00
{% block content %}
2023-08-04 23:49:26 +02:00
{% if is_granted ( '@system.show_updates' ) %}
{{ nv .new_version_alert ( new_version_available , new_version , new_version_url ) }}
{% endif %}
2024-02-29 22:46:19 +01:00
{% if is_granted ( '@parts.read' ) %}
{{ search .search_form ( "standalone" ) }}
2024-02-29 23:00:21 +01:00
<div class="mb-2"></div>
2024-02-29 22:46:19 +01:00
{% endif %}
2023-06-19 01:08:11 +02:00
<div class="rounded p-4 bg-body-secondary">
2019-03-12 13:34:33 +01:00
<h1 class="display-3"> {{ partdb_title }} </h1>
<h4>
{% trans %} version.caption {% endtrans %} : {{ shivas_app_version }}
2019-10-13 00:44:50 +02:00
{% if git_branch is not empty or git_commit is not empty %}
( {{ git_branch ? ? '' }} / {{ git_commit ? ? '' }} )
{% endif %}
2019-03-12 13:34:33 +01:00
</h4>
{% if banner is not empty %}
2019-03-12 18:06:56 +01:00
<hr>
2022-03-06 15:49:09 +01:00
<div class="latex" data-controller="common--latex">
2022-09-18 17:50:25 +02:00
<h5> {{ banner | format_markdown }} </h5>
2019-03-12 18:06:56 +01:00
</div>
2019-03-12 13:34:33 +01:00
{% endif %}
</div>
2019-03-12 18:06:56 +01:00
2023-02-05 21:37:48 +01:00
{% if show_first_steps %}
<div class="card border-info mt-3">
<div class="card-header bg-info ">
<h4><i class="fa fa-circle-play fa-fw " aria-hidden="true"></i> {% trans %} homepage.first_steps.title {% endtrans %} </h4>
</div>
<div class="card-body">
2023-02-09 00:14:36 +01:00
<div> {% trans with { "%url%" : "https://docs.part-db.de/usage/getting_started.html" } %} homepage.first_steps.introduction {% endtrans %} </div>
2023-02-05 21:37:48 +01:00
<ul>
<li><a href=" {{ path ( "category_new" ) }} "> {{ 'category.labelp' | trans }} </a></li>
<li><a href=" {{ path ( "store_location_new" ) }} "> {{ 'storelocation.labelp' | trans }} </a></li>
<li><a href=" {{ path ( "footprint_new" ) }} "> {{ 'footprint.labelp' | trans }} </a></li>
<li><a href=" {{ path ( "supplier_new" ) }} "> {{ 'supplier.labelp' | trans }} </a></li>
<li><a href=" {{ path ( "manufacturer_new" ) }} "> {{ 'manufacturer.labelp' | trans }} </a></li>
</ul>
<div> {% trans with { "%url%" : path ( 'part_new' ) } %} homepage.first_steps.create_part {% endtrans %} </div>
<div class="text-muted"> {% trans %} homepage.first_steps.hide_hint {% endtrans %} </div>
</div>
</div>
{% endif %}
2019-03-12 18:06:56 +01:00
<div class="card border-primary mt-3">
<div class="card-header bg-primary text-white">
<h4><i class="fa fa-book fa-fw" aria-hidden="true"></i> {% trans %} homepage.license {% endtrans %} </h4>
</div>
<div class="card-body">
2023-01-15 22:59:05 +01:00
<p>Part-DB, Copyright © 2019 - {{ "now" | date ( "Y" ) }} of <strong>
2019-03-12 18:06:56 +01:00
<a class="link-external" rel="noopener" target="_blank" href="https://github.com/jbtronics/">Jan Böhmer</a>
2020-02-22 18:14:36 +01:00
</strong>. <br> Part-DB is published under the <strong>GNU Affero General Public License v3.0 (or later)</strong>, so it comes with <strong>ABSOLUTELY NO WARRANTY</strong>.
2019-03-12 18:06:56 +01:00
This is free software, and you are welcome to redistribute it under certain conditions.
2024-09-08 20:05:06 +02:00
Click <a href="https://raw.githubusercontent.com/Part-DB/Part-DB-server/master/LICENSE" class="link-external" rel="noopener" target="_blank">here</a> for details.<br>
2019-03-12 18:06:56 +01:00
</p>
2024-09-08 20:05:06 +02:00
<strong><i class="fab fa-github fa-fw"></i> {% trans %} homepage.github.caption {% endtrans %} :</strong> {% trans with { '%href%' : 'https://github.com/Part-DB/Part-DB-server' } %} homepage.github.text {% endtrans %} <br>
2023-02-09 00:14:36 +01:00
<strong><i class="fas fa-question fa-fw"></i> {% trans %} homepage.help.caption {% endtrans %} :</strong> {% trans with { '%href%' : 'https://docs.part-db.de/' } %} homepage.help.text {% endtrans %} <br>
2024-09-08 20:05:06 +02:00
<strong><i class="fas fa-comments fa-fw"></i> {% trans %} homepage.forum.caption {% endtrans %} :</strong> {% trans with { '%href%' : 'https://github.com/Part-DB/Part-DB-server/discussions' } %} homepage.forum.text {% endtrans %} <br>
2019-03-12 18:06:56 +01:00
</div>
</div>
2020-03-07 17:15:16 +01:00
2020-03-07 20:49:52 +01:00
{% if datatable is not null %}
2023-02-05 21:37:48 +01:00
<div class="card mt-3">
<div class="card-header"><i class="fas fa-fw fa-history"></i> {% trans %} homepage.last_activity {% endtrans %} </div>
<div class="card-body">
{% import "components/history_log_macros.html.twig" as log %}
{{ log .last_activity_component ( datatable ) }}
</div>
2020-03-07 17:15:16 +01:00
</div>
2020-03-07 20:49:52 +01:00
{% endif %}
2019-03-12 13:34:33 +01:00
{% endblock %}