From e86a0f041bdb092b3d8edc696c27069e5c888de9 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 16 Aug 2023 23:28:58 +0200 Subject: [PATCH] feat: List users --- priv/templates/http/index.eex | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/priv/templates/http/index.eex b/priv/templates/http/index.eex index a5836f3..7d4a8f2 100644 --- a/priv/templates/http/index.eex +++ b/priv/templates/http/index.eex @@ -4,8 +4,22 @@
Chats - <%= for subreddit <- subreddits do %> + <%= for subreddit <- subreddits, not String.starts_with?(subreddit, "u_") do %> <%= subreddit %> <% end %>
+ +
+ +

Archived Users

+ +
+
+ <%= for user <- subreddits, String.starts_with?(user, "u_") do %> + " role="button"> + <%= String.replace_leading(user, "u_", "") %> + + <% end %> +
+