15 lines
404 B
HTML
15 lines
404 B
HTML
|
|
{%- macro get_name(username) %}{%
|
||
|
|
if config.extra.profiles[username] %}{%
|
||
|
|
set profile_data = config.extra.profiles[username] %}{%
|
||
|
|
if profile_data.languages[lang].name %}{{
|
||
|
|
profile_data.languages[lang].name }}{%
|
||
|
|
elif profile_data.name %}{{
|
||
|
|
profile_data.name }}{%
|
||
|
|
else %}{{
|
||
|
|
username }}{%
|
||
|
|
endif %}{%
|
||
|
|
else %}{{
|
||
|
|
username }}{%
|
||
|
|
endif %}
|
||
|
|
{%- endmacro get_name -%}
|