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:
Blogs div-ified
Michael Hartl (author)
Fri Apr 04 16:43:43 -0700 2008
commit  ceddb08c6b4cbd14a34583d9387e9c7038cca002
tree    7a0e07a30dedcc8bdbd905e997d61747900dcf7c
parent  0e3d4e37623f4cd921f4354792ead51b520872b8
...
1
2
3
4
5
 
 
6
7
8
 
 
9
10
11
12
13
14
15
16
17
18
 
 
19
20
21
22
23
24
 
 
 
 
 
25
26
27
28
 
29
30
 
 
31
32
 
33
34
35
36
 
 
 
37
38
 
39
40
41
...
1
2
3
 
 
4
5
6
 
 
7
8
9
10
11
12
13
14
 
 
 
 
15
16
17
18
 
 
 
 
19
20
21
22
23
24
25
26
 
27
28
 
29
30
31
 
32
33
 
 
 
34
35
36
37
 
38
39
40
41
0
@@ -1,41 +1,41 @@
0
 <%- column_div :type => :primary do -%>
0
   
0
   <h1>Blog</h1>
0
- <table>
0
- <tr><th>Blog posts</th></tr>
0
+ <div class="blog section clear">
0
+ <div class="element">
0
     <%- @posts.each do |post| -%>
0
- <tr>
0
- <td><a name="post_<%= post.id %>"></a>
0
+ <div class="title">
0
+ <a name="post_<%= post.id %>"></a>
0
         <%= link_to sanitize(post.title), blog_post_path(@blog, post) %>
0
         <%- if current_person?(@blog.person) -%>
0
           | <%= link_to "Edit", edit_blog_post_path(@blog, post) %>
0
           | <%= link_to "Delete", blog_post_path(@blog, post),
0
                                   :method => :delete %>
0
         <%- end -%>
0
- </td>
0
- </tr>
0
- <tr>
0
- <td class="time">
0
+ </div>
0
+ <div class="time">
0
           Posted <%= time_ago_in_words(post.created_at) %> ago
0
           by <%= link_to @blog.person.name, @blog.person %>
0
- </td>
0
- </tr>
0
- <tr><td><%= sanitize post.body %></td></tr>
0
- <tr><td>
0
+ </div>
0
+ <div class="body">
0
+ <%= sanitize post.body %>
0
+ </div>
0
+ <div class="comments">
0
       <%- n = post.comments.count -%>
0
       <%= link_to pluralize(n, "comment"),
0
                   blog_post_path(@blog, post, :comments => n) %>
0
- </td></tr>
0
+ </div>
0
     <%- end -%>
0
- </table>
0
+ </div>
0
+ </div>
0
 
0
-<h3>Add new post</h3>
0
+ <h3>Add new post</h3>
0
 
0
-<%= render :partial => 'blog_form',
0
- :locals => { :url => blog_posts_path(@blog),
0
- :method => :post } %>
0
+ <%= render :partial => 'blog_form',
0
+ :locals => { :url => blog_posts_path(@blog),
0
+ :method => :post } %>
0
 
0
-<%= link_to 'Back', blog_posts_path(@blog) %>
0
+ <%= link_to 'Back', blog_posts_path(@blog) %>
0
 
0
 <%- end -%>
0
 

Comments

    No one has commented yet.