diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 0377aa35f..9ca78ef7f 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -998,7 +998,7 @@ footer { } .auth-image { - background: $brand image-url("auth_bg.jpg"); + background-color: $brand; background-repeat: no-repeat; background-size: cover; color: $white; diff --git a/app/components/budgets/investment_component.html.erb b/app/components/budgets/investment_component.html.erb index 1b05e2c9b..f3047550e 100644 --- a/app/components/budgets/investment_component.html.erb +++ b/app/components/budgets/investment_component.html.erb @@ -2,7 +2,7 @@ <% if investment.image.present? %> <%= image_tag investment.image.variant(:large), alt: investment.image.title.unicode_normalize %> <% else %> - <%= image_tag "budget_investment_no_image.jpg", alt: investment.title %> + <%= image_tag(image_path_for("budget_investment_no_image.jpg"), alt: investment.title) %> <% end %> <% if investment.should_show_vote_count? || investment.should_show_price? %> diff --git a/app/components/budgets/investment_component.rb b/app/components/budgets/investment_component.rb index e52af44d9..11e258deb 100644 --- a/app/components/budgets/investment_component.rb +++ b/app/components/budgets/investment_component.rb @@ -1,5 +1,5 @@ class Budgets::InvestmentComponent < ApplicationComponent - delegate :locale_and_user_status, :namespaced_budget_investment_path, to: :helpers + delegate :locale_and_user_status, :namespaced_budget_investment_path, :image_path_for, to: :helpers attr_reader :investment def initialize(investment) diff --git a/app/components/widget/feeds/process_component.html.erb b/app/components/widget/feeds/process_component.html.erb index 7bc071a2b..d05d53e3a 100644 --- a/app/components/widget/feeds/process_component.html.erb +++ b/app/components/widget/feeds/process_component.html.erb @@ -1,7 +1,7 @@