diff --git a/lib/philomena/users/user.ex b/lib/philomena/users/user.ex index e3eea07f..d15a4695 100644 --- a/lib/philomena/users/user.ex +++ b/lib/philomena/users/user.ex @@ -176,6 +176,7 @@ defmodule Philomena.Users.User do |> unique_constraint(:slug, name: :index_users_on_slug) |> unique_constraint(:email, name: :index_users_on_email) |> unique_constraint(:authentication_token, name: :index_users_on_authentication_token) + |> unique_constraint(:name, name: :temp_unique_index_users_on_name) end def filter_changeset(user, filter) do diff --git a/lib/philomena_web/templates/image/_image_meta.html.slime b/lib/philomena_web/templates/image/_image_meta.html.slime index 9881021d..2d883d47 100644 --- a/lib/philomena_web/templates/image/_image_meta.html.slime +++ b/lib/philomena_web/templates/image/_image_meta.html.slime @@ -34,6 +34,9 @@ .stretched-mobile-links = 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 + 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 a href="#{pretty_url(@image, false, false)}" rel="nofollow" title="View (tags in filename)" i.fa.fa-eye>