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
Make family appear more consistent with site; other appearance improvements (Ben 
Hudson).
Tim Morgan (author)
Wed Oct 15 06:14:00 -0700 2008
commit  372e6b9cdf2ad1f88b4307679db3c8c1e20bb0bf
tree    269e78ead74319b4a3e523884a3987b7927728c6
parent  259f8a6490a3efd86fe5e6a19b87ffc149aca567
...
5
6
7
 
 
 
 
 
 
 
 
8
9
10
11
12
 
13
14
15
...
36
37
38
39
 
40
41
42
...
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
20
21
22
23
...
44
45
46
 
47
48
49
50
0
@@ -5,11 +5,19 @@
0
   <% end %>
0
 <% end %>
0
 
0
+<% if @family.has_photo? %>
0
+  <% content_for :sidebar do %>
0
+    <%= render :partial => 'families/photo' %>
0
+  <% end %>
0
+<% end %>
0
+
0
+<%= render :partial => 'map' %>
0
+
0
 <h1><%=h @family.name %></h1>
0
 
0
 <p><%= number_to_phone @family.home_phone, :area_code => true %></p>
0
 
0
-<p><%= @family.pretty_address %></p>
0
+<p><%= @family.pretty_address %> <%= render :partial => 'families/map_link' %></p>
0
 
0
 <h2>People</h2>
0
 
0
@@ -36,7 +44,7 @@
0
   <p><em>No one in this family yet.</em></p>
0
 <% end %>
0
 
0
-<p><%= link_to image_tag('add_small.gif', :alt => 'add person', :class => 'icon') + ' Add a person to this family.',
0
+<p><%= link_to image_tag('add_small.gif', :alt => 'add person', :class => 'icon') + ' Create a new person in this family.',
0
   new_person_path(:family_id => @family) %></p>
0
   
0
 <%= javascript_include_tag 'dragdrop.js' %>
...
1
2
3
4
5
 
 
 
 
 
 
 
 
 
 
 
 
6
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
9
10
11
12
 
 
...
 
 
 
 
 
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
0
@@ -1,12 +1,30 @@
0
-<ul>
0
-  <% @group.people_names_and_ids.each do |person| %>
0
-    <% if person and @logged_in.sees? person %>
0
-      <%= render :partial => 'people/link', :locals => {:person => person} %>
0
-      <% if @group.admin?(person, true) %>(admin)<% end %>
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>no mail</em>
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
       <% end %>
0
-      <br/>
0
     <% end %>
0
-  <% end %>
0
-</ul>
0
+</table>
0
+
...
10
11
12
13
 
14
15
16
 
17
18
19
20
21
22
 
23
...
10
11
12
 
13
14
15
 
16
17
18
19
20
21
 
22
23
0
@@ -10,13 +10,13 @@
0
         </td>
0
         <td class="person">
0
           <%= link_to h(person.name), person %>
0
-          <% if person.birthday_soon? %>
0
+          <% if person.birthday_soon? %><span class="small">
0
             <br/>
0
             <%= image_tag('birthday.png', :alt => 'Birthday', :class => 'icon') %>
0
-            birthday <%= person.birthday.to_time.to_s :date rescue nil %>
0
+            <%= person.birthday.strftime('%m/%d') %></span>
0
           <% end %>
0
         </td>
0
       </tr>
0
     <% end %>
0
   </table>
0
-<% end %>
0
+<% end %>
0
\ No newline at end of file
...
372
373
374
375
 
376
377
378
379
380
381
 
382
383
384
...
806
807
808
809
810
 
 
811
812
813
...
959
960
961
 
 
 
 
 
 
 
 
 
962
...
372
373
374
 
375
376
377
378
 
 
 
379
380
381
382
...
804
805
806
 
 
807
808
809
810
811
...
957
958
959
960
961
962
963
964
965
966
967
968
969
0
@@ -372,13 +372,11 @@ p {
0
 
0
 h1 {
0
   font-size: 250%;
0
-  margin-bottom: 20px;
0
+  margin-bottom: 5px;
0
   line-height: 20pt;
0
 }
0
 
0
-.below-h1 {
0
-  margin-top: -10px;
0
-}
0
+
0
 
0
 h2 {
0
   margin-top: 15px;
0
@@ -806,8 +804,8 @@ h2.headline {
0
 }
0
 
0
 .user-type {
0
-  margin-top: -22px;
0
-  font-weight: bold;
0
+    font-weight: bold;
0
+    margin-top: -1px;
0
 }
0
 
0
 #banner {
0
@@ -959,3 +957,12 @@ code {
0
 .errorExplanation h2 {
0
   color: red;
0
 }
0
+
0
+li.family-member{
0
+    margin-bottom: 1px;
0
+}
0
+
0
+
0
+.small{
0
+    font-size: 0.8em;
0
+}
0
\ No newline at end of file

Comments