0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-01-10 19:47:35 +00:00
kevinpapst_kimai2/templates/bundles/TablerBundle/includes/logo.html.twig
2024-02-02 13:52:24 +01:00

14 lines
No EOL
878 B
Twig

<a href="{{ path('tabler_welcome'|tabler_route) }}" title="{{ 'dashboard.title'|trans }}">
{% set logo = config('theme.branding.logo') %}
{% set company = config('theme.branding.company') %}
{% if company is not empty %}
<span>{{ company }}</span>
{% elseif logo is not empty %}
<img src="{{ logo }}" class="navbar-brand-image" style="max-height:32px" alt="{{ company }}">
{% elseif tabler_bundle.getLogoUrl() is not empty %}
<img class="navbar-brand-image" alt="{{ company|default(constant('\\App\\Constants::SOFTWARE') ~ ' ' ~ constant('\\App\\Constants::VERSION')) }}" width="110" height="32"
src="{% if '://' in tabler_bundle.getLogoUrl() %}{{ tabler_bundle.getLogoUrl() }}{% else %}{{ asset(tabler_bundle.getLogoUrl()) }}{% endif %}">
{% else %}
<span>{{ get_title()|raw }}</span>
{% endif %}
</a>