public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Changed raster to use an H2
Michael Hartl (author)
Fri Apr 04 12:58:36 -0700 2008
commit  0784c7fb7fdfbe5539588865716f903242b1a265
tree    d24a2d540fc1aafde8b1afd989780084af4c9106
parent  4a5e41f25ed61058a7baa45cb18a3737d8e16fc5
...
1
2
3
 
4
5
6
7
8
 
 
9
10
11
12
13
14
15
...
1
2
 
3
4
5
6
7
 
8
9
10
 
 
 
11
12
13
0
@@ -1,15 +1,13 @@
0
 module DisplayHelper
0
   
0
- # Raster a list of elements.
0
+ # Raster an array of elements.
0
   def raster(list, options = {})
0
     columns = options[:num] || N_COLUMNS
0
     title = options[:title] || ""
0
     markaby do
0
- div.module do
0
+ div.section do
0
+ h2 { title } unless title.blank?
0
         table do
0
- tr do
0
- th(:colspan => columns) { title }
0
- end unless title.blank?
0
           list.collect_every(columns).each do |row|
0
             tr do
0
               row.each do |element|
...
1
2
3
4
 
 
5
6
7
8
 
9
10
11
...
1
2
 
 
3
4
5
6
7
 
8
9
10
11
0
@@ -1,11 +1,11 @@
0
 <%# The activity shouldn't be nil, but we're wearing a belt and suspenders. %>
0
 <%- unless activity.item.nil? -%>
0
- <div class="activity container">
0
- <div class="feed_icon first span-1">
0
+ <div class="activity container section">
0
+ <div class="feed_icon column first span-1">
0
       <%# This will probably be a feed icon instead of a person icon %>
0
       <%= image_link activity.person %>
0
     </div>
0
- <div class="activity_wrapper span-<%= LARGER_COLUMN-1 %>">
0
+ <div class="activity_wrapper column span-<%= LARGER_COLUMN-1 %>">
0
       <div class="activity_body">
0
         
0
         <%= feed_message activity %>

Comments

    No one has commented yet.