Skip to content
Browse files

fix layout

  • Loading branch information...
1 parent e065300 commit 69c4af3803cae70cd29bcf367ea75d0a3bfcd7b6 @barthezslavik committed Dec 23, 2012
Showing with 13 additions and 10 deletions.
  1. +4 −0 app/assets/stylesheets/main.css.sass
  2. +9 −10 app/views/samples/index.html.haml
View
4 app/assets/stylesheets/main.css.sass
@@ -25,3 +25,7 @@ p, a
pre
background: #D7E7EF
width: 900px
+
+.block
+ width: 400px
+ float: left
View
19 app/views/samples/index.html.haml
@@ -1,12 +1,11 @@
-%table
- - @samples.each do |sample|
- %tr
- %td
- - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
- = link_to screenshot, sample
- %td= link_to sample.name, sample, data:{ push: true }
- /= link_to 'Edit', edit_sample_path(sample)
- /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
+- @samples.each do |sample|
+ .block
+ = link_to sample.name, sample, data:{ push: true }
+ %br
+ - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
+ = link_to screenshot, sample
+ /= link_to 'Edit', edit_sample_path(sample)
+ /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
-%br
+%br.both
= link_to 'Add Sample', new_sample_path

0 comments on commit 69c4af3

Please sign in to comment.
Something went wrong with that request. Please try again.