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
Blog post partial
Michael Hartl (author)
Fri Apr 04 16:46:33 -0700 2008
commit  3c4daf1f3e647fa47e7b976318f61fff60d7896b
tree    20d2896990197048acaa7bc550d7d057f9a55229
parent  ceddb08c6b4cbd14a34583d9387e9c7038cca002
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@
0
       <%- column_div :id => "logo", :order => "first last",
0
                      :width => FULL do -%>
0
         <h1><%= link_to "insoshi", '/' %></h1>
0
- <h2>social software</h2>
0
+ <h2>insoshi social software</h2>
0
       <%- end -%>
0
       <%- column_div :type => :full do -%>
0
         <div id="navcontainer">
...
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
...
2
3
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
6
7
 
8
9
10
11
0
@@ -2,34 +2,10 @@
0
   
0
   <h1>Blog</h1>
0
   <div class="blog section clear">
0
- <div class="element">
0
- <%- @posts.each do |post| -%>
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
- </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
- </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
- </div>
0
- <%- end -%>
0
- </div>
0
+ <%= render :partial => 'blog_post', :collection => @posts %>
0
   </div>
0
 
0
- <h3>Add new post</h3>
0
+ <h2>Add new post</h2>
0
 
0
   <%= render :partial => 'blog_form',
0
              :locals => { :url => blog_posts_path(@blog),

Comments

    No one has commented yet.