@@ -40,8 +40,13 @@ def user_content_cards
4040 # -----------------------------
4141 def reference_cards
4242 [
43- model_card ( :categories , icon : "🗂️" , intensity : 100 ) ,
44- custom_card ( "Service populations" , authenticated_root_path , icon : "🏭" , color : :lime , intensity : 100 ) ,
43+ model_card ( :categories , icon : "🗂️" ,
44+ intensity : 100 ,
45+ params : { published_search : true } ) ,
46+ model_card ( :sectors , icon : "🏭" ,
47+ intensity : 100 ,
48+ title : "Service populations" ,
49+ params : { published_search : true } ) ,
4550 custom_card ( "Project statuses" , authenticated_root_path , icon : "🧮" , color : :emerald , intensity : 100 ) ,
4651 custom_card ( "Windows types" , windows_types_path , icon : "🪟" ) ,
4752 ]
@@ -50,10 +55,10 @@ def reference_cards
5055 # ============================================================
5156 # CARD BUILDERS
5257 # ============================================================
53- def model_card ( key , title : nil , icon :, intensity : 50 )
58+ def model_card ( key , title : nil , icon :, intensity : 50 , params : { } )
5459 {
5560 title : title || key . to_s . humanize ,
56- path : polymorphic_path ( key . to_s . classify . constantize ) ,
61+ path : polymorphic_path ( key . to_s . classify . constantize , params ) ,
5762 icon : icon ,
5863 bg_color : DomainTheme . bg_class_for ( key , intensity : intensity ) ,
5964 hover_bg_color : DomainTheme . bg_class_for ( key , intensity : intensity == 50 ? 100 : intensity + 100 , hover : true ) ,
0 commit comments