add related button to image page

This commit is contained in:
byte[] 2019-12-20 18:07:02 -05:00
parent 3cd51526d9
commit d24c97dad8
2 changed files with 4 additions and 0 deletions

View file

@ -176,6 +176,7 @@ defmodule Philomena.Users.User do
|> unique_constraint(:slug, name: :index_users_on_slug) |> unique_constraint(:slug, name: :index_users_on_slug)
|> unique_constraint(:email, name: :index_users_on_email) |> unique_constraint(:email, name: :index_users_on_email)
|> unique_constraint(:authentication_token, name: :index_users_on_authentication_token) |> unique_constraint(:authentication_token, name: :index_users_on_authentication_token)
|> unique_constraint(:name, name: :temp_unique_index_users_on_name)
end end
def filter_changeset(user, filter) do def filter_changeset(user, filter) do

View file

@ -34,6 +34,9 @@
.stretched-mobile-links .stretched-mobile-links
= render PhilomenaWeb.Image.SubscriptionView, "_subscription.html", watching: @watching, image: @image, conn: @conn = render PhilomenaWeb.Image.SubscriptionView, "_subscription.html", watching: @watching, image: @image, conn: @conn
= render PhilomenaWeb.ImageView, "_add_to_gallery_dropdown.html", image: @image, image_galleries: @image_galleries, user_galleries: @user_galleries, conn: @conn = render PhilomenaWeb.ImageView, "_add_to_gallery_dropdown.html", image: @image, image_galleries: @image_galleries, user_galleries: @user_galleries, conn: @conn
a href=Routes.image_related_path(@conn, :index, @image) title="Related Images"
i.fa.fa-sitemap>
span.hide-limited-desktop.hide-mobile Related
.stretched-mobile-links .stretched-mobile-links
a href="#{pretty_url(@image, false, false)}" rel="nofollow" title="View (tags in filename)" a href="#{pretty_url(@image, false, false)}" rel="nofollow" title="View (tags in filename)"
i.fa.fa-eye> i.fa.fa-eye>