Exclude haml-lint

This commit is contained in:
nasia 2017-08-28 22:10:08 +03:00
parent 819d55366c
commit 9d2d1c0e5a
5 changed files with 19 additions and 15 deletions

View file

@ -23,12 +23,12 @@
on_text: 'Yes',
off_text: 'No' }
- @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: @sponsor.swag_index, type_value: nil, quantity_value: nil}
= 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}
- @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: @sponsor.carrier_index, name_value: nil, tracking_value: nil, boxes_value: nil}
= 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}
.row
.col-md-8

View file

@ -9,18 +9,18 @@
%div{ role: 'tabpanel' }
%ul.nav.nav-tabs
%li.active
%a{'data-toggle' => 'tab', href: '#sponsorship', role: 'tab'} Sponsorship
%a{ 'data-toggle' => 'tab', href: '#sponsorship', role: 'tab' } Sponsorship
%li
%a{'data-toggle' => 'tab', href: '#swags', role: 'tab'} Swags
%a{ 'data-toggle' => 'tab', href: '#swags', role: 'tab' } Swags
%li
%a{'data-toggle' => 'tab', href: '#unconfirmed', role: 'tab'} Unconfirmed
%a{'data-toggle' => 'tab', href: '#unconfirmed', role: 'tab' } Unconfirmed
.tab-content
#sponsorship.tab-pane.active
- if @conference.sponsors.confirmed.any?
.row
.col-md-12
%table.table.table-hover#sponsorship
%table.table.table-hover
%thead
%th Logo
%th Name
@ -36,7 +36,7 @@
%td
= link_to sponsor.name, admin_conference_sponsor_path(@conference.short_title, sponsor)
%td
= sponsor.amount
= sponsor.amount
%td
- if sponsor.payed
%span.fa.fa-check.text-success
@ -62,7 +62,7 @@
- if @conference.sponsors.confirmed.any?
.row
.col-md-12
%table.table.table-hover#swags
%table.table.table-hover
%thead
%th Logo
%th Name
@ -123,7 +123,7 @@
- if @conference.sponsors.unconfirmed.any?
.row
.col-md-12
%table.table.table-hover#unconfirmed
%table.table.table-hover#sponsors
%thead
%th Logo
%th Name

View file

@ -2,8 +2,7 @@
.col-md-12
.page-header
%h1
-if @sponsor.new_record?
New
New
Sponsor
= @sponsor.name
.row