Skip to content

Commit

Permalink
with borders
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed May 20, 2013
1 parent 01d8ece commit 797ca42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/hacks/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.hack_row
- row.each do |hack|
%article.hack{:class=> row.last == hack ? "last" : ""}
.screengrab
.screengrab{:style=>"background-color:hsl(#{hack.hue},50%,75%); border-top: 8px solid hsl(#{hack.hue},50%,75%);"}
- if hack.url && grab = @screengrabs.select {|s| s.slug == hack.url.sub("http://","").gsub(".", "-")}.first
%img{:src=>"/screengrabs/l/#{grab.slug}.jpg"}
%h1
Expand All @@ -37,4 +37,5 @@
%p
- if hack.meta[:hackday_url]
%a.hackday{:href=>hack.meta[:hackday_url]}= hack.meta[:hackday]
= hack.meta[:time]
- if hack.meta[:time]
= hack.meta[:time]

0 comments on commit 797ca42

Please sign in to comment.