<xen:if is="{$thread.shopping_id}">
<xen:if is="{$thread.shopping_stage} == 'open'">
<xen:set var="$estcs_stage_title">{xen:phrase estcs_shopping_stage_open}</xen:set>
<xen:elseif is="{$thread.shopping_stage} == 'active'" />
<xen:set var="$estcs_stage_title">{xen:phrase estcs_shopping_stage_active}</xen:set>
<xen:elseif is="{$thread.shopping_stage} == 'finished'" />
<xen:set var="$estcs_stage_title">{xen:phrase estcs_shopping_stage_finished}</xen:set>
<xen:elseif is="{$thread.shopping_stage} == 'closed'" />
<xen:set var="$estcs_stage_title">{xen:phrase estcs_shopping_stage_closed}</xen:set>
<xen:else />
<xen:set var="$estcs_stage_title">{xen:phrase estcs_shopping_stage_banned}</xen:set>
</xen:if>
<xen:set var="$estcs_stage_icon"><div class="estcs-stage-icon estcs-stage-{$thread.shopping_stage} Tooltip" title="{xen:raw $estcs_stage_title}" data-offsetX="-8"></div></xen:set>
<xen:set var="$organizer.user_id">{$thread.organizer_id}</xen:set>
<xen:set var="$estcs_shopping_description">
<dl class="estcs-shopping-description">
<dt>{xen:phrase estcs_price}:</dt>
<dd>{$thread.shopping_price} <xen:hook name="estcs_currency_title"></xen:hook></dd></dl>,
<dl class="estcs-shopping-description">
<dt>{xen:phrase estcs_participants}:</dt>
<dd>{$thread.shopping_participants_current}{xen:if '{$thread.shopping_participants} > 0 && {$thread.shopping_stage} == "open"', '/{$thread.shopping_participants}', ''}</dd></dl>,
<xen:if is="{$thread.reserve_participants_current}">
<dl class="estcs-shopping-description">
<dt>{xen:phrase estcs_reserve}:</dt>
<dd>{$thread.reserve_participants_current}</dd></dl>,</xen:if>
<dl class="estcs-shopping-description">
<dt>{xen:phrase estcs_organizer_short}:</dt>
<dd>{xen:if $thread.organizer_id, '<a href="{xen:link 'members', $organizer}" class="username">{$thread.organizer_username}</a>', '<span class="estcs-marked">{xen:phrase estcs_no_organizer}</span>'}</dd></dl>,
<xen:if is="{$thread.shopping_collection_date} AND {$thread.shopping_stage} == 'open' AND {$thread.shopping_collection_date} > {$estcs_current_time}">
<dl class="estcs-shopping-description">
<dt><span class="estcs-marked">{xen:phrase estcs_collection_date}:</span></dt>
<dd><span class="estcs-marked">{xen:date $thread.shopping_collection_date}</span></dd></dl>,
</xen:if>
</xen:set>
<xen:require css="estcs_thread_list_item.css" />
</xen:if>