26 lines
672 B
Twig
26 lines
672 B
Twig
{% set logged_in = false %}
|
|
<div id="burger-menu-user">
|
|
<div >
|
|
<twig:ux:icon name="fa6-solid:circle-user" />
|
|
</div>
|
|
{% if logged_in %}
|
|
<span>Username</span>
|
|
<span>username@email.com</span>
|
|
<div>
|
|
{{ _self.user_action('Profile', 'user') }}
|
|
{{ _self.user_action('Settings', 'gear') }}
|
|
{{ _self.user_action('Logout', 'right-from-bracket') }}
|
|
</div>
|
|
{% else %}
|
|
<span>not logged in</span>
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
{% macro user_action(name, icon) %}
|
|
<button>
|
|
<twig:ux:icon name="fa6-solid:{{ icon }}" />
|
|
<span>{{ name }}</span>
|
|
</button>
|
|
{% endmacro %}
|
|
|