72 lines
1.8 KiB
Elixir
72 lines
1.8 KiB
Elixir
<h1>BDFR Browser</h1>
|
|
|
|
<div class="row text-center">
|
|
<div class="d-grid gap-2 col-12 mx-auto">
|
|
<a class="btn btn-outline-primary btn-lg" href="/chats" role="button">Chats</a>
|
|
<a class="btn btn-outline-secondary btn-lg" href="/all/subreddits" role="button">All Subreddits</a>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<form method="get" action="/search" class="row">
|
|
<div class="col-8">
|
|
<input type="text" class="form-control" placeholder="Search term" name="search" />
|
|
</div>
|
|
|
|
<div class="col-4 text-end">
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
</div>
|
|
</form>
|
|
|
|
<br>
|
|
|
|
<h2>Archived 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-secondary btn-lg" href="/r/<%= subreddit %>" role="button"><%= subreddit %></a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<h2>Archived Users</h2>
|
|
|
|
<div class="row text-center">
|
|
<div class="d-grid gap-2 col-12 mx-auto">
|
|
<%= for user <- users do %>
|
|
<a class="btn btn-outline-secondary btn-lg" href="/user/<%= user %>" role="button"><%= user %></a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<h2>Simulated Multireddits</h2>
|
|
|
|
<div class="row text-center">
|
|
<div class="d-grid gap-2 col-12 mx-auto">
|
|
<%= for {title, subreddits} <- multireddits do %>
|
|
<a class="btn btn-outline-secondary btn-lg" href="/m/<%= Enum.join(subreddits, "+") %>" role="button"><%= title %></a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<h2>Saved Searches</h2>
|
|
|
|
<div class="row text-center">
|
|
<div class="d-grid gap-2 col-12 mx-auto">
|
|
<%= for search <- searches do %>
|
|
<a class="btn btn-outline-secondary btn-lg fst-italic" href="/search?<%= URI.encode_query(%{"search" => search}) %>" role="button">
|
|
<%= search %>
|
|
</a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|