Permalink
Browse files

better layout for stations

Signed-off-by: evizitei <ethan.vizitei@gmail.com>
  • Loading branch information...
1 parent a9f1be3 commit c26f6cbb3f99643de72f7ac09a934869e08ca72c @evizitei committed Oct 22, 2010
Showing with 13 additions and 6 deletions.
  1. +13 −6 app/views/dashboard/show.html.haml
@@ -2,21 +2,28 @@
setTimeout("window.location.reload(true)",5000);
-if current_user.district
%h1= "Station Staffing for #{current_user.district.name}"
- -current_user.district.stations.each do |station|
- .station{:id=>"station_#{station.id}",:data_tag=>station.name}
- .station_header= station.name
- .station_staff
- -station.staffing_records.current.each do |sr|
- .staff_record= sr.tag.name
+ -current_user.district.stations.in_groups_of(4).each do |stations|
+ .station_row
+ -stations.each do |station|
+ .station{:id=>"station_#{station.id}",:data_tag=>station.name}
+ .station_header= station.name
+ .station_staff
+ -station.staffing_records.current.each do |sr|
+ .staff_record= sr.tag.name
-else
No district for this user!
%style
:sass
+ .station_row
+ :width 900px
+ :min-height 70px
.station
:border 1px solid black
:width 200px
+ :margin-right 10px
:background-color yellow
+ :float left
.station_header
:font-weight bold
:font-size 12pt

0 comments on commit c26f6cb

Please sign in to comment.