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
Only display 'write a post' for current person
Michael Hartl (author)
Fri Apr 25 12:22:21 -0700 2008
commit  8f85d368c61e5f73a4724c5e211a74491537bbe4
tree    fc75aef308f345e913bbfd90af405ee9234415b2
parent  a66f830017ff757e60d60cbd12d8157e7ed6e68e
...
4
5
6
7
 
 
 
8
9
10
...
4
5
6
 
7
8
9
10
11
12
0
@@ -4,7 +4,9 @@
0
   <%- if @posts.empty? -%>
0
     <h3 class="blankslate">
0
       No posts yet!
0
- <%= link_to "Write a post", new_blog_post_path(@blog) %>
0
+ <%- if current_person?(@blog.person) -%>
0
+ <%= link_to "Write a post", new_blog_post_path(@blog) %>
0
+ <%- end -%>
0
     </h3>
0
   <%- else -%>
0
     <ul class="list blog full">

Comments

    No one has commented yet.