Extend theme helper to show themes on answer pages
This commit is contained in:
parent
a78cb2f2c9
commit
a6dc7661ee
|
@ -76,6 +76,16 @@ module ThemeHelper
|
||||||
else
|
else
|
||||||
@user.theme
|
@user.theme
|
||||||
end
|
end
|
||||||
|
elsif @answer&.user&.theme
|
||||||
|
if user_signed_in?
|
||||||
|
if current_user&.show_foreign_themes?
|
||||||
|
@answer.user.theme
|
||||||
|
else
|
||||||
|
current_user&.theme
|
||||||
|
end
|
||||||
|
else
|
||||||
|
@answer.user.theme
|
||||||
|
end
|
||||||
elsif current_user&.theme
|
elsif current_user&.theme
|
||||||
current_user.theme
|
current_user.theme
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue