## -*- coding: utf-8 -*- ## Etalage -- Open Data POIs portal ## By: Emmanuel Raviart ## ## Copyright (C) 2011, 2012 Easter-eggs ## http://gitorious.org/infos-pratiques/etalage ## ## This file is part of Etalage. ## ## Etalage is free software; you can redistribute it and/or modify ## it under the terms of the GNU Affero General Public License as ## published by the Free Software Foundation, either version 3 of the ## License, or (at your option) any later version. ## ## Etalage is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU Affero General Public License for more details. ## ## You should have received a copy of the GNU Affero General Public License ## along with this program. If not, see . <%! import urlparse from etalage import conf, urls %> <%inherit file="/site.mako"/> <%def name="container_content()" filter="trim">
% for name, value in sorted(params.iteritems()): <% if name in ( 'bbox', 'category' if not ctx.hide_category else None, 'filter' if ctx.show_filter else None, 'page', 'term', 'territory', ): continue if value is None or value == u'': continue %>\ % if isinstance(value, list): % for item_value in value: % endfor % else: % endif % endfor % if not ctx.hide_category: <% error = errors.get('category') if errors is not None else None %>\
% if error: ${error} % endif
% endif <% error = errors.get('term') if errors is not None else None %>\
% if error: ${error} % endif
<% error = errors.get('territory') if errors is not None else None %>\
% if error: ${error} % endif
% if ctx.show_filter: <% error = errors.get('filter') if errors is not None else None %>\
% if error:

${error}

% endif
% endif
## % if errors is None: <%self:results/> ## % endif <%def name="footer_data_p_content()" filter="trim"> ${parent.footer_data_p_content()} % if conf.get('petitpois_url'): — Ajouter une fiche % endif <%def name="scripts()" filter="trim"> <%parent:scripts/>