Commit 3395be5f authored by Oliver Feldt's avatar Oliver Feldt
Browse files

Made radio table use fixed-width columns

parent 5933d981
......@@ -12,15 +12,15 @@ html lang="en"
script id="radio-template" type="text/x-handlebars-template"
tr data-id="{{radio.id}}" data-name="{{radio.name}}" data-last_scanned_at="{{radio.last_scanned_at}}" data-angel="{{current_checkout.angel}}" data-checked_out_at="{{current_checkout.checked_out_at}}" class="{{checkout_state current_checkout}}"
td
td.col-xs-2
|{{radio.name}}
td.previous_angel
td.col-xs-2.previous_angel
|{{previous_checkout.angel}}
td.current_angel
td.col-xs-2.current_angel
|{{current_checkout.angel}}
td.last_scanned_at
td.col-xs-3.last_scanned_at
|{{radio.last_scanned_at}}
td.checked_out_at
td.col-xs-3.checked_out_at
|{{current_checkout.checked_out_at}}
script id="checkout-template" type="text/x-handlebars-template"
......@@ -143,11 +143,11 @@ html lang="en"
- previous_checkout = radio.checkouts.first(:checked_in_at.not => nil, order: [ :checked_out_at.desc])
- current_checkout = radio.checkouts.first(checked_in_at: nil, order: [ :checked_out_at.desc ])
tr data-id=radio.id data-name=radio.name data-last_scanned_at=radio.last_scanned_at data-angel=(current_checkout.angel if current_checkout) class=(current_checkout && !current_checkout.checked_in_at ? "info" : "success") data-checked_out_at=(current_checkout.checked_out_at if current_checkout)
td= radio.name
td.previous_angel= previous_checkout.angel if previous_checkout
td.current_angel= current_checkout.angel if current_checkout
td.last_scanned_at
td.checked_out_at
td.col-xs-2= radio.name
td.col-xs-2= previous_angel= previous_checkout.angel if previous_checkout
td.col-xs-2.current_angel= current_checkout.angel if current_checkout
td.col-xs-3.last_scanned_at
td.col-xs-3.checked_out_at
script src="javascripts/jquery.min.js"
script src="javascripts/moment.min.js"
script src="javascripts/handlebars-v2.0.0.js"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment