AgPerry's picture
Add files using upload-large-folder tool
aec61e4 verified
Raw History Blame Contribute Delete
1.86 kB
{% extends "base.html" %}
{% block content %}
<section class="topic-directory">
<p class="page-eyebrow">Topic directory</p>
<h1>Discover petitions by Topic</h1>
<p class="alphabet-label">Filter alphabetically</p>
<nav class="alphabet-nav" aria-label="Topics by first letter">
<a class="active" href="/topic">All</a>
{% for letter in alphabet %}
<a href="#topic-{{ letter }}">{{ letter }}</a>
{% endfor %}
</nav>
<h2 class="topic-count">
Topics (<span class="topic-count-wide">87,190</span><span class="topic-count-mobile">87,190</span>)
</h2>
{# Topics come from SOURCE_TOPIC_PAGES in app.py, which topic_page
also resolves against, so every link here opens a real page. #}
<div class="topic-grid">
{% for topic in topics %}
<article id="topic-{{ topic.letter }}" class="topic-card">
<a href="/topic/{{ topic.slug }}">
<h2>{{ topic.title }}</h2>
{% if topic.signatures is defined %}
<p><strong>{{ topic.signatures }}</strong> signatures</p>
{% else %}
<p class="topic-signature-placeholder" aria-hidden="true"></p>
{% endif %}
</a>
</article>
{% endfor %}
</div>
<button class="topic-show-more" type="button">Show more</button>
<section class="curated-topics" aria-labelledby="curated-topics-heading">
<h2 id="curated-topics-heading">Curated topics</h2>
<nav aria-label="Curated topics">
{% for curated in curated_topics %}
<a href="{{ curated.href }}">{{ curated.title }}</a>
{% endfor %}
</nav>
</section>
<section class="topic-start-cta">
<h2>Can’t find what you’re looking for? Make your voice heard!</h2>
<a class="change-primary-button" href="/start-a-petition/intro?source_location=topic">Start a petition</a>
</section>
</section>
{% endblock %}