{% if g.user['id'] == service['author_id'] %} {% endif %} {{ service['title'] }} {% if g.user['id'] == service['author_id'] %} Edit {% endif %}