review/templates/pieces/signoff.html @ b443b42afe6f issue-90

Convert unicode to ascii for mercurial API.

Mercurial API can't work with python's Unicode objects.
Details http://mercurial.selenic.com/wiki/EncodingStrategy#Unicode_strings
author Alexander Stepanenko <olexander314@gmail.com>
date Mon, 15 Dec 2014 02:06:13 +0300
parents 24f0d81f3aa5
children 0dc141617716
{% if signoff.style == 'markdown' %}
    {% set rendered = utils['markdown'](signoff.message) %}
{% endif %}

<div class="signoff group {{ signoff.opinion or 'neutral' }}">
    <div class="avatar">
        <img src="{{ utils['item_gravatar'](signoff, 30) }}" />
    </div>

    <div class="signoff-opinion {{ signoff.opinion or "neutral" }}">{{ signoff.opinion or "meh" }}</div>

    <div>
        <div class="author">
            <a href="mailto:{{ utils['email'](signoff.author) }}">{{ utils['templatefilters'].person(signoff.author) }}</a>
            signed off as <span class="opinion">{{ signoff.opinion or "neutral" }}</span> on this changeset, saying:
        </div>

        {% if signoff.style == 'markdown' %}
            <div class="message markdown">{{ rendered|safe }}</div>
        {% else %}
            <div class="message plain">{{ signoff.message }}</div>
        {% endif %}
    </div>
</div>