AgPerry's picture
Add files using upload-large-folder tool
aec61e4 verified
Raw History Blame Contribute Delete
23.7 kB
{% extends "base.html" %}
{% macro search_icon(class_name="") -%}
<svg class="{{ class_name }}" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l4.25 4.25a1.05 1.05 0 0 0 1.49-1.49L15.5 14ZM9.5 14A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14Z"/>
</svg>
{%- endmacro %}
{% macro signature_meta(signatures, location, started) -%}
<p class="result-meta">
<strong>
<svg class="signature-icon" viewBox="0 0 32 32" aria-hidden="true" focusable="false">
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.306 2.898c.898-.146 1.902.09 2.786.974.883.883 1.12 1.888.973 2.786-.136.836-.588 1.508-.973 1.893L15.37 20.271h-4.679v-4.679L22.412 3.872c.386-.386 1.057-.838 1.894-.974Zm.321 1.974c-.334.054-.641.255-.8.414l-1.47 1.47 1.851 1.85 1.47-1.469c.158-.159.359-.467.413-.8.045-.273.009-.629-.414-1.051-.422-.423-.778-.458-1.05-.414Zm-1.833 5.148-1.851-1.85-8.251 8.25v1.851h1.85l8.252-8.251Z"/>
<path d="M3.985 23.625c0-1.867 1.486-3.354 3.287-3.354h1.071v-2H7.272c-2.934 0-5.287 2.412-5.287 5.354 0 2.847 2.204 5.198 5.006 5.346.504.073 1.33.056 2.183-.188.883-.253 1.897-.781 2.575-1.822.457-.704.862-.977 1.13-1.095.274-.12.502-.125.746-.125.205 0 .454.035.738.186.287.151.666.45 1.082 1.055 1.093 1.591 2.448 2.105 3.353 1.996.333-.004.804-.036 1.354-.332.553-.298 1.102-.815 1.716-1.63.55-.732.995-1.027 1.277-1.153.273-.121.468-.122.652-.122.149 0 .922.061 1.608 1.176.521.847 1.111 1.433 1.958 1.75.769.287 1.66.311 2.637.311v-2c-1.023 0-1.557-.043-1.936-.185-.302-.113-.584-.32-.956-.924-1.099-1.787-2.567-2.128-3.311-2.128-.264 0-.802 0-1.466.296-.655.293-1.351.835-2.06 1.777-.528.702-.872.967-1.066 1.071-.155.084-.256.093-.479.093h-.09l-.089.016c-.103-.014-.73-.1-1.445-1.14-.566-.824-1.175-1.363-1.796-1.691-.624-.33-1.206-.417-1.671-.417-.292 0-.87 0-1.539.294-.684.301-1.37.864-2.002 1.835-.334.514-.864.823-1.449.99-.597.172-1.145.163-1.352.131v-.012c-1.8 0-3.286-1.487-3.286-3.353Z"/>
</svg>
<span>{{ signatures }} signatures</span>
</strong>
<span class="result-details"><span>{{ location }}</span>{% if started %}<span aria-hidden="true">·</span><span>{{ started }}</span>{% endif %}</span>
</p>
{%- endmacro %}
{% macro result_image(src) -%}
<div class="result-image-wrap">
<img src="{{ src }}" alt="" loading="lazy" width="160" height="160">
<span class="result-arrow" aria-hidden="true">
<svg viewBox="0 0 24 24" focusable="false"><path d="M5 13h11.17l-4.88 4.88a1 1 0 1 0 1.41 1.42l6.59-6.59a1 1 0 0 0 0-1.41l-6.58-6.6a1 1 0 0 0-1.41 1.41L16.17 11H5a1 1 0 1 0 0 2Z"/></svg>
</span>
</div>
{%- endmacro %}
{% block content %}
{% if is_landing %}
<section class="search-landing topics-loaded" data-search-landing>
<div class="search-landing-heading">
<h1><span>Discover your</span> <span>next cause</span></h1>
<p>Explore millions of petitions and find ones that you care about</p>
</div>
<form class="search-landing-form" action="/search" method="get" role="search">
<label class="sr-only" for="search-input">Search for petitions</label>
<span class="search-landing-icon" aria-hidden="true">
<svg viewBox="0 0 24 24" focusable="false">
<g clip-path="url(#search-input-clip)">
<path d="M15.4996 13.9999H14.7096L14.4296 13.7299C15.6296 12.3299 16.2496 10.4199 15.9096 8.38989C15.4396 5.60989 13.1196 3.38989 10.3196 3.04989C6.08965 2.52989 2.52965 6.08989 3.04965 10.3199C3.38965 13.1199 5.60965 15.4399 8.38965 15.9099C10.4196 16.2499 12.3296 15.6299 13.7296 14.4299L13.9996 14.7099V15.4999L18.2496 19.7499C18.6596 20.1599 19.3296 20.1599 19.7396 19.7499C20.1496 19.3399 20.1496 18.6699 19.7396 18.2599L15.4996 13.9999ZM9.49965 13.9999C7.00965 13.9999 4.99965 11.9899 4.99965 9.49989C4.99965 7.00989 7.00965 4.99989 9.49965 4.99989C11.9896 4.99989 13.9996 7.00989 13.9996 9.49989C13.9996 11.9899 11.9896 13.9999 9.49965 13.9999Z"></path>
</g>
<defs><clipPath id="search-input-clip"><rect width="24" height="24"></rect></clipPath></defs>
</svg>
</span>
<input id="search-input" name="q" type="search" autocomplete="off" placeholder="Search for petitions" data-search-landing-input>
<button type="submit" disabled data-search-landing-submit>Search</button>
</form>
<section class="search-explore" aria-labelledby="search-explore-heading">
<h2 id="search-explore-heading">Explore</h2>
<div class="search-explore-grid">
<button type="button" data-search-explore="/search?location=near-you">
<svg viewBox="0 0 48 48" aria-hidden="true">
<defs><linearGradient id="search-near-gradient" x1="0" y1="48" x2="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="#FE9311"/><stop offset="100%" stop-color="#FFDB00"/></linearGradient></defs>
<g fill="url(#search-near-gradient)">
<path d="M39 31.9697V35.6657C39 36.1077 38.7724 36.4327 38.5336 36.564L28.7836 41.9244C28.6001 42.0252 28.3999 42.0252 28.2164 41.9244L18.2289 36.4334C17.1454 35.8378 15.8546 35.8378 14.7711 36.4334L7.03358 40.6874C6.82021 40.8047 6.61009 40.7887 6.4102 40.6529C6.19862 40.5091 6 40.2173 6 39.789V12.3343C6 11.8923 6.22756 11.5673 6.46642 11.436L16.2164 6.07563C16.3999 5.97479 16.6001 5.97479 16.7836 6.07563L23.25 9.75C23.6785 8.79917 24.2142 7.94741 24.8233 7.19147L18.2289 3.44674C17.1454 2.85109 15.8546 2.85109 14.7711 3.44674L5.02112 8.80708C3.73546 9.51391 3 10.9022 3 12.3343V39.789C3 41.1998 3.68148 42.4257 4.72401 43.1342C5.77823 43.8506 7.19622 44.0214 8.47888 43.3163L16.2164 39.0623C16.3999 38.9615 16.6001 38.9615 16.7836 39.0623L26.7711 44.5533C27.8546 45.1489 29.1454 45.1489 30.2289 44.5533L39.9789 39.1929C41.2645 38.4861 42 37.0978 42 35.6657V28.3784C41.0362 29.7655 40.0054 30.9652 39 31.9697Z"/>
<path d="M27 28.3784C27.9868 29.475 29.0105 30.4042 30 31.1559V38.25C30 39.0784 29.3284 39.75 28.5 39.75C27.6716 39.75 27 39.0784 27 38.25V28.3784Z"/>
<path d="M16.5 8.75212C17.3284 8.75212 18 9.42369 18 10.2521V32.25C18 33.0784 17.3284 33.75 16.5 33.75C15.6716 33.75 15 33.0784 15 32.25V10.2521C15 9.42369 15.6716 8.75212 16.5 8.75212Z"/>
<path d="M39 14.25C39 16.3211 37.3211 18 35.25 18C33.1789 18 31.5 16.3211 31.5 14.25C31.5 12.1789 33.1789 10.5 35.25 10.5C37.3211 10.5 39 12.1789 39 14.25Z"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M45 14.3182C45 6.95455 38.4844 4.5 35.25 4.5C32.25 4.5 25.5 6.95455 25.5 14.3182C25.5 23.5227 31.5938 29.6591 35.25 31.5C38.2969 29.6591 44.5125 23.6455 45 14.3182ZM31.0404 9.05487C29.6386 10.0975 28.5 11.7033 28.5 14.3182C28.5 20.9668 32.2555 25.7129 35.1322 27.8872C37.8086 25.6441 41.6219 20.9248 41.9997 14.2424C41.9786 11.6318 40.8702 10.053 39.531 9.04252C38.0513 7.9261 36.2577 7.5 35.25 7.5C34.3803 7.5 32.5737 7.91443 31.0404 9.05487Z"/>
</g>
</svg>
<span>Near you</span>
</button>
<button type="button" data-search-explore="/search?filter_status=open">
<svg viewBox="0 0 48 48" aria-hidden="true">
<defs><linearGradient id="search-trending-gradient" x1="0" y1="48" x2="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="#FE9311"/><stop offset="100%" stop-color="#FFDB00"/></linearGradient></defs>
<g fill="url(#search-trending-gradient)">
<path d="M6 4.5C6 3.67157 5.32843 3 4.5 3C3.67157 3 3 3.67157 3 4.5V43.5C3 44.3284 3.67157 45 4.5 45H43.5C44.3284 45 45 44.3284 45 43.5C45 42.6716 44.3284 42 43.5 42H6V4.5Z"/>
<path d="M33.4205 13.9205C32.7118 13.2118 33.2137 12 34.216 12H43.875C44.4963 12 45 12.5037 45 13.125V22.784C45 23.7863 43.7882 24.2882 43.0795 23.5795L39.3279 19.8279L29.6937 29.6102C29.4118 29.8965 29.0268 30.0577 28.625 30.0577C28.2232 30.0577 27.8382 29.8965 27.5563 29.6102L21.75 23.7146L11.5687 34.0525C10.9874 34.6428 10.0377 34.65 9.44747 34.0687C8.85723 33.4874 8.84998 32.5377 9.43127 31.9475L20.6813 20.5244C20.9632 20.2381 21.3482 20.0769 21.75 20.0769C22.1518 20.0769 22.5368 20.2381 22.8187 20.5244L28.625 26.42L37.2065 17.7065L33.4205 13.9205Z"/>
</g>
</svg>
<span>Trending</span>
</button>
<button type="button" data-search-explore="/search?filter_status=victory">
<svg viewBox="0 0 48 48" aria-hidden="true">
<defs><linearGradient id="search-victory-gradient" x1="0" y1="48" x2="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="#FE9311"/><stop offset="100%" stop-color="#FFDB00"/></linearGradient></defs>
<g fill="url(#search-victory-gradient)">
<path d="M22.1372 22.0312C22.5974 22.0302 23.0435 21.8664 23.4011 21.5672C23.7587 21.268 24.0062 20.8513 24.1025 20.3866C24.1042 20.3788 24.1325 20.2444 24.1425 20.185C24.161 20.0925 24.21 20.0094 24.2811 19.9499C24.3522 19.8904 24.441 19.8582 24.5326 19.8586H27.4031C27.5116 19.861 27.6149 19.9075 27.6903 19.9881C27.7495 20.0517 27.786 20.1344 27.7936 20.2223C27.7936 20.2419 27.7888 20.4357 27.7867 20.462C27.7199 21.8207 27.2733 22.9111 26.5606 23.7242C26.149 24.1881 25.6555 24.5666 25.1065 24.8394C24.2485 25.2757 23.2452 25.5 22.1516 25.5C18.9942 25.5 16.5 23.6627 16.5 20.1047V15.895C16.5 12.3458 18.9739 10.5089 22.1217 10.5H22.1399C25.2635 10.5 27.7419 12.2982 27.796 15.7798V15.8193C27.7961 15.8684 27.7868 15.9171 27.7687 15.9626C27.7506 16.008 27.7239 16.0493 27.6903 16.0841C27.6651 16.1079 27.637 16.1281 27.6066 16.1442C27.5443 16.1796 27.4742 16.1979 27.4031 16.1972H24.5374C24.4689 16.1972 24.4015 16.1789 24.3418 16.1442C24.293 16.1185 24.2504 16.0818 24.2171 16.0368C24.1839 15.9918 24.1608 15.9397 24.1497 15.8843C24.1431 15.8488 24.1356 15.8132 24.128 15.7777C24.1001 15.6355 24.0667 15.4961 24.0275 15.3628C23.8644 14.9041 23.5503 14.5192 23.1401 14.2754C22.73 14.0317 22.2499 13.9445 21.7839 14.0292C21.3178 14.114 20.8954 14.3652 20.5906 14.7389C20.2858 15.1127 20.1179 15.5852 20.1164 16.0738V19.9148C20.1153 21.0631 21.0254 22.0337 22.1372 22.0312Z"/>
<path d="M31.0105 25.5C29.8626 25.5 28.9959 24.5255 28.9959 23.3413C28.9959 22.2346 29.8626 21.3148 30.9851 21.3148C32.133 21.3148 33 22.2356 33 23.3413C33.001 24.4992 32.2363 25.5 31.0105 25.5Z"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.4189 3H4.5C3.67157 3 3 3.67157 3 4.5V43.5C3 44.3284 3.67157 45 4.5 45C5.32843 45 6 44.3284 6 43.5V33H41.4189C43.4665 33 44.9124 30.9939 44.2649 29.0513L40.5811 18L44.2649 6.94868C44.9124 5.00609 43.4665 3 41.4189 3ZM6 30L6 6H41.4189L37.7351 17.0513C37.5298 17.6671 37.5298 18.3329 37.7351 18.9487L41.4189 30H6Z"/>
</g>
</svg>
<span>Victories</span>
</button>
</div>
</section>
<section class="search-topic-cloud" aria-labelledby="search-topics-heading">
<h2 id="search-topics-heading">Topics</h2>
<div class="search-topic-skeleton" aria-hidden="true">
{% for width in [160, 126, 218, 158, 190, 160, 252, 96, 224, 130, 188, 190, 220, 148, 205, 118, 245, 150] %}
<span class="search-topic-skeleton-width-{{ loop.index }}"></span>
{% endfor %}
</div>
<nav class="search-topic-links" aria-label="Petition topics">
{% for landing_topic in search_landing_topic_options %}
<button type="button" data-search-explore="{{ landing_topic.href }}">{{ landing_topic.label }}</button>
{% endfor %}
</nav>
</section>
</section>
{% else %}
<section class="search-page" data-state="{{ state }}">
{% if deprecated_redirect %}
<p class="deprecated-banner" role="note">You were redirected here because the browse page is deprecated (redirect_reason=deprecated-page).</p>
{% endif %}
<form class="search-form" action="/search" method="get" role="search">
<label class="sr-only" for="search-query">Search petitions</label>
<span class="search-icon" aria-hidden="true">{{ search_icon() }}</span>
<input id="search-query" name="q" value="{{ query }}" placeholder="Search for petitions">
{% if query %}
<button class="clear-search" type="button" aria-label="Clear search" data-clear-search>
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12 5.7 16.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4Z"/></svg>
</button>
{% endif %}
<button class="search-submit" type="submit">Search</button>
</form>
{% if state == 'results' %}
<div class="mobile-filter-row">
<details class="search-filter-panel">
<summary>
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7h10M18 7h2M4 17h2M10 17h10M8 4v6M16 14v6"/></svg>
<span>All filters</span>
</summary>
<form action="/search" method="get" class="filter-dialog-form">
<input type="hidden" name="q" value="{{ query }}">
<h2>All filters</h2>
<label for="mobile-filter-location">Location</label>
<div class="mobile-location-control">
{{ search_icon() }}
<input id="mobile-filter-location" name="location" value="{{ search_filters.location }}" placeholder="City or country">
</div>
<fieldset>
<legend>Status</legend>
<label><input type="radio" name="filter_status" value="" {% if not search_filters.status %}checked{% endif %}> All petitions</label>
<label><input type="radio" name="filter_status" value="victory" {% if search_filters.status == 'victory' %}checked{% endif %}> Victories only</label>
<label><input type="radio" name="filter_status" value="open" {% if search_filters.status == 'open' %}checked{% endif %}> Trending</label>
</fieldset>
<fieldset class="mobile-topic-options">
<legend>Topics</legend>
{% for filter_topic in ["Government and Politics", "Environmental Issues", "Climate Change", "Animal Rights and Conservation", "Global Warming", "Health and Well-Being", "Public Safety", "Business and Economy", "Education", "Wildlife Conservation", "Local Government", "Wildlife Biodiversity", "National Government", "Air Pollution", "Deforestation", "Global Social Justice Issues", "Water Pollution", "Plant Biodiversity", "Child and Family Well-Being", "Animal Welfare", "Public Health", "Technology", "Waste Management", "Ethnic and Racial Minorities", "Education Reform", "Student Issues", "Economic Justice", "Criminal Justice", "Corruption", "Animal Rights"] %}
<label>
<input
type="radio"
name="topic"
value="{{ filter_topic }}"
{% if search_filters.topic == filter_topic %}checked{% endif %}
>
<span>{{ filter_topic }}</span>
</label>
{% endfor %}
</fieldset>
<input type="hidden" name="organization" value="{{ search_filters.organization }}">
<button class="filter-apply" type="submit">View results</button>
</form>
</details>
<span class="mobile-result-count">{% if frozen_results %}{{ frozen_search_count }}{% else %}{{ local_results | length }}{% endif %} results</span>
</div>
<nav class="mobile-filter-chips" aria-label="Quick filters">
<button class="mobile-filter-location" type="button" data-open-filters data-filter-focus="#mobile-filter-location">Location
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m7 9 5 5 5-5"/></svg>
</button>
<button class="mobile-filter-topic" type="button" data-open-filters data-filter-focus="#mobile-filter-topic">Topic
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m7 9 5 5 5-5"/></svg>
</button>
<button class="mobile-filter-status" type="button" data-open-filters>All petitions
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m7 9 5 5 5-5"/></svg>
</button>
<button class="mobile-filter-sort" type="button" data-open-filters>Sort by: Recent activity
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m7 9 5 5 5-5"/></svg>
</button>
</nav>
{% endif %}
{% if state == 'results' %}
<div class="results-heading-row desktop-results-heading">
{% if frozen_results %}
<h1 class="results-heading">Results for “{{ frozen_search_query }}” ({{ frozen_search_count }})</h1>
{% else %}
<h1 class="results-heading">Results for “{{ query }}” ({{ local_results | length }})</h1>
{% endif %}
<form class="sort-form" action="/search" method="get">
<input type="hidden" name="q" value="{{ query }}">
<input type="hidden" name="topic" value="{{ search_filters.topic }}">
<input type="hidden" name="location" value="{{ search_filters.location }}">
<input type="hidden" name="organization" value="{{ search_filters.organization }}">
<input type="hidden" name="filter_status" value="{{ search_filters.status }}">
<label class="sort-control">
<svg class="sort-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 18h4a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2ZM3 7a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H4a1 1 0 0 0-1 1Zm1 6h10a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2Z"/></svg>
<span>Sort by:</span>
<select name="sort" data-sort-select>
<option value="recent-activity" {% if search_sort == 'recent-activity' %}selected{% endif %}>Recent activity</option>
<option value="relevance" {% if search_sort == 'relevance' %}selected{% endif %}>Relevance</option>
<option value="most-recent" {% if search_sort == 'most-recent' %}selected{% endif %}>Most recent</option>
<option value="most-signatures" {% if search_sort == 'most-signatures' %}selected{% endif %}>Most signatures</option>
<option value="least-signatures" {% if search_sort == 'least-signatures' %}selected{% endif %}>Least signatures</option>
<option value="newest" {% if search_sort == 'newest' %}selected{% endif %}>Newest</option>
</select>
<svg class="sort-chevron" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M15.88 9.29 12 13.17 8.12 9.29a1 1 0 0 0-1.41 1.41l4.59 4.59a1 1 0 0 0 1.41 0l4.59-4.59a1 1 0 0 0-1.42-1.41Z"/></svg>
</label>
</form>
</div>
{% endif %}
<div class="search-layout">
<aside class="desktop-filters" aria-label="Search filters">
<form action="/search" method="get">
<input type="hidden" name="q" value="{{ query }}">
<h2 class="filter-heading">Location</h2>
<div class="location-filter-control">
<label class="sr-only" for="filter-location">Location</label>
<span aria-hidden="true">{{ search_icon() }}</span>
<input id="filter-location" name="location" value="{{ search_filters.location }}" placeholder="City or country">
</div>
<h2 class="filter-heading status-filter-heading">Status</h2>
<fieldset class="status-filter-options">
<legend class="sr-only">Status</legend>
<label><input type="radio" name="filter_status" value="" {% if not search_filters.status %}checked{% endif %} data-filter-auto-submit> All petitions</label>
<label><input type="radio" name="filter_status" value="victory" {% if search_filters.status == 'victory' %}checked{% endif %} data-filter-auto-submit> Victories only</label>
<label><input type="radio" name="filter_status" value="open" {% if search_filters.status == 'open' %}checked{% endif %} data-filter-auto-submit> Trending</label>
</fieldset>
<input id="filter-topic" name="topic" value="{{ search_filters.topic }}" type="hidden">
{# Only the facets that return something for this query. The list used
to be hardcoded here and rendered in full for every search, so most
chips led straight to "No search results". The heading is inside the
condition too, so an empty facet set does not leave a bare "Topics"
label with nothing under it. See available_search_topics(). #}
{% if topic_facets %}
<h2 class="filter-heading topics-filter-heading">Topics</h2>
<div class="topic-filter-options" aria-label="Suggested topics">
{% for filter_topic in topic_facets %}
<a href="/search?q={{ query | urlencode }}&topic={{ filter_topic | urlencode }}">{{ filter_topic }}</a>
{% endfor %}
</div>
{% endif %}
<input type="hidden" name="organization" value="{{ search_filters.organization }}">
</form>
</aside>
<section class="results-column">
{% if state == 'loading' %}
<div class="search-loading" role="status" aria-live="polite"><span class="spinner" aria-hidden="true"></span><p>Loading results…</p></div>
{% elif state == 'error' %}
<div class="search-error" role="alert"><p>Something went wrong loading search results.</p><a class="secondary button retry-link" href="/search{% if query %}?q={{ query | urlencode }}{% endif %}">Retry</a></div>
{% elif state == 'empty' %}
<div class="search-empty">
<span class="sr-only">No petitions matched.</span>
<span class="empty-search-icon" aria-hidden="true">⌕</span>
<h1>No search results</h1>
<p>Your search for “{{ query }}” didn’t match any results.</p>
<p>Please clear your filters or start your own petition!</p>
<div><a class="secondary button" href="/search">Clear filters</a><a class="filter-start" href="/start-a-petition">Start a petition</a></div>
</div>
{% else %}
<span class="sr-only">Status: Victory Ongoing</span>
<span class="sr-only">Historical 2026-07-25 sample: Petition to add Ryan Road School to the PVTA bus route.</span>
<div class="result-list">
{% for result in frozen_results %}
<article class="search-result">
<div class="search-result-copy"><h3>{{ result.title }}</h3><p class="result-excerpt">{{ result.excerpt }}</p>{{ signature_meta(result.signatures, result.location, result.started) }}</div>
{{ result_image(result.image) }}
</article>
{% endfor %}
{% for petition in local_results %}
<article class="search-result local">
<div class="search-result-copy"><h3><a href="/p/{{ petition.slug }}">{{ petition.title }}</a></h3><p class="result-excerpt">A petition started by {{ petition.owner_name }}.</p>{{ signature_meta(petition.signatures, "Local fixture petition", "") }}</div>
{{ result_image("/static/assets/source-current/2026-07-25/search-transit/default-petition-darker.gif") }}
</article>
{% endfor %}
</div>
{% if search_page_count > 1 %}
<nav class="search-pagination" aria-label="Search result pages">
{% if search_page > 1 %}<a href="/search?q={{ query | urlencode }}&sort={{ search_sort }}&page={{ search_page - 1 }}">Previous</a>{% else %}<span aria-disabled="true">Previous</span>{% endif %}
{% for page_number in [1, 2, 3, 4] %}
<a class="{% if search_page == page_number %}active{% endif %}" href="/search?q={{ query | urlencode }}&sort={{ search_sort }}&page={{ page_number }}" aria-label="Jump to page {{ page_number }}">{{ page_number }}</a>
{% endfor %}
<span>…</span>
<a href="/search?q={{ query | urlencode }}&sort={{ search_sort }}&page={{ search_page_count }}" aria-label="Jump to page {{ search_page_count }}">{{ search_page_count }}</a>
<a href="/search?q={{ query | urlencode }}&sort={{ search_sort }}&page={{ search_page + 1 }}">Next</a>
</nav>
{% endif %}
{% endif %}
</section>
</div>
</section>
{% endif %}
{% endblock %}