1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-23 01:23:24 -05:00

Louis | Improve label formatting

This commit is contained in:
Loos 2014-09-19 17:06:44 -05:00
parent 585051969d
commit 8bdda37f4c
3 changed files with 10 additions and 4 deletions

View File

@ -11,12 +11,12 @@
width: 100%;
border-bottom: 5px solid black;
}
.log-number{
.bike-specs{
margin-top: 5px;
}
.desc {
margin: 10px;
height: 250px;
height: 235px;
border: 2px dotted black;
}
}

View File

@ -7,6 +7,7 @@ class Bike < ActiveRecord::Base
validates :serial_number, presence: true
def name
[self.seat_tube_size.to_s, self.brand, self.model] * ' '
self.brand + ' ' + self.model
end
end

View File

@ -7,7 +7,10 @@
=' ' + bike.name
%br
.horizontal-line
.log-number= 'Log Number: ' + bike.log_number.to_s
.bike-specs
= "Top Tube Size: " + bike.top_tube_size.to_s
%br
= "Seat Tube Size: " + bike.seat_tube_size.to_s
.row
.col-xs-6
.desc
@ -17,3 +20,5 @@
.desc
.strong New Parts:
=bike.new_parts
.row
.col-xs-6.col-xs-offset-6.small= "Log Number: " + bike.log_number.to_s