social_stream 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/Rakefile +0 -12
  2. data/app/controllers/activities_controller.rb +17 -1
  3. data/app/controllers/api_controller.rb +2 -2
  4. data/app/controllers/avatars_controller.rb +44 -0
  5. data/app/controllers/contacts_controller.rb +13 -21
  6. data/app/controllers/conversations_controller.rb +107 -0
  7. data/app/controllers/groups_controller.rb +7 -11
  8. data/app/controllers/messages_controller.rb +21 -88
  9. data/app/controllers/profiles_controller.rb +3 -1
  10. data/app/controllers/pshb_controller.rb +37 -1
  11. data/app/controllers/ties_controller.rb +7 -8
  12. data/app/controllers/users_controller.rb +19 -43
  13. data/app/helpers/location_helper.rb +34 -0
  14. data/app/helpers/subjects_helper.rb +18 -1
  15. data/app/models/activity.rb +67 -27
  16. data/app/models/activity_verb.rb +1 -1
  17. data/app/models/actor.rb +85 -37
  18. data/app/models/avatar.rb +90 -0
  19. data/app/models/group.rb +2 -2
  20. data/app/models/profile.rb +8 -0
  21. data/app/models/tie.rb +20 -22
  22. data/app/models/user.rb +2 -8
  23. data/app/views/activities/_index.html.erb +22 -0
  24. data/app/views/activities/_options.html.erb +3 -1
  25. data/app/views/activities/_root.html.erb +4 -2
  26. data/app/views/activities/_walls.html.erb +34 -0
  27. data/app/views/activities/index.js.erb +1 -0
  28. data/app/views/avatars/_form.html.erb +23 -0
  29. data/app/views/{logos → avatars}/_precrop.html.erb +23 -15
  30. data/app/views/avatars/edit.html.erb +6 -0
  31. data/app/views/avatars/index.html.erb +42 -0
  32. data/app/views/{logos → avatars}/new.html.erb +7 -11
  33. data/app/views/avatars/show.html.erb +5 -0
  34. data/app/views/contacts/_index.html.erb +33 -0
  35. data/app/views/contacts/index.html.erb +35 -2
  36. data/app/views/contacts/index.js.erb +1 -0
  37. data/app/views/conversations/_conversation.html.erb +37 -0
  38. data/app/views/conversations/_conversation_full.html.erb +52 -0
  39. data/app/views/{messages → conversations}/_conversations.html.erb +2 -1
  40. data/app/views/conversations/_index.html.erb +23 -0
  41. data/app/views/{messages → conversations}/_menu_options.html.erb +2 -2
  42. data/app/views/conversations/_show.html.erb +21 -0
  43. data/app/views/{messages → conversations}/edit.html.erb +0 -0
  44. data/app/views/{messages → conversations}/index.html.erb +1 -3
  45. data/app/views/conversations/index.js.erb +7 -0
  46. data/app/views/conversations/show.html.erb +47 -0
  47. data/app/views/conversations/show.js.erb +39 -0
  48. data/app/views/frontpage/_header.html.erb +5 -1
  49. data/app/views/groups/_new.html.erb +50 -48
  50. data/app/views/groups/_sidebar_show.html.erb +1 -1
  51. data/app/views/groups/index.html.erb +1 -1
  52. data/app/views/groups/new.html.erb +6 -1
  53. data/app/views/groups/show.html.erb +1 -3
  54. data/app/views/home/_menu.html.erb +46 -0
  55. data/app/views/home/_sidebar.html.erb +12 -0
  56. data/app/views/home/index.html.erb +3 -3
  57. data/app/views/layouts/application.html.erb +1 -1
  58. data/app/views/layouts/test.html +58 -41
  59. data/app/views/location/_location.html.erb +3 -0
  60. data/app/views/messages/_form.html.erb +5 -52
  61. data/app/views/messages/_message.html.erb +31 -0
  62. data/app/views/messages/_new.html.erb +10 -16
  63. data/app/views/messages/new.html.erb +48 -3
  64. data/app/views/messages/new.js.erb +38 -1
  65. data/app/views/profiles/_profile.html.erb +194 -0
  66. data/app/views/profiles/edit.html.erb +168 -0
  67. data/app/views/profiles/show.html.erb +2 -175
  68. data/app/views/{users → profiles}/update.js.erb +12 -15
  69. data/app/views/subjects/_contacts.html.erb +2 -3
  70. data/app/views/subjects/_toolbar_home.html.erb +1 -1
  71. data/app/views/subjects/_toolbar_home_menu.html.erb +4 -1
  72. data/app/views/subjects/_toolbar_home_menu_options.html.erb +4 -7
  73. data/app/views/subjects/_toolbar_home_menu_options_subjects.html.erb +0 -3
  74. data/app/views/subjects/_toolbar_logo.html.erb +1 -1
  75. data/app/views/subjects/_toolbar_message_menu.html.erb +17 -0
  76. data/app/views/subjects/_toolbar_profile.html.erb +4 -12
  77. data/app/views/subjects/_toolbar_profile_menu.html.erb +9 -10
  78. data/app/views/subjects/_toolbar_profile_menu_basic_options.html.erb +6 -5
  79. data/app/views/subjects/_toolbar_profile_menu_tie_options.html.erb +13 -13
  80. data/app/views/ties/_new.html.erb +30 -25
  81. data/app/views/ties/_suggestions.html.erb +1 -0
  82. data/app/views/ties/new.js.erb +2 -0
  83. data/app/views/users/_index.html.erb +1 -1
  84. data/app/views/users/index.html.erb +1 -3
  85. data/app/views/users/show.html.erb +4 -3
  86. data/config/locales/en.yml +79 -24
  87. data/config/routes.rb +8 -2
  88. data/lib/generators/social_stream/install_generator.rb +1 -1
  89. data/lib/generators/social_stream/templates/migration.rb +17 -11
  90. data/lib/generators/social_stream/templates/public/images/btn/message_conversation.png +0 -0
  91. data/lib/generators/social_stream/templates/public/images/btn/message_inbox.png +0 -0
  92. data/lib/generators/social_stream/templates/public/images/btn/message_new.png +0 -0
  93. data/lib/generators/social_stream/templates/public/images/btn/message_sentbox.png +0 -0
  94. data/lib/generators/social_stream/templates/public/images/btn/message_trash.png +0 -0
  95. data/lib/generators/social_stream/templates/public/javascripts/ajax.paginate.js +1 -1
  96. data/lib/generators/social_stream/templates/public/javascripts/menu.js +9 -99
  97. data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +14 -5
  98. data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +1 -0
  99. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery-ui.css +13 -10
  100. data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +5 -11
  101. data/lib/generators/social_stream/templates/public/stylesheets/default/messages.css +96 -20
  102. data/lib/generators/social_stream/templates/relations.yml +1 -0
  103. data/lib/paperclip/social_stream.rb +1 -1
  104. data/lib/social_stream/ability.rb +1 -0
  105. data/lib/social_stream/controllers/helpers.rb +20 -0
  106. data/lib/social_stream/models/subject.rb +13 -12
  107. data/lib/social_stream/rails.rb +4 -1
  108. data/lib/social_stream/version.rb +1 -1
  109. data/lib/tasks/db/populate.rake +14 -4
  110. data/social_stream.gemspec +31 -5
  111. data/spec/controllers/contacts_controller_spec.rb +6 -0
  112. data/spec/controllers/profiles_controller_spec.rb +3 -4
  113. data/spec/dummy/config/initializers/devise.rb +4 -1
  114. data/spec/dummy/config/relations.yml +1 -0
  115. data/spec/models/activity_spec.rb +24 -0
  116. metadata +91 -89
  117. data/app/controllers/logos_controller.rb +0 -37
  118. data/app/models/logo.rb +0 -88
  119. data/app/views/activities/_activities.html.erb +0 -46
  120. data/app/views/groups/_profile.html.erb +0 -142
  121. data/app/views/groups/edit.html.erb +0 -135
  122. data/app/views/groups/update.js.erb +0 -39
  123. data/app/views/logos/_form.html.erb +0 -33
  124. data/app/views/logos/edit.html.erb +0 -6
  125. data/app/views/logos/index.html.erb +0 -27
  126. data/app/views/logos/show.html.erb +0 -5
  127. data/app/views/menu/_group.html.erb +0 -15
  128. data/app/views/menu/_home_user.html.erb +0 -0
  129. data/app/views/menu/_optionsGroups.html.erb +0 -11
  130. data/app/views/menu/_optionsUser.html.erb +0 -11
  131. data/app/views/menu/_services.html.erb +0 -11
  132. data/app/views/menu/_tiesGroup.html.erb +0 -14
  133. data/app/views/menu/_tiesUser.html.erb +0 -11
  134. data/app/views/menu/_user.html.erb +0 -15
  135. data/app/views/messages/_conversation.html.erb +0 -34
  136. data/app/views/messages/_conversation_full.html.erb +0 -65
  137. data/app/views/messages/_index.html.erb +0 -19
  138. data/app/views/messages/_location.html.erb +0 -3
  139. data/app/views/messages/_show.html.erb +0 -22
  140. data/app/views/messages/index.js.erb +0 -1
  141. data/app/views/messages/show.html.erb +0 -10
  142. data/app/views/messages/show.js.erb +0 -1
  143. data/app/views/users/_profile.html.erb +0 -171
  144. data/app/views/users/_sidebar_show.html.erb +0 -1
  145. data/app/views/users/edit.html.erb +0 -194
