{# -*- engine: jinja2 -*- #} {% extends 'base.html' %} {% block head_extra %} {% endblock %} {% block content %}

{% if all_emotes %} All Emotes {% else %} Emotes for user {{ username }} {% endif %}

{% include 'flash.html' %} {% if all_emotes or g.user.username == username %}

Create Emote

{% endif %}
{% for emote in emotes %}
{% if username == g.user.username or emote.channel.username == g.user.username %}

Created by: {{ emote.channel.username }}

{% else %}

{{ emote.emote_name }}

Created by: {{ emote.channel.username }}

{% endif %}
{% else %}

No emotes have been added.

{% endfor %}
{% endblock %} {% block body_extra %} {% endblock %}