No longer need the un-clickable avatar for system

This commit is contained in:
Kevin McConnell
2025-02-12 15:06:49 +00:00
parent a24817ffb7
commit deb3d093bb
+2 -8
View File
@@ -11,14 +11,8 @@ module AvatarsHelper
end
def avatar_tag(user, **options)
if user.system?
tag.div class: "avatar" do
avatar_image_tag(user, **options)
end
else
link_to user_path(user), title: user.name, class: "btn avatar", data: { turbo_frame: "_top" } do
avatar_image_tag(user, **options)
end
link_to user_path(user), title: user.name, class: "btn avatar", data: { turbo_frame: "_top" } do
avatar_image_tag(user, **options)
end
end