Exclude haml-lint
This commit is contained in:
parent
819d55366c
commit
9d2d1c0e5a
5 changed files with 19 additions and 15 deletions
|
|
@ -89,8 +89,12 @@ linters:
|
||||||
- "app/views/admin/schedules/show.html.haml"
|
- "app/views/admin/schedules/show.html.haml"
|
||||||
- "app/views/admin/splashpages/_form.html.haml"
|
- "app/views/admin/splashpages/_form.html.haml"
|
||||||
- "app/views/admin/splashpages/show.html.haml"
|
- "app/views/admin/splashpages/show.html.haml"
|
||||||
- "app/views/admin/sponsors/_form.html.haml"
|
- "app/views/admin/sponsors/_carrier_fields.html.haml"
|
||||||
|
- "pp/views/admin/sponsors/_swag_fields.html.haml"
|
||||||
|
- "app/views/admin/sponsors/edit.html.haml"
|
||||||
- "app/views/admin/sponsors/index.html.haml"
|
- "app/views/admin/sponsors/index.html.haml"
|
||||||
|
- "app/views/admin/sponsors/new.html.haml"
|
||||||
|
- "app/views/admin/sponsors/show.html.haml"
|
||||||
- "app/views/admin/sponsorship_levels/_form.html.haml"
|
- "app/views/admin/sponsorship_levels/_form.html.haml"
|
||||||
- "app/views/admin/sponsorship_levels/index.html.haml"
|
- "app/views/admin/sponsorship_levels/index.html.haml"
|
||||||
- "app/views/admin/targets/_form.html.haml"
|
- "app/views/admin/targets/_form.html.haml"
|
||||||
|
|
@ -365,6 +369,7 @@ linters:
|
||||||
- "app/views/admin/emails/index.html.haml"
|
- "app/views/admin/emails/index.html.haml"
|
||||||
- "app/views/admin/events/show.html.haml"
|
- "app/views/admin/events/show.html.haml"
|
||||||
- "app/views/admin/reports/index.html.haml"
|
- "app/views/admin/reports/index.html.haml"
|
||||||
|
- "app/views/admin/sponsors/index.html.haml"
|
||||||
- "app/views/admin/users/show.html.haml"
|
- "app/views/admin/users/show.html.haml"
|
||||||
- "app/views/admin/venues/_form.html.haml"
|
- "app/views/admin/venues/_form.html.haml"
|
||||||
- "app/views/conferences/index.html.haml"
|
- "app/views/conferences/index.html.haml"
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,12 @@
|
||||||
on_text: 'Yes',
|
on_text: 'Yes',
|
||||||
off_text: 'No' }
|
off_text: 'No' }
|
||||||
- @sponsor.swag.each_with_index do |(key, value), index|
|
- @sponsor.swag.each_with_index do |(key, value), index|
|
||||||
=render partial: 'swag_fields', locals: {f: f, index: index, type_value: value[:type].to_s, quantity_value: value[:quantity].to_i}
|
= render partial: 'swag_fields', locals: {f: f, index: index, type_value: value[:type].to_s, quantity_value: value[:quantity].to_i}
|
||||||
=render partial: 'swag_fields', locals: {f: f, index: @sponsor.swag_index, type_value: nil, quantity_value: nil}
|
= render partial: 'swag_fields', locals: {f: f, index: @sponsor.swag_index, type_value: nil, quantity_value: nil}
|
||||||
|
|
||||||
- @sponsor.swag_transportation.each_with_index do |(key, value), index|
|
- @sponsor.swag_transportation.each_with_index do |(key, value), index|
|
||||||
=render partial: 'carrier_fields', locals: {f: f, index: index, name_value: value[:carrier_name].to_s, tracking_value: value[:tracking_number].to_s, boxes_value: value[:boxes]}
|
= render partial: 'carrier_fields', locals: {f: f, index: index, name_value: value[:carrier_name].to_s, tracking_value: value[:tracking_number].to_s, boxes_value: value[:boxes]}
|
||||||
=render partial: 'carrier_fields', locals: {f: f, index: @sponsor.carrier_index, name_value: nil, tracking_value: nil, boxes_value: nil}
|
= render partial: 'carrier_fields', locals: {f: f, index: @sponsor.carrier_index, name_value: nil, tracking_value: nil, boxes_value: nil}
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8
|
.col-md-8
|
||||||
|
|
|
||||||
|
|
@ -9,18 +9,18 @@
|
||||||
%div{ role: 'tabpanel' }
|
%div{ role: 'tabpanel' }
|
||||||
%ul.nav.nav-tabs
|
%ul.nav.nav-tabs
|
||||||
%li.active
|
%li.active
|
||||||
%a{'data-toggle' => 'tab', href: '#sponsorship', role: 'tab'} Sponsorship
|
%a{ 'data-toggle' => 'tab', href: '#sponsorship', role: 'tab' } Sponsorship
|
||||||
%li
|
%li
|
||||||
%a{'data-toggle' => 'tab', href: '#swags', role: 'tab'} Swags
|
%a{ 'data-toggle' => 'tab', href: '#swags', role: 'tab' } Swags
|
||||||
%li
|
%li
|
||||||
%a{'data-toggle' => 'tab', href: '#unconfirmed', role: 'tab'} Unconfirmed
|
%a{'data-toggle' => 'tab', href: '#unconfirmed', role: 'tab' } Unconfirmed
|
||||||
|
|
||||||
.tab-content
|
.tab-content
|
||||||
#sponsorship.tab-pane.active
|
#sponsorship.tab-pane.active
|
||||||
- if @conference.sponsors.confirmed.any?
|
- if @conference.sponsors.confirmed.any?
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%table.table.table-hover#sponsorship
|
%table.table.table-hover
|
||||||
%thead
|
%thead
|
||||||
%th Logo
|
%th Logo
|
||||||
%th Name
|
%th Name
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
- if @conference.sponsors.confirmed.any?
|
- if @conference.sponsors.confirmed.any?
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%table.table.table-hover#swags
|
%table.table.table-hover
|
||||||
%thead
|
%thead
|
||||||
%th Logo
|
%th Logo
|
||||||
%th Name
|
%th Name
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
- if @conference.sponsors.unconfirmed.any?
|
- if @conference.sponsors.unconfirmed.any?
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%table.table.table-hover#unconfirmed
|
%table.table.table-hover#sponsors
|
||||||
%thead
|
%thead
|
||||||
%th Logo
|
%th Logo
|
||||||
%th Name
|
%th Name
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.page-header
|
.page-header
|
||||||
%h1
|
%h1
|
||||||
-if @sponsor.new_record?
|
New
|
||||||
New
|
|
||||||
Sponsor
|
Sponsor
|
||||||
= @sponsor.name
|
= @sponsor.name
|
||||||
.row
|
.row
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ feature Sponsor do
|
||||||
|
|
||||||
expect(flash).to eq('Sponsor successfully created.')
|
expect(flash).to eq('Sponsor successfully created.')
|
||||||
click_link 'Unconfirmed'
|
click_link 'Unconfirmed'
|
||||||
within('table#unconfirmed') do
|
within('table#sponsors') do
|
||||||
expect(page.has_content?('SUSE')).to be true
|
expect(page.has_content?('SUSE')).to be true
|
||||||
expect(page.has_content?('The original provider')).to be true
|
expect(page.has_content?('The original provider')).to be true
|
||||||
expect(page.has_content?('http://www.suse.com')).to be true
|
expect(page.has_content?('http://www.suse.com')).to be true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue