Show the version number of Part-DB on homepage.

This commit is contained in:
Jan Böhmer 2019-03-12 13:34:33 +01:00
parent a748a6328d
commit 95cd56f0bd
11 changed files with 150 additions and 6 deletions

View file

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}Part-DB{% endblock %}</title>
<title>{% block title %}{{ partdb_title }}{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}

View file

@ -0,0 +1,18 @@
{% extends "base.html.twig" %}
{% block content %}
<div class="jumbotron">
<h1 class="display-3">{{ partdb_title }}</h1>
<h4>
{% trans %}version.caption{% endtrans %}: {{ shivas_app_version }}
</h4>
{% if banner is not empty %}
<hr>
<div>
<h5>{{ banner }}</h5>
</div>
{% endif %}
</div>
{% endblock %}