2019-10-04 18:48:00 +02:00
|
|
|
.column-layout
|
|
|
|
aside.column-layout__left#activity-side
|
|
|
|
= if @featured_image do
|
|
|
|
.center
|
|
|
|
h4.remove-top-margin Featured Image
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ImageView, "_image_box.html", image: @featured_image, size: :medium, conn: @conn
|
2019-10-04 18:48:00 +02:00
|
|
|
.block.block--fixed.block--fixed--sub.block--success.center.hide-mobile
|
|
|
|
' Enjoy the site?
|
|
|
|
a href="/pages/donations"
|
|
|
|
' Become a patron or donate!
|
|
|
|
.block.block--fixed.block--fixed--sub.center.hide-mobile
|
|
|
|
| Issues? Want to chat?
|
|
|
|
a< href="/pages/contact" Contact us!
|
|
|
|
.block.hide-mobile
|
2019-10-05 01:43:15 +02:00
|
|
|
a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=score&sd=desc"
|
|
|
|
' Trending Images
|
2019-10-04 18:48:00 +02:00
|
|
|
.block__content.flex.flex--centered.flex--wrap.image-flex-grid
|
2019-10-05 00:52:44 +02:00
|
|
|
= for image <- @top_scoring do
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ImageView, "_image_box.html", image: image, size: :thumb_small, conn: @conn
|
2019-10-05 00:52:44 +02:00
|
|
|
a.block__header--single-item.center href="/search?q=*&sf=score&sd=desc"
|
|
|
|
' All Time Top Scoring
|
2019-10-04 18:48:00 +02:00
|
|
|
.block.hide-mobile
|
|
|
|
a.block__header--single-item.center href="/channels"
|
|
|
|
' Streams
|
2019-10-05 00:52:44 +02:00
|
|
|
= for channel <- @streams do
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ActivityView, "_channel_strip.html", channel: channel, conn: @conn
|
2019-10-04 18:48:00 +02:00
|
|
|
.block.hide-mobile
|
|
|
|
a.block__header--single-item.center href="/forums"
|
|
|
|
' Forum Activity
|
2019-10-05 00:52:44 +02:00
|
|
|
= for topic <- @topics do
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ActivityView, "_topic_strip.html", topic: topic, conn: @conn
|
2019-10-04 18:48:00 +02:00
|
|
|
.block.hide-mobile
|
2019-12-08 16:14:19 +01:00
|
|
|
a.block__header--single-item.center href="/comments"
|
2019-10-04 18:48:00 +02:00
|
|
|
' Recent Comments
|
2019-10-05 01:43:15 +02:00
|
|
|
= for comment <- @comments do
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ActivityView, "_comment_strip.html", comment: comment, conn: @conn
|
2019-12-08 16:14:19 +01:00
|
|
|
a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=comment_count&sd=desc"
|
2019-10-05 01:43:15 +02:00
|
|
|
' Most Commented-on Images
|
2019-10-04 18:48:00 +02:00
|
|
|
|
|
|
|
.column-layout__main
|
2019-10-09 01:19:57 +02:00
|
|
|
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, images: @images, size: :thumb
|
2019-12-11 01:41:29 +01:00
|
|
|
= if not is_nil(@watched) and Enum.any?(@watched) do
|
2019-10-04 18:48:00 +02:00
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
span.block__header__title
|
|
|
|
' Watched Images
|
|
|
|
a href="/search?q=my:watched" title="Browse Watched Images"
|
|
|
|
i.fa.fa-eye>
|
|
|
|
span.hide-mobile
|
|
|
|
' Browse Watched Images
|
|
|
|
.block__content.js-resizable-media-container
|
2019-12-11 01:41:29 +01:00
|
|
|
- route = fn p -> Routes.search_path(@conn, :index, p) end
|
|
|
|
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, images: @watched, size: :thumb_small, route: route, scope: [q: "my:watched"]
|