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
Search Repo:
Fixed comment styling & clearfix property
Michael Hartl (author)
Mon Apr 07 16:20:24 -0700 2008
commit  8df8c88371daafeac17fca660a7dcfb9a12e7b19
tree    1ca15e64b30d508ab3813fd74035ada838230e22
parent  9f31d14c1652c0ed51a21282757b5bac66408fc7
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<div class="message_preview element clear">
0
+<div class="message_preview element clearfix">
0
   <div class="column first span-1">
0
     <%= image_link message.sender %>
0
   </div>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<div class="message element clear <%= rowclass = cycle("odd", "even") %>">
0
+<div class="message element clearfix <%= rowclass = cycle("odd", "even") %>">
0
   <div class="column first span-1">
0
     <%- if !message.read? -%>
0
       <%= image_tag("new.png") %>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<div class="wall_comment element clear">
0
+<div class="wall_comment element clearfix">
0
   <div class="column span-3 first">
0
     <%= image_link(comment.commenter, :image => :thumbnail) %>
0
   </div>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<div class="person element clear">
0
+<div class="person element clearfix">
0
   <div class="icon column first span-1">
0
     <%= image_link person %>
0
   </div>
...
1
2
3
4
 
 
 
 
 
5
6
7
 
8
9
 
10
11
12
...
14
15
16
17
18
19
 
 
20
...
 
 
 
 
1
2
3
4
5
6
7
 
8
9
 
10
11
12
13
...
15
16
17
 
 
18
19
20
21
0
@@ -1,12 +1,13 @@
0
-<tr>
0
- <td><%= link_to image_tag(comment.commenter.thumbnail),
0
- comment.commenter %></td>
0
- <td class="content">
0
+<div class="comment element clearfix">
0
+ <div class="column first span-3">
0
+ <%= image_link comment.commenter, :image => :thumbnail %>
0
+ </div>
0
+ <div class="wrapper column span-<%= LARGER_COLUMN-3 %> last">
0
     <div class="header">
0
       <%= time_ago_in_words(comment.created_at) %> ago
0
- <%= link_to comment.commenter.name, comment.commenter %> said
0
+ <%= person_link comment.commenter %> said
0
     </div>
0
- <div class="body">
0
+ <div class="content">
0
       <%= sanitize comment.body %>
0
       <%- if current_person?(comment.post.blog.person) -%>
0
       <br />
0
@@ -14,5 +15,5 @@
0
                             :method => :delete %>
0
       <%- end -%>
0
     </div>
0
- </td>
0
-</tr>
0
\ No newline at end of file
0
+ </div>
0
+</div>
0
\ No newline at end of file
...
17
18
19
20
21
22
 
23
24
25
26
27
...
17
18
19
 
 
 
20
21
 
22
23
24
0
@@ -17,11 +17,8 @@ by <%= link_to @blog.person.name, @blog.person %>
0
 </div>
0
 
0
 <%- unless @post.comments.empty? -%>
0
-<div class="comment">
0
-<table>
0
- <tr><th colspan="2">Comments</th></tr>
0
+<div class="section">
0
   <%= render :partial => 'comment', :collection => @post.comments %>
0
-</table>
0
 </div>
0
 <%- end -%>
0
 
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 <%# The activity shouldn't be nil, but we're wearing a belt and suspenders. %>
0
 <%- unless activity.item.nil? -%>
0
- <div class="activity element clear">
0
+ <div class="activity element clearfix">
0
     <div class="icon column first span-1">
0
       <%# This will probably be a feed icon instead of a person icon %>
0
       <%= image_link activity.person %>
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 <%- unless minifeed_item.item.nil? -%>
0
-<div class="minifeed_item element clear">
0
+<div class="minifeed_item element clearfix">
0
   <div class="minifeed_body span-<%= SMALLER_COLUMN-1 %>">
0
     <%= minifeed_message minifeed_item %>
0
   </div>
...
125
126
127
128
129
 
 
 
...
125
126
127
 
128
129
130
131
0
@@ -125,4 +125,6 @@ div#search {
0
 
0
 .error a {
0
   text-decoration: underline;
0
-}
0
\ No newline at end of file
0
+}
0
+
0
+/* Elements (like comments, posts, etc.) */

Comments

    No one has commented yet.