{% extends 'layout.html' %} {% set ad = data['ad:ad'] %} {% block title %}Ad {{ ad['@id'] }}{% endblock %} {% block content %}
| Ad Title | {{ ad['ad:title'] }} | |
| Category | {{ ad['cat:category']['cat:id-name'] }} | |
| Category ID | {{ ad['cat:category']['@id'] }} | |
| Price | {%- if 'ad:price' in ad -%} {%- if ad['ad:price']['types:price-type']['types:value'] == 'SPECIFIED_AMOUNT' -%} {%- if 'types:currency-iso-code' in ad['ad:price'] -%} {{ ad['ad:price']['types:currency-iso-code']['types:value']['@localized-label'] }}{{ ad['ad:price']['types:amount'] }} {%- else -%} {{ '$%s' % ad['ad:price']['types:amount'] if ad['ad:price']['types:amount'] is not none else '' }} {%- endif -%} {%- else -%} {{ ad['ad:price']['types:price-type']['types:value'] }} {%- endif -%} {%- endif -%} | |
| Description | {{ ad['ad:description'] }} | |
| Location ID | {{ ad['loc:locations']['loc:location']['@id'] }} | |
| Longitude | {{ ad['loc:locations']['loc:location']['loc:longitude'] }} | |
| Latitude | {{ ad['loc:locations']['loc:location']['loc:latitude'] }} | |
| Address | {{ ad['ad:ad-address']['types:full-address'] }} | |
| Ranking | {{ ad['ad:rank'] }} | |
| Page | {{ ad['ad:rank']|adpage }} | |
| View Count | {{ ad['ad:view-ad-count'] }} | |
| Creation Date | {{ ad['ad:creation-date-time']|datetime }} | |
| Start Date | {{ ad['ad:start-date-time']|datetime }} | |
| End Date | {{ ad['ad:end-date-time']|datetime }} | |
| Images |
{%- for img in ad|imgthumbs -%}
|
|
| Public URL | {{ ad|adurl }} |