mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 19:45:08 +00:00
* add flavortown scenario and channels * add special app support for SSO grid * add flavortown app card * downcase * add onboarding scenario to program * cooked * RALSEI ENGINE IS A REAL ENGINE NOW
26 lines
575 B
Ruby
26 lines
575 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Components::SSOAppGrid < Components::Base
|
|
def initialize(apps:, special_apps: [])
|
|
@apps = apps
|
|
@special_apps = special_apps
|
|
end
|
|
|
|
def view_template
|
|
div(class: "sso-app-grid") do
|
|
h2 { t "home.apps.heading" }
|
|
|
|
all_apps = @apps + @special_apps.map(&:to_h)
|
|
|
|
if all_apps.any?
|
|
div(class: "grid") do
|
|
all_apps.each do |app|
|
|
render Components::AppCard.new(app: app)
|
|
end
|
|
end
|
|
else
|
|
p(class: "no-apps") { t "home.apps.none" }
|
|
end
|
|
end
|
|
end
|
|
end
|