Website/app/frontend/templates/components/BurgerMenu/User.html.twig
Snoweuph f5291924c3
Some checks failed
Quality Check / QS Backend (push) Successful in 19s
Quality Check / QS Frontend (push) Failing after 36s
Quality Check / QS Mixed (push) Failing after 33s
stuff
2024-07-27 20:58:39 +02:00

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 %}