@@ -1,19 +1,16 @@
1
1
 
2
-
3
-
4
- if ($("#notice").length == 0){
5
-
6
- $("#content").prepend('<div id="notice"></div>');
7
-
2
+ if ($("#profile_notice").length == 0){
3
+ $("#content").prepend('<div id="profile_notice" class="notice"></div>');
8
4
  }
9
5
 
10
- <% if @user.valid? %>
6
+ <% if @profile.valid? %>
11
7
 
12
- $("#notice").html("<h2>Form Submitted!</h2><br/>");
13
- $("#notice").removeClass('error_explanation');
14
- $("#notice").addClass('confirmed');
15
- $("#sidebarContent").replaceWith("<%= escape_javascript(render(:partial => 'sidebar_show'))%>");
8
+ $("#profile_notice").html("<h2>Form Submitted!</h2><br/>");
9
+ $("#profile_notice").removeClass('error');
10
+ $("#profile_notice").addClass('success');
16
11
 
12
+ /*$("#sidebarContent").replaceWith("<%#= escape_javascript(render(:partial => 'sidebar_show'))%>");*/
13
+
17
14
  $("#contact_info").addClass('section_normal');
18
15
  $("#experience_info").addClass('section_normal');
19
16
  $("#personal_info").addClass('section_normal');
@@ -34,10 +31,10 @@
34
31
  <%end%>
35
32
 
36
33
  <% else %>
37
- $("#notice").html("<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>"
38
- +"<ul><% @user.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul><br/>");
39
- $("#notice").removeClass('confirmed');
40
- $("#notice").addClass('error_explanation');
34
+ $("#profile_notice").html("<h2><%= pluralize(@profile.errors.count, "error") %> prohibited this profile from being saved:</h2>"
35
+ +"<ul><% @profile.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul><br/>");
36
+ $("#profile_notice").removeClass('success');
37
+ $("#profile_notice").addClass('error');
41
38
 
42
39
  <% end %>
43
40
 
@@ -1,5 +1,4 @@
1
- <% if (cs = subject.subjects(:direction => :receivers)).present? %>
2
-
1
+ <% if (cs = subject.contacts(:direction => :sent)).present? %>
3
2
  <div class="block">
4
3
  <div class="header">
5
4
  <%=image_tag("btn/btn_friend.png", :class => "header_icon")%>
@@ -11,7 +10,7 @@
11
10
  <div class ="content">
12
11
  <div class="contact space_center">
13
12
  <% cs.each do |contact| %>
14
- <%= link_to(image_tag(contact.logo.url, :alt => contact.name , :size => "40x40"), contact) %>
13
+ <%= link_to(image_tag(contact.logo.url, :alt => contact.name , :size => "28x28"), contact) %>
15
14
  <% end %>
16
15
  </div>
17
16
  </div>
@@ -1,4 +1,4 @@
1
- <%= render :partial => 'subjects/toolbar_logo', :locals => { :subject => current_subject } %>
1
+ <%= render :partial => 'subjects/toolbar_logo', :locals => { :subject => current_subject, } %>
2
2
 
3
3
  <div class="block space_center">
4
4
  </div>
@@ -1,4 +1,7 @@
1
- <% content_for :headers, stylesheet_link_tag("menu", :media => "screen, projection") %>
1
+ <% content_for :headers do %>
2
+ <%= stylesheet_link_tag "menu", :media => "screen, projection" %>
3
+ <%= javascript_include_tag 'menu' %>
4
+ <% end %>
2
5
 
3
6
  <div id="menu_lateral">
4
7
  <%= render :partial => "subjects/toolbar_home_menu_options" %>
@@ -1,20 +1,16 @@
1
- <ul class="menu noaccordion">
1
+ <ul class="menu">
2
2
 
3
3
  <%= menu_options[:messages] || capture do %>
4
- <li>
5
- <%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('message.other') +" (" + current_subject.mailbox.inbox(:unread => true).count.to_s + ")", messages_path) %>
6
- </li>
4
+ <%= render :partial =>'subjects/toolbar_message_menu'%>
7
5
  <% end %>
