@@ -23,11 +23,11 @@ def prepare_sections(sections, logout:)
2323
2424 slug = section [ :slug ] . to_s
2525 item = case section [ :type ] &.to_sym
26- when :content then add_content_section ( slug , section )
27- when :page then add_page_section ( slug , section )
28- when :resource then add_resource_section ( slug , section )
29- when :url then add_url_section ( slug , section )
30- end
26+ when :content then add_content_section ( slug , section )
27+ when :page then add_page_section ( slug , section )
28+ when :resource then add_resource_section ( slug , section )
29+ when :url then add_url_section ( slug , section )
30+ end
3131 list << item if item
3232 end
3333 navbar << logout if logout
@@ -36,12 +36,12 @@ def prepare_sections(sections, logout:)
3636 private
3737
3838 def add_content_section ( slug , section )
39- pages [ slug ] = { class : settings . content_page , content : section [ :content ] , widgets : section [ :widgets ] }
39+ pages [ slug ] = { class : settings . content_page , content : section [ :content ] , widgets : section [ :widgets ] }
4040 TinyAdmin ::Section . new ( name : section [ :name ] , slug : slug )
4141 end
4242
4343 def add_page_section ( slug , section )
44- pages [ slug ] = { class : to_class ( section [ :page ] ) }
44+ pages [ slug ] = { class : to_class ( section [ :page ] ) }
4545 TinyAdmin ::Section . new ( name : section [ :name ] , slug : slug )
4646 end
4747
0 commit comments