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:
Only showing email preferences interface if email notifications are on
Michael Hartl (author)
Tue May 13 14:36:11 -0700 2008
commit  2eb239fdf262f148d635290400fa66416d42c674
tree    ce76dbfa47630aedbad183c9f5fcee82800c5438
parent  b27d5a0f2d5be3e4f9682875411ed897ca83f93d
...
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
...
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
0
@@ -31,39 +31,42 @@
0
         <%= f.text_field :email, :maxlength => Person::MAX_EMAIL %>
0
       </div>
0
       
0
- <br />
0
+ <%- if global_prefs.email_notifications? -%>
0
       
0
- <h3>Email notification preferences</h3>
0
+ <br />
0
       
0
- <p>
0
- You will receive email notifications
0
- for each event type whose box is checked.
0
- </p>
0
-
0
+ <h3>Email notification preferences</h3>
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
+ You will receive email notifications
0
+ for each event type whose box is checked.
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
+
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
+ <%- end -%>
0
+
0
       <br />
0
   
0
       <div class="form_row">

Comments

    No one has commented yet.