mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
add related button to image page
This commit is contained in:
parent
3cd51526d9
commit
d24c97dad8
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue