public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Improve friends page (Ben Hudson).
Tim Morgan (author)
Wed Oct 15 17:24:55 -0700 2008
commit  6c4892688aeda63c8e9c6568c383c11679214383
tree    6c772df85060843fa2e68553f96138a5d3f1a7c0
parent  4fb58ead0703a73fe5b377f79b29c83d7f5ba10d
...
50
51
52
53
 
 
 
 
54
55
56
57
58
59
 
60
61
 
...
50
51
52
 
53
54
55
56
57
 
 
 
 
 
58
59
60
61
0
@@ -50,12 +50,12 @@
0
   </ul>
0
   
0
   <%= sortable_element 'friends', :url => reorder_person_friends_path(@person), :handle => 'handle' %>
0
-<% else %>
0
+
0
+
0
+<% else %><p class="highlight">Nobody yet!</h2><% end %>
0
+<% if me? %>
0
   <p>
0
-    Nobody yet!
0
-    <% if @logged_in == @person %>
0
-      You can find your friends by browsing
0
-      <%= link_to 'the directory', new_search_path(:search_friends => true) %>.
0
-    <% end %>
0
+    <%= link_to image_tag('add_small.gif', :alt => 'add person', :class => 'icon') + ' Search for friends in the directory.', new_search_path(:search_friends => true) %></p>
0
   </p>
0
 <% end %>
0
+

Comments