philomena/lib/philomena_web/templates/channel/index.html.slime

43 lines
1.7 KiB
Text
Raw Normal View History

2019-11-30 07:30:45 +01:00
h1 Livestreams
- route = fn p -> Routes.channel_path(@conn, :index, p) end
2020-05-02 04:33:40 +02:00
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @channels, route: route, conn: @conn, params: [cq: @conn.params["cq"]]
2019-11-30 07:30:45 +01:00
2020-05-02 04:33:40 +02:00
= form_for :channels, Routes.channel_path(@conn, :index), [method: "get", class: "hform", enforce_utf8: false], fn f ->
2019-11-30 07:30:45 +01:00
.field
2020-05-02 04:33:40 +02:00
= text_input f, :cq, name: :cq, value: @conn.params["cq"], class: "input hform__text", placeholder: "Search channels", autocapitalize: "none"
= submit "Search", class: "hform__button button"
2019-12-18 18:01:33 +01:00
2019-11-30 07:30:45 +01:00
.block
2020-12-11 17:53:40 +01:00
.block__header.page__header
.page__pagination = pagination
2019-11-30 07:30:45 +01:00
= if @conn.cookies["chan_nsfw"] == "true" do
a href=Routes.channel_nsfw_path(@conn, :delete) data-method="delete"
i.fa.fa-eye-slash>
' Hide NSFW streams
- else
a href=Routes.channel_nsfw_path(@conn, :create) data-method="create"
i.fa.fa-eye>
' Show NSFW streams
2019-11-30 07:30:45 +01:00
.block__content
= for channel <- @channels do
2019-12-05 05:27:40 +01:00
= render PhilomenaWeb.ChannelView, "_channel_box.html", channel: channel, conn: @conn, subscriptions: @subscriptions
2019-11-30 07:30:45 +01:00
2020-12-11 17:53:40 +01:00
.block__header.page__header
.page__pagination = pagination
2019-11-30 07:30:45 +01:00
br
2019-12-18 18:01:33 +01:00
= if can?(@conn, :create, Philomena.Channels.Channel) do
= link "New Channel", to: Routes.channel_path(@conn, :new)
2019-11-30 07:30:45 +01:00
h2 FAQ
p
strong> Q: Do you host streams?
2020-05-02 04:33:40 +02:00
| A: No, we cheat and just link to streams on Picarto since that's where (almost) everyone is already. This is simply a nice way to track streaming artists.
2019-11-30 07:30:45 +01:00
p
2024-04-27 07:54:40 +02:00
strong> Q: How do I get my stream/a friend's stream/&lt;artist&gt;'s stream here?
2019-11-30 07:30:45 +01:00
' A: Send a private message to a site administrator
' with a link to the stream and the artist tag if applicable.