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
Search Repo:
Added email notification preferences interface
Michael Hartl (author)
Tue May 13 14:32:53 -0700 2008
commit  b27d5a0f2d5be3e4f9682875411ed897ca83f93d
tree    4d1e06c6d6f24565c4c7c93bfa09825a59f3b0ca
parent  c8947d762559effdae619a1f39df96016087da7e
...
32
33
34
35
 
 
 
36
37
38
...
32
33
34
 
35
36
37
38
39
40
0
@@ -32,7 +32,9 @@
0
   attr_accessor :password, :verify_password, :new_password,
0
                 :sorted_photos
0
   attr_accessible :email, :password, :password_confirmation, :name,
0
- :description
0
+ :description, :connection_notifications,
0
+ :message_notifications, :wall_comment_notifications,
0
+ :blog_comment_notifications
0
   acts_as_ferret :fields => [ :name, :description ] if search?
0
 
0
   MAX_EMAIL = MAX_PASSWORD = SMALL_STRING_LENGTH
...
30
31
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
34
35
36
37
 
38
39
40
...
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
72
73
74
75
0
@@ -30,11 +30,46 @@
0
         <label for="person_email">Email</label>
0
         <%= f.text_field :email, :maxlength => Person::MAX_EMAIL %>
0
       </div>
0
+
0
+ <br />
0
+
0
+ <h3>Email notification preferences</h3>
0
+
0
+ <p>
0
+ You will receive email notifications
0
+ for each event type whose box is checked.
0
+ </p>
0
+
0
+
0
+ <div class="form_row">
0
+ <p>
0
+ <label for="connection_notifications"
0
+ class="checkbox">Connections:</label>
0
+ <%= f.check_box :connection_notifications %>
0
+ </p>
0
+ <p>
0
+ <label for="message_notifications"
0
+ class="checkbox">Messages:</label>
0
+ <%= f.check_box :message_notifications %>
0
+ </p>
0
+ <p>
0
+ <label for="wall_comment_notifications"
0
+ class="checkbox">Wall comments:</label>
0
+ <%= f.check_box :wall_comment_notifications %>
0
+ </p>
0
+ <p>
0
+ <label for="blog_comment_notifications"
0
+ class="checkbox">Blog comments:</label>
0
+ <%= f.check_box :blog_comment_notifications %>
0
+ </p>
0
+ </div>
0
+
0
+ <br />
0
   
0
       <div class="form_row">
0
         <%= f.submit "Update", :class => "button" %>
0
         <%= f.submit "Preview", :id => "preview", :class => "button" %>
0
- </div>
0
+ </div>
0
       <input type="hidden" name="type" value="info_edit" />
0
   <% end %>
0
 

Comments

    No one has commented yet.