fix: don't expect teamer data to be available
This commit is contained in:
+15
-15
@@ -7,21 +7,21 @@
|
|||||||
<img class="h-8 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="My E&P Team">
|
<img class="h-8 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="My E&P Team">
|
||||||
</a>
|
</a>
|
||||||
{% if app.user %}
|
{% if app.user %}
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center space-x-4">
|
||||||
{% if app.user.teamer.photo %}
|
{% if app.user.teamer and app.user.teamer.photo %}
|
||||||
<a href="{{ path('app_teamer_profile_index') }}" title="Mein Profil">
|
<a href="{{ path('app_teamer_profile_index') }}" title="Mein Profil">
|
||||||
<img src="{{ asset(app.user.teamer.photo.filename | imagine_filter('profile')) }}"
|
<img src="{{ asset(app.user.teamer.photo.filename | imagine_filter('profile')) }}"
|
||||||
class="h-8 w-auto rounded-full"
|
class="h-8 w-auto rounded-full"
|
||||||
alt="{{ app.user.teamer.firstName }}">
|
alt="{{ app.user.teamer.firstName }}">
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="lg:hidden"
|
class="lg:hidden"
|
||||||
{{ stimulus_controller('mobilenav', [], [], { 'mobilenav': '#mobilenav' }) }}
|
{{ stimulus_controller('mobilenav', [], [], { 'mobilenav': '#mobilenav' }) }}
|
||||||
{{ stimulus_action('mobilenav', 'trigger', null, { 'mode': 'open' }) }}>
|
{{ stimulus_action('mobilenav', 'trigger', null, { 'mode': 'open' }) }}>
|
||||||
{{ icon('menu', 'w-8 h-8 text-gray-700') }}
|
{{ icon('menu', 'w-8 h-8 text-gray-700') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden lg:block">
|
<div class="hidden lg:block">
|
||||||
|
|||||||
Reference in New Issue
Block a user