This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/priv/templates/http/all_subreddits.eex
Daniel Kempkens 38df258ce5
All checks were successful
Build / build (push) Successful in 2m42s
feat: Simulated multireddits
2023-10-02 12:59:52 +02:00

21 lines
642 B
Elixir

<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Overview</a></li>
<li class="breadcrumb-item active" aria-current="page">All Subreddits</li>
</ol>
</nav>
<h2>All Subreddits</h2>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<%= for subreddit <- subreddits do %>
<a class="btn btn-outline-<%= if MapSet.member?(archived_subreddits, subreddit), do: "info", else: "secondary" %> btn-lg"
href="/r/<%= subreddit %>" role="button">
<%= subreddit %>
</a>
<% end %>
</div>
</div>
<br>