{% if isHome %} add {% else %} {% if isDetail and current_user.is_authenticated and current_user.id == user.id %} edit {% elif isEdit %} home {% else %} menu {% endif %} {% endif %}