= render partial: 'headline'

- if session[:ab_section_count] == 1
	= render partial: 'drafts', 
		locals: {title: "Toimenpide- ja Lakiehdotukset sekä Luonnokset", section: "proposal_and_draft",
				 items: @proposals_and_drafts, items_counts: @proposal_and_drafts_counts, item_counter: 0 }
- else # session[:ab_section_count] == 2
	= render partial: 'drafts', 
		locals: {title: "Toimenpide- ja Lakiehdotukset", items: @proposals, items_counts: @proposals_counts, item_counter: 0, section: "proposal" }
	= render partial: 'drafts', 
		locals: {title: "Luonnokset", items: @drafts, items_counts: @drafts_counts, item_counter: 3,  section: "draft" }

= render partial: 'ideas'
= render partial: 'news'
= render partial: 'newsletter'

= render partial: 'headline'

- if session[:ab_section_count] == 1
	= render partial: 'drafts', 
		locals: {title: "Toimenpide- ja Lakiehdotukset sekä Luonnokset", section: "proposal_and_draft",
				 items: @proposals_and_drafts, items_counts: @proposal_and_drafts_counts, item_counter: 0 }
- else # session[:ab_section_count] == 2
	= render partial: 'drafts', 
		locals: {title: "Toimenpide- ja Lakiehdotukset", items: @proposals, items_counts: @proposals_counts, item_counter: 0, section: "proposal" }
	= render partial: 'drafts', 
		locals: {title: "Luonnokset", items: @drafts, items_counts: @draft_counts, item_counter: 3,  section: "draft" }

= render partial: 'ideas'
= render partial: 'news'
= render partial: 'newsletter'

Fix wrong variable passed to drafts partial
Fix wrong variable passed to drafts partial
