add edit link to streams on tag page (derpibooru/philomena#204)

This commit is contained in:
byte[] 2020-10-26 22:17:29 -04:00
parent 776be8916a
commit a075576740

View file

@ -79,6 +79,11 @@
= for channel <- @tag.channels do = for channel <- @tag.channels do
=> link channel.title, to: Routes.channel_path(@conn, :show, channel) => 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 = if Enum.any?(@tag.implied_by_tags) do
input.toggle-box id="implied_by" type="checkbox" input.toggle-box id="implied_by" type="checkbox"
label for="implied_by" label for="implied_by"