8
6
 
9
7
  <%= menu_options[:contacts] || capture do %>
10
8
  <li>
11
9
  <%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
12
- </li>
13
- <li>
14
10
  <ul>
15
11
  <% current_subject.relations.sort.each do |r| %>
16
12
  <li>
17
- <%= link_to image_tag("btn/btn_friend.png", :class => "menu_icon") + r.name , '#' %>
13
+ <%= link_to image_tag("btn/btn_friend.png", :class => "menu_icon") + r.name , contacts_path(:relation => r.id) %>
18
14
  </li>
19
15
  <% end %>
20
16
  </ul>
@@ -26,3 +22,4 @@
26
22
  <% end %>
27
23
 
28
24
  </ul>
25
+
@@ -1,9 +1,6 @@
1
1
  <%= menu_options[:groups] || capture do %>
2
2
  <li>
3
3
  <%= link_to( image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.other'), '#') %>
4
- </li>
5
-
6
- <li>
7
4
  <ul>
8
5
  <li>
9
6
  <%= link_to( image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.new.action'), new_group_path) %>
@@ -1,4 +1,4 @@
1
1
  <div id="logo_index">
2
- <div class="center"><span class="title_bold" ><%= subject.name %></span> (<%= ties_to(subject) %>)</div>
2
+ <div class="center"><span class="title_bold" ><%= subject.name %></span></div>
3
3
  <%= link_to image_tag(subject.logo.url, :alt => subject.name , :size => "119x108"), subject %>
4
4
  </div>
@@ -0,0 +1,17 @@
1
+ <li>
2
+ <%= link_to( image_tag("btn/new.png", :class => "menu_icon")+t('message.other'), '#') %>
3
+ <ul>
4
+ <li>
5
+ <%= link_to( image_tag("btn/message_new.png", :class => "menu_icon")+ t('message.new'), new_message_path) %>
6
+ </li>
7
+ <li>
8
+ <%= link_to( image_tag("btn/message_inbox.png", :class => "menu_icon")+t('message.inbox')+" (" + current_subject.mailbox.inbox(:unread => true).count.to_s + ")", conversations_path, :remote => true) %>
9
+ </li>
10
+ <li>
11
+ <%= link_to( image_tag("btn/message_sentbox.png", :class => "menu_icon")+t('message.sentbox'), conversations_path(:box => :sentbox), :remote => true) %>
12
+ </li>
13
+ <li>
14
+ <%= link_to( image_tag("btn/message_trash.png", :class => "menu_icon")+t('message.trash'), conversations_path(:box => :trash), :remote => true) %>
15
+ </li>
16
+ </ul>
17
+ </li>
@@ -1,21 +1,13 @@
1
1
  <%= render :partial => 'subjects/toolbar_logo', :locals => { :subject => subject } %>
2
2
 
3
- <div class="block space_center">
4
- </div>
3
+ <div class="block space_center"></div>
5
4
 
6
5
  <%= render :partial => 'subjects/toolbar_profile_menu', :locals => { :subject => subject } %>
7
6
 
8
- <div class="block space_center">
9
- </div>
7
+ <div class="block space_center"></div>
10
8
 
11
- <%= render :partial => 'subjects/tabs' %>
12
-
13
- <div class="block space_center">
14
- </div>
15
9
 
16
10
  <%= render :partial => 'subjects/contacts', :locals => { :subject => subject } %>
17
11
 
18
- <div class="block space_center">
19
- </div>
20
- <div class="block space_center">
21
- </div>
12
+ <div class="block space_center"></div>
13
+ <div class="block space_center"></div>
@@ -1,13 +1,12 @@
1
- <% content_for :headers, stylesheet_link_tag("menu", :media => "screen, projection") %>
2
-
3
- <div id="menu_lateral_tie">
4
- <%= render :partial => "subjects/toolbar_profile_menu_tie_options", :locals => { :subject => subject } %>
5
- </div>
6
- <div class="space_center">
7
- </div>
1
+ <% content_for :headers do %>
2
+ <%= stylesheet_link_tag "menu", :media => "screen, projection" %>
3
+ <%= javascript_include_tag 'menu' %>
4
+ <% end %>
8
5
 
9
6
  <div id="menu_lateral">
10
- <%= render :partial => "subjects/toolbar_profile_menu_basic_options", :locals => { :subject => subject } %>
11
- </div>
12
- <div class="space_center">
7
+ <ul class="menu">
8
+ <%= render :partial => "subjects/toolbar_profile_menu_tie_options", :locals => { :subject => subject } %>
9
+ <%= render :partial => "subjects/toolbar_profile_menu_basic_options", :locals => { :subject => subject } %>
10
+ </ul>
13
11
  </div>
12
+ <div class="space_center"></div>
@@ -1,12 +1,13 @@
1
- <ul class="menu noaccordion">
2
1
  <%= menu_options[:messages] || capture do %>
3
- <li>
4
- <%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('message.other'), messages_path) %>
5
- </li>
2
+ <% if user_signed_in? %>
3
+ <li >
4
+ <%= link_to(image_tag("btn/btn_send.png", :class => "menu_icon")+t('message.send'), new_message_path(:receiver => subject.slug)) %>
5
+ </li>
6
+ <% end %>
6
7
  <% end %>
8
+
7
9
  <%= menu_options[:profile] || capture do %>
8
10
  <li>
9
11
  <%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'), [subject, :profile]) %>
10
12
  </li>
11
13
  <% end %>
12
- </ul>
@@ -1,28 +1,28 @@
1
- <ul class="menu noaccordion">
2
1
  <%= menu_options[:like] || capture do %>
3
2
  <li>
4
3
  <%= link_to( image_tag("btn/btn_bookmark.png", :class => "menu_icon")+t('tie.add.bookmark'), '#') %>
5
4
  </li>
6
5
  <% end %>
6
+
7
7
  <%= menu_options[:contacts] || capture do %>
8
8
  <!-- TODO: create helper -->
9
9
  <% if user_signed_in? %>
10
10
  <% if current_subject.ties_to(subject).present? %>
11
- <li >
12
- <%= link_to(image_tag("btn/btn_friend.png", :class => "menu_icon")+t('tie.edit.contact'), '#') %>
13
- </li>
11
+ <li >
12
+ <%= link_to(image_tag("btn/btn_friend.png", :class => "menu_icon")+t('tie.edit.contact', :type => current_subject.ties_to(subject).first.relation_name), '#') %>
13
+ </li>
14
14
  <% else %>
15
- <li >
16
- <%= link_to(image_tag("btn/btn_friend.png", :class => "menu_icon")+t('tie.add.contact'), '#') %>
17
- </li>
18
- <li>
19
- <ul>
15
+ <li >
16
+ <%= link_to(image_tag("btn/btn_friend.png", :class => "menu_icon")+t('tie.add.contact'), '#') %>
17
+ </li>
18
+
20
19
  <li>
21
- <%= link_to(image_tag("btn/twitter-follow-icon.png", :size => "19x19", :class => "menu_icon")+t('tie.add.follow'), '#') %>
20
+ <li>
21
+ <%= link_to(image_tag("btn/twitter-follow-icon.png", :size => "19x19", :class => "menu_icon")+t('tie.add.follow'), '#') %>
22
+ </li>
22
23
  </li>
23
- </ul>
24
- </li>
25
24
  <% end %>
26
25
  <% end %>
27
26
  <% end %>
28
- </ul>
27
+
28
+
@@ -1,30 +1,35 @@
1
1
  <div class="dialog_add_tie" id="new_tie">
2
2
  <div class="content_add_user" >
3
- <div class="tie_logo">
4
- <%= link_to image_tag(@tie.receiver_subject.logo.url(:profile),
5
- :size => "100x100",
6
- :alt => @tie.receiver_subject.name),
7
- @tie.receiver_subject %>
8
- </div>
9
3
  <div class="activity_add_ties">
10
- <div><%= t('message.one')+":" %><br />
11
4
 
12
- <%= form_for @tie do |f| %>
13
-
14
- <%= f.hidden_field :receiver_id %>
15
- <%= f.hidden_field :sender_id %>
16
- <%= f.text_area :message, :class =>"input_new_tie" %>
17
-
18
- <%= f.select :relation_name, @tie.sender.relations.sort.map{ |r| [ r.name, r.name ] } %>
19
-
20
- <div class="ties_btn">
21
- <%= submit_tag t('contact.new.submit'), :class => "tie_btn" %>
22
- </div>
23
- <% end %>
24
-
25
- <button id="close_add_contact" type="button">X</button>
26
-
27
- </div>
28
- </div>
29
- </div>
5
+ <%= form_for @tie do |f| %>
6
+ <%= f.hidden_field :receiver_id %>
7
+ <%= f.hidden_field :sender_id %>
8
+
9
+ <div class="block">
10
+ <div class="close_add_contact">
11
+ <%=link_to('X','#', :id => "close_add_contact")%>
12
+ </div>
13
+ <div class="form_row center">
14
+ <h2> <%= t('tie.new.title') %> </h2>
15
+ </div>
16
+ <div class="two_columns_container">
17
+ <div class="form_column_left">
18
+ <p class="colum_field_title"><%= t('message.one') %></p>
19
+ <%= f.text_area :message, :class =>"new_tie_text_area" %>
20
+ </div>
21
+
22
+ <div class="form_column_right">
23
+ <div class="select_relations">
24
+ <%= f.select :relation_name, @tie.sender.relations.sort.map{ |r| [ r.name, r.name ] } %>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <div class="form_bottom">
29
+ <%= submit_tag t('contact.new.submit'), :class => "button" %>
30
+ </div>
31
+ </div>
32
+ <% end %>
33
+ </div>
34
+ </div>
30
35
  </div>
@@ -8,6 +8,7 @@
8
8
  });
