diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 24db97a444..3da738c07c 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -8,6 +8,7 @@ class StaticController < ApplicationController def index redirect_to dashboard_path_from_current_role if current_user + @casa_logos = CasaOrg.with_logo end def register diff --git a/app/models/casa_org.rb b/app/models/casa_org.rb index 6e25a6946e..9c56efde5f 100644 --- a/app/models/casa_org.rb +++ b/app/models/casa_org.rb @@ -2,6 +2,8 @@ class CasaOrg < ApplicationRecord CASA_DEFAULT_COURT_REPORT = File.new(Rails.root.join("app", "documents", "templates", "default_report_template.docx"), "r") CASA_DEFAULT_LOGO = Rails.root.join("public", "logo.jpeg") + scope :with_logo, -> { joins(:logo_attachment) } + before_create :set_slug before_update :sanitize_svg before_save :normalize_phone_number diff --git a/app/views/static/index.html.erb b/app/views/static/index.html.erb index 497a2093f9..fa1bd4499e 100644 --- a/app/views/static/index.html.erb +++ b/app/views/static/index.html.erb @@ -12,6 +12,10 @@ .app-images { height: 400px; } + +.org_logo { + height: 200px; +} @@ -165,14 +169,29 @@ -
Have questions? Email us at casa@rubyforgood.org
+Have questions? Email us at casa@rubyforgood.org
+