From d3f585f80702aa16483540225cd2720d7c0cca03 Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 31 Mar 2023 13:41:50 +0200 Subject: [PATCH 1/3] order channels by visibility --- lib/chiya/channels.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/chiya/channels.ex b/lib/chiya/channels.ex index e8d5a09..6205e43 100644 --- a/lib/chiya/channels.ex +++ b/lib/chiya/channels.ex @@ -23,7 +23,9 @@ defmodule Chiya.Channels do """ def list_channels do - Repo.all(Channel) + Channel + |> order_by(desc: :visibility) + |> Repo.all() end def preload_channel(channel), do: Repo.preload(channel, @preloads) From dcdf17b76f11bf01eea0e1947044fa55a61db5fb Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 31 Mar 2023 13:42:45 +0200 Subject: [PATCH 2/3] remove target blank on identities links --- lib/chiya_web/controllers/page_html/home.html.heex | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/chiya_web/controllers/page_html/home.html.heex b/lib/chiya_web/controllers/page_html/home.html.heex index 4d3682e..408631f 100644 --- a/lib/chiya_web/controllers/page_html/home.html.heex +++ b/lib/chiya_web/controllers/page_html/home.html.heex @@ -14,7 +14,6 @@ <%= raw identity.icon %> From 486fd65f4f05ebc9fffa414b17d0a777968c545d Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 31 Mar 2023 13:54:35 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/controllers/page?= =?UTF-8?q?=5Fhtml/channel.html.heex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/controllers/page_html/channel.html.heex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chiya_web/controllers/page_html/channel.html.heex b/lib/chiya_web/controllers/page_html/channel.html.heex index 8aaa891..87f88f4 100644 --- a/lib/chiya_web/controllers/page_html/channel.html.heex +++ b/lib/chiya_web/controllers/page_html/channel.html.heex @@ -1,9 +1,9 @@
-

+

<%= @channel.name %>

-

+

<%= @channel.content %>