filter pages by type
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
- content_for( :merged_menu ) do
|
||||
.text-xl.font-bold.text-gray-900
|
||||
All Pages
|
||||
= link_to( "All" , merged.pages_path(type: '') , class: "p-2 px-4 border border-gray-200 font-bold rounded-lg hover:bg-sky-100 #{params[:type].blank? ? 'bg-blue-200':''}")
|
||||
- @page_styles.each do |style|
|
||||
= link_to( "Only #{style.type.capitalize}s" , merged.pages_path(type: style.type) , class: "p-2 px-4 border border-gray-200 font-bold rounded-lg hover:bg-sky-100 #{(params[:type] == style.type) ? 'bg-blue-200':''}")
|
||||
|
||||
= render "layouts/merged_header"
|
||||
.overflow-hidden.overflow-x-auto.rounded-lg.border.border-gray-200.m-20
|
||||
|
9
app/views/merged/view/_section_text.haml
Normal file
9
app/views/merged/view/_section_text.haml
Normal file
@ -0,0 +1,9 @@
|
||||
%section{ options(section , :background , :margin)}
|
||||
.px-4.py-16.mx-20{options(section , :text_align , :color)}
|
||||
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||
= section.header
|
||||
-if section.has_option?("subheader")
|
||||
%h4.text-xl.mt-10.md:text-2xl
|
||||
= section.option("subheader")
|
||||
.prose.mt-4.text-lg.pt-10
|
||||
= markdown(section)
|
Reference in New Issue
Block a user