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
Don't use people_names_and_ids in group people partial (fix bug with missing 
people for non-admins).
Tim Morgan (author)
Wed Oct 15 06:14:00 -0700 2008
commit  42ae62d5b7c64246d7bc495cf4b87e2811f3b099
tree    e62dc1c731de68c88aa70e2020871d7c2bf1a2d2
parent  c30a91d1b0872668341bd9a8edc4c3a781760bc8
...
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
...
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
0
@@ -1,29 +1,29 @@
0
 <table>
0
-    <% @group.people_names_and_ids.each do |person| %>
0
-      <% if person and @logged_in.sees? person %>
0
-      <tr>
0
-        <td>
0
-          <a href="<%= url_for person %>">
0
-            <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
0
-          </a>
0
-        </td>
0
-        <td class="person">
0
-          <%= link_to h(person.name), person %> 
0
-            <% if @group.admin?(person, true) %><br />(admin)<% end %>
0
-      <% if @logged_in.can_edit?(@group) and (person.email.to_s.empty? or !@group.get_options_for(person).get_email?) %>
0
-        <em><br />(no mail)</em>
0
-      <% end %>
0
-      
0
-          <% if person.birthday_soon? %><span class="small">
0
-            <br/>
0
-            <%= image_tag('birthday.png', :alt => 'Birthday', :class => 'icon') %>
0
-            <%= person.birthday.strftime('%m/%d') %></span>
0
-          <% end %>
0
-
0
-
0
-        </span>
0
-        </td>
0
-      </tr>
0
+    <% @group.people.each do |person| %>
0
+      <% if person and @logged_in.can_see?(person) %>
0
+        <tr>
0
+          <td>
0
+            <a href="<%= url_for person %>">
0
+              <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
0
+            </a>
0
+          </td>
0
+          <td class="person">
0
+            <%= link_to h(person.name), person %> 
0
+              <% if @group.admin?(person, true) %>
0
+                <br/>(admin)
0
+              <% end %>
0
+              <% if @logged_in.can_edit?(@group) and (person.email.to_s.empty? or !@group.get_options_for(person).get_email?) %>
0
+                <br/><em>(no mail)</em>
0
+              <% end %>
0
+              <% if person.birthday_soon? %>
0
+                <br/>
0
+                <span class="small">
0
+                  <%= image_tag('birthday.png', :alt => 'Birthday', :class => 'icon') %>
0
+                  <%= person.birthday.strftime('%m/%d') %>
0
+                </span>
0
+              <% end %>
0
+          </td>
0
+        </tr>
0
       <% end %>
0
     <% end %>
0
 </table>

Comments