9
9
 
10
10
  });
11
+
11
12
  <% end %>
12
13
 
13
14
  <div class="block">
@@ -3,6 +3,8 @@ if(!show_add_contact){
3
3
  var show_add_contact = true;
4
4
  }
5
5
 
6
+ <%= toolbar(:profile => @tie.receiver_subject).html_safe %>
7
+
6
8
  $('#content').html("<%= escape_javascript(render(:partial => "ties/new")) %>");
7
9
 
8
10
  $('#close_add_contact').click(function() {
@@ -30,4 +30,4 @@
30
30
 
31
31
  <div class="row">
32
32
  <%= will_paginate @users %>
33
- </div>
33
+ </div>
@@ -1,5 +1,5 @@
1
1
  <% content_for :headers do %>
2
- <%= javascript_include_tag 'ajax.paginate' %>
2
+ <%= javascript_include_tag 'jquery.ba-url','ajax.paginate' %>
3
3
  <% end %>
4
4
 
5
5
  <% toolbar if user_signed_in? %>
@@ -12,8 +12,6 @@
12
12
  Your are here ><img src="images/btn/btn_browse.png" class="btn_config" /> <%= t('browse') %>: <span id="name_group"><b><%= t('user.other')%></b></span>, <%=link_to(t('group.by'),groups_path)%>
13
13
  </div>
14
14
 
15
-
16
-
17
15
  <div class="space_center"></div>
18
16
 
19
17
  <div id="my_conferences">
@@ -1,5 +1,5 @@
1
1
  <% content_for :sidebar do %>
2
- <%= render :partial => 'sidebar_show' %>
2
+ <%= render :partial => 'sidebar_index' %>
3
3
  <% end %>
4
4
 
5
5
  <% toolbar :profile => @user %>
@@ -13,6 +13,7 @@
13
13
  <%= render :partial => "users/groups",
14
14
  :locals => { :user => @user } %>
15
15
 
16
- <%= render :partial => "activities/activities",
17
- :locals => { :activities => @user.profile_wall(current_subject),
16
+ <%= render :partial => "activities/index",
17
+ :locals => { :activities => @user.wall(:profile, :for => current_subject).
18
+ paginate(:page => params[:page]),
18
19
  :owner => @user } %>
@@ -1,19 +1,45 @@
1
1
  en:
2
+ actor:
3
+ name: "Name"
2
4
  action:
3
5
  send: "Send"
4
6
  accept: "Accept"
5
7
  account:
6
8
  one: "Account"
7
9
  activity:
8
- one: "Activity"
9
- other: "Activities"
10
- input: "What do you do?"
11
10
  confirm_delete: "Delete activity?"
12
11
  delete: "Delete"
13
- to_comment: "Comment"
12
+ input: "What do you do?"
13
+ last: "Last Activities"
14
14
  like: "I like"
15
+ one: "Activity"
16
+ other: "Activities"
17
+ to_comment: "Comment"
15
18
  unlike: "Already I do not like"
16
- last: "Last Activities"
19
+ verb:
20
+ follow:
21
+ title: "%{subject} added %{contact} as contact."
22
+ message: "%{name} added you as contact."
23
+ make-friend:
24
+ title: "%{subject} and %{contact} are now connected."
25
+ message: "%{name} also added you as contact."
26
+ avatar:
27
+ crop_image: "Crop the uploaded image"
28
+ crop_submit: "Crop"
29
+ destroy: "Delete"
30
+ destroy_sure: "Are you sure you wan't to delete the selected avatar?"
31
+ error:
32
+ no_file: "You have to select a file"
33
+ no_image_file: "The file you uploaded isn't valid, it must be an image file"
34
+ list: "You have these avatars"
35
+ new: "Create a new avatar"
36
+ new_short: "New avatar"
37
+ no_avatars: "You haven't any avatar, plesase create a new one."
38
+ preview: "Preview"
39
+ profile_change: "Change your avatar"
40
+ set_default: "Set as default"
41
+ set_default_sure: "Are you sure you wan't to set this avatar as default?"
42
+ upload: "Upload"
17
43
  browse: "Browse"
18
44
  comment:
19
45
  input: "Write a comment..."
@@ -21,6 +47,7 @@ en:
21
47
  contact:
22
48
  one: "Contact"
23
49
  other: "Contacts"
50
+ all_n: "All contacts (%{count})"
24
51
  new:
25
52
  link: "+ Add contact"
26
53
  title: "Add %{name} as contact"
@@ -63,21 +90,21 @@ en:
63
90
  send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
64
91
  unlocked: 'Your account was successfully unlocked. You are now signed in.'
65
92
  edit:
66
- aboutme: "About me"
67
- actualcity: "Actual City"
68
- address: "Address"
69
- birthday: "BirthDay"
70
- contact: "Contact information"
71
- email: "E-mail"
72
- experience: "Experience"
73
- fax: "Fax"
74
- group_info: "Group information"
75
- mobile: "Mobile"
76
- organization: "Organization"
77
- personal_info: "Personal information"
78
- phone: "Phone"
93
+ aboutme: "About me --NOTE: use profile.<class>.about"
94
+ actualcity: "Actual City --NOTE: use profile.actualcity"
95
+ address: "Address --NOTE: use profile.address"
96
+ birthday: "BirthDay --NOTE: use profile.<class>.birthday"
97
+ contact: "Contact information --NOTE: use profile.contact"
98
+ email: "E-mail --NOTE: use profile.email"
99
+ experience: "Experience --NOTE: use profile.experience"
100
+ fax: "Fax --NOTE: use profile.fax"
101
+ group_info: "Group information --NOTE: use profile.<class>.info"
102
+ mobile: "Mobile --NOTE: use profile.mobile"
103
+ organization: "Organization --NOTE: use profile.organization"
104
+ personal_info: "Personal information --NOTE: use profile.<class>.info"
105
+ phone: "Phone --NOTE: use profile.phone"
79
106
  profile: "Edit profile"
80
- website: "Website"
107
+ website: "Website --NOTE: use profile.website"
81
108
  forgot_password: "Forgot you password?"
82
109
  frontpage:
83
110
  collaborate:
@@ -124,6 +151,8 @@ en:
124
151
  one: "Inbox"
125
152
  location:
126
153
  message: "You are here > %{location}"
154
+ base: "You are here"
155
+ separator: " > "
127
156
  menu:
128
157
  options: "Menu Options"
129
158
  information: "Information"
@@ -135,12 +164,35 @@ en:
135
164
  other: "Messages"
136
165
  sentbox: "Sentbox"
137
166
  trash: "Trash"
167
+ send: "Send a message"
138
168
  password:
139
169
  forgot: "Do you forgot your password?"
140
170
  post:
141
171
  confirm_delete: "Delete post?"
142
172
  profile:
143
173
  one: "Profile"
174
+ age: "Age"
175
+ group:
176
+ about: "About us"
177
+ birthday: "Anniversary"
178
+ experience: "Area of expertise"
179
+ info: "Group information"
180
+ user:
181
+ about: "About me"
182
+ birthday: "Birthday"
183
+ experience: "Experience"
184
+ info: "Personal information"
185
+ actualcity: "Actual City"
186
+ address: "Address"
187
+ contact: "Contact information"
188
+ country: "Country"
189
+ email: "E-mail"
190
+ fax: "Fax"
191
+ mobile: "Mobile"
192
+ organization: "Organization"
193
+ phone: "Phone"
194
+ profile: "Edit profile"
195
+ website: "Website"
144
196
  public:
145
197
  other: "Everybody"
146
198
  representation:
@@ -158,18 +210,21 @@ en:
158
210
  sign_up: "Sign up"
159
211
  socialstream: "SocialStream"
160
212
  tie:
161
- activity:
162
- add_contact: %{active} add %{pasive} as a contact
163
213
  add:
164
214
  bookmark: "Bookmark"
165
- contact: "Add Contact"
215
+ contact: "Add contact as"
166
216
  follow: "Follow"
217
+ like: "Like"
167
218
  partner: "Add Partner"
219
+ category:
220
+ new: "New category"
221
+ edit:
222
+ contact: "Contact: %{type}"
223
+ new:
224
+ title: "Add New Contact"
168
225
  pending:
169
226
  other: "Pending requests"
170
227
  all: "All"
171
- private_messages:
172
- add_contact: %{name} add you as a contact
173
228
  suggestion:
174
229
  one: "Suggestion"
175
230
  other: "Suggestions"