Add widget cards to homepage

This commit is contained in:
rgarcia
2018-05-22 19:56:40 +02:00
committed by decabeza
parent 85c08da7a6
commit 664e77305c
21 changed files with 412 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
class Admin::HomepageController < Admin::BaseController
def show
load_cards
end
private
@@ -9,4 +10,9 @@ class Admin::HomepageController < Admin::BaseController
settings = /feature.homepage.widgets/
@settings = Setting.select {|setting| setting.key =~ /#{settings}/ }
end
def load_cards
@cards = ::Widget::Card.body
end
end