Fix haml lint

This commit is contained in:
Clement Ho 2017-06-05 20:49:30 -05:00
parent 12162339b4
commit d14acc3fd5

View file

@ -5,20 +5,20 @@
%ul.nav-links.issues-state-filters
%li{ class: active_when(params[:state] == 'opened') }>
%div.div-btn.state-opened{ id: 'state-opened', title: "Filter by #{page_context_word} that are currently opened.", role: 'button' }
.div-btn.state-opened{ id: 'state-opened', title: "Filter by #{page_context_word} that are currently opened.", role: 'button' }
#{issuables_state_counter_text(type, :opened)}
- if type == :merge_requests
%li{ class: active_when(params[:state] == 'merged') }>
%div.div-btn.state-merged{ id: 'state-merged', title: 'Filter by merge requests that are currently merged.', role: 'button' }
.div-btn.state-merged{ id: 'state-merged', title: 'Filter by merge requests that are currently merged.', role: 'button' }
#{issuables_state_counter_text(type, :merged)}
- closed_title = 'Filter by merge requests that are currently closed and unmerged.'
%li{ class: active_when(params[:state] == 'closed') }>
%div.div-btn.state-closed{ id: 'state-closed', title: closed_title, role: 'button' }
.div-btn.state-closed{ id: 'state-closed', title: closed_title, role: 'button' }
#{issuables_state_counter_text(type, :closed)}
%li{ class: active_when(params[:state] == 'all') }>
%div.div-btn.state-all{ id: 'state-all', title: "Show all #{page_context_word}.", role: 'button' }
.div-btn.state-all{ id: 'state-all', title: "Show all #{page_context_word}.", role: 'button' }
#{issuables_state_counter_text(type, :all)}