diff options
Diffstat (limited to 'src/main/resources/templates/views')
-rw-r--r-- | src/main/resources/templates/views/thread.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index 7aecaea4..759c47e1 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -102,18 +102,15 @@ </div> </form> {% endif %} - {% if recomm is not empty %} + {% if msg.recommendations.size() > 0 %} <div class="msg-recomms">{{ i18n("messages","message.recommendedBy") }} - {% for rec in recomm %} + {% for rec in msg.recommendations %} {% if rec.uri.toString() is empty %} <a href="/{{ rec.name }}/">@{{ rec.name }}</a>{% if loop.index < (loop.length - 1) %}, {% endif %} {% else %} <a href="{{ rec.uri }}" data-user-uri="1">@{{ rec.name }}</a>{% if loop.index < (loop.length - 1) %}, {% endif %} {% endif %} {% endfor %} - {% if msg.recommendations.size() > recomm.size() %} - {{ i18n("messages","message.recommendedOthers", msg.recommendations.size() - recomm.size()) }} - {% endif %} </div> {% endif %} </div> |