Fix user and tooltips urls

This commit is contained in:
Romain Neutron
2012-02-08 17:45:40 +01:00
parent cae82aca00
commit 40ada806d9
3 changed files with 25 additions and 7 deletions

View File

@@ -66,7 +66,7 @@
{% if Basket.getPusher() %}
<p>
{% set user_name = '<a href="#" tooltipsrc="/prod/tooltip/user/' ~ Basket.getPusher().get_id() ~ '/" class="userTips">' ~ Basket.getPusher().get_display_name() ~ '</a>' %}
{% set user_name = '<a href="/user/' ~ Basket.getPusher().get_id() ~ '/" tooltipsrc="/prod/tooltip/user/' ~ Basket.getPusher().get_id() ~ '/" class="UserTips">' ~ Basket.getPusher().get_display_name() ~ '</a>' %}
{% trans %}
Received from {{ user_name }}
{% endtrans %}
@@ -78,7 +78,14 @@
<p>
{% set list_participants = '' %}
{% for Participant in Basket.getValidation().getParticipants() %}
{% set list_participants = list_participants ~ '<a href="/user/' ~ Participant.getUser().get_id() ~ '/">' %}
{% if list_participants != '' %}
{% set list_participants = list_participants ~ ', ' %}
{% endif %}
{% set list_participants = list_participants ~ '<a class="UserTips" tooltipsrc="/prod/tooltip/user/'
~ Participant.getUser().get_id()
~ '/" href="/user/' ~ Participant.getUser().get_id() ~ '/">' %}
{% set list_participants = list_participants ~ Participant.getUser().get_display_name %}
{% set list_participants = list_participants ~ '</a>' %}
{% endfor %}