From a0755767408f661f189d532d1c45dea145e58aa7 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 26 Oct 2020 22:17:29 -0400 Subject: [PATCH] add edit link to streams on tag page (derpibooru/philomena#204) --- lib/philomena_web/templates/tag/_tag_info_row.html.slime | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/philomena_web/templates/tag/_tag_info_row.html.slime b/lib/philomena_web/templates/tag/_tag_info_row.html.slime index 46779553..3cd4680a 100644 --- a/lib/philomena_web/templates/tag/_tag_info_row.html.slime +++ b/lib/philomena_web/templates/tag/_tag_info_row.html.slime @@ -79,6 +79,11 @@ = for channel <- @tag.channels do => link channel.title, to: Routes.channel_path(@conn, :show, channel) + = if can?(@conn, :edit, channel) do + | ( + = link "Edit", to: Routes.channel_path(@conn, :edit, channel) + ' ) + = if Enum.any?(@tag.implied_by_tags) do input.toggle-box id="implied_by" type="checkbox" label for="implied_by"