social_stream 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/base/app/assets/javascripts/social_stream/comment.js +1 -1
  4. data/base/app/assets/javascripts/social_stream/search_header.js +26 -4
  5. data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +1 -0
  6. data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +1 -1
  7. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_devise.css.sass +5 -3
  8. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_devise.css.sass +7 -37
  9. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_frontpage.css.sass +4 -2
  10. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-1200px-min.css.sass +6 -3
  11. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-767px-max.css.sass +9 -5
  12. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-768px-979px.css.sass +3 -4
  13. data/base/app/assets/stylesheets/social_stream/base/layouts/_header.css.sass +3 -2
  14. data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +1 -2
  15. data/base/app/controllers/groups_controller.rb +4 -0
  16. data/base/app/controllers/home_controller.rb +15 -0
  17. data/base/app/controllers/search_controller.rb +3 -3
  18. data/base/app/decorators/avatars_controller_decorator.rb +1 -0
  19. data/base/app/overrides/avatars/_crop/add_actor_id.rb +4 -0
  20. data/base/app/overrides/avatars/_form/add_actor_id.rb +4 -0
  21. data/base/app/views/contacts/_new_modal.html.erb +2 -2
  22. data/base/app/views/devise/confirmations/new.html.erb +14 -9
  23. data/base/app/views/devise/passwords/edit.html.erb +23 -26
  24. data/base/app/views/devise/passwords/new.html.erb +7 -3
  25. data/base/app/views/devise/registrations/_edit_user.html.erb +1 -1
  26. data/base/app/views/devise/registrations/new.html.erb +4 -8
  27. data/base/app/views/devise/shared/_links.erb +1 -3
  28. data/base/app/views/groups/_form.html.erb +2 -1
  29. data/base/app/views/layouts/_header_dropdown_menu_sessions.html.erb +1 -1
  30. data/base/app/views/layouts/_header_signed_in.erb +22 -26
  31. data/base/app/views/profiles/_personal_edit.html.erb +2 -2
  32. data/base/config/locales/de.yml +7 -0
  33. data/base/config/locales/devise.de.yml +61 -0
  34. data/base/config/locales/devise.fr.yml +61 -0
  35. data/base/config/locales/devise.hu.yml +60 -0
  36. data/base/config/locales/devise.nl.yml +60 -0
  37. data/base/config/locales/en.yml +5 -1
  38. data/base/config/locales/es.yml +8 -1
  39. data/base/config/locales/fr.yml +7 -0
  40. data/base/config/locales/hu.yml +22 -15
  41. data/base/config/locales/nl.yml +7 -0
  42. data/base/config/locales/pt.yml +7 -0
  43. data/base/config/locales/zh.yml +7 -0
  44. data/base/lib/social_stream/base/autoload.rb +1 -0
  45. data/base/lib/social_stream/base/version.rb +1 -1
  46. data/base/lib/social_stream/controllers/authorship.rb +2 -1
  47. data/base/lib/social_stream/controllers/avatars.rb +14 -0
  48. data/base/lib/social_stream/controllers/helpers.rb +3 -3
  49. data/base/lib/social_stream/controllers/objects.rb +6 -7
  50. data/base/lib/tasks/i18n.rake +148 -0
  51. data/base/social_stream-base.gemspec +2 -1
  52. data/config/locales/en.yml +2 -1
  53. data/config/locales/es.yml +2 -1
  54. data/documents/app/controllers/documents_controller.rb +26 -16
  55. data/documents/app/models/document.rb +4 -3
  56. data/documents/app/models/video.rb +11 -9
  57. data/documents/app/views/audios/_audio_show.html.erb +1 -1
  58. data/documents/app/views/videos/_video_show.html.erb +1 -1
  59. data/documents/lib/social_stream/documents/version.rb +1 -1
  60. data/documents/social_stream-documents.gemspec +2 -1
  61. data/events/lib/social_stream/events/version.rb +1 -1
  62. data/events/social_stream-events.gemspec +2 -1
  63. data/lib/social_stream/version.rb +1 -1
  64. data/linkser/lib/social_stream/linkser/version.rb +1 -1
  65. data/linkser/social_stream-linkser.gemspec +2 -1
  66. data/oauth2_server/app/models/site/client.rb +16 -0
  67. data/oauth2_server/app/views/site/clients/_edit.html.erb +6 -0
  68. data/oauth2_server/app/views/site/clients/_edit_step_2.html.erb +1 -1
  69. data/oauth2_server/app/views/site/clients/_edit_step_3.html.erb +1 -2
  70. data/oauth2_server/app/views/site/clients/_form.html.erb +1 -1
  71. data/oauth2_server/config/locales/en.yml +1 -1
  72. data/oauth2_server/config/locales/es.yml +2 -1
  73. data/oauth2_server/config/locales/zh.yml +1 -0
  74. data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
  75. data/oauth2_server/social_stream-oauth2_server.gemspec +2 -1
  76. data/ostatus/app/controllers/remote_subjects_controller.rb +1 -1
  77. data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
  78. data/ostatus/social_stream-ostatus.gemspec +2 -1
  79. data/places/social_stream-places.gemspec +1 -0
  80. data/presence/lib/social_stream/presence/version.rb +1 -1
  81. data/presence/social_stream-presence.gemspec +2 -1
  82. data/social_stream.gemspec +7 -7
  83. metadata +25 -18
  84. data/base/app/views/home/index.js.erb +0 -5
  85. data/lib/tasks/i18n.rake +0 -75
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 978d9e87fb278626d427da3ada3ffd333defe398
4
- data.tar.gz: b230736937ad6c26148ea5e92b74ef9417089c44
3
+ metadata.gz: bc06263fd2bffcf4bec63bfe7f4c5a9184caeed0
4
+ data.tar.gz: 8f0e46f8b9f88a0c8e1dee0b556347c0755261e5
5
5
  SHA512:
6
- metadata.gz: a88183687d93df8c329a3d7b1f760150effe0ec36efd54d77fc66f7f805eabba11934223b50e9afe64896b0c126e1ac8ae56af678b6e98b3beb4e86cebb43b8a
7
- data.tar.gz: 03bf445c73f5974b0daee3ae54b11b4767f534c92d2fea64b9ca86775e63583db17cdb6f3ba57f5cd0c0cfe4e69d1fb69fb8414243d0ca4472a517d830d37c84
6
+ metadata.gz: ea106a1702192f94169d86773e8b103fa915df56515cd3ef8a932545a70986d49b703fd7eecc407045f2d8a4a3e6309a6c750e86003f33be6ab8c8e46217af19
7
+ data.tar.gz: 08e85db4c099875c13e14cd99ee9769285eabeeb2c55b3694a08d4a170cd25074d48877c6c6d0b6600d2e8904328df6308427470e2cabfdeadf2548f6b7299e1
data/Rakefile CHANGED
@@ -25,4 +25,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
25
25
  rdoc.rdoc_files.include('lib/**/*.rb', 'app/**/*.rb')
26
26
  end
27
27
 
28
- import 'lib/tasks/i18n.rake'
28
+ import 'base/lib/tasks/i18n.rake'
@@ -57,7 +57,7 @@ SocialStream.Comment = (function(SS, $, undefined){
57
57
  };
58
58
 
59
59
  var hideNewActivityCommentElements = function(options){
60
- var newDiv = $('#activity_' + options.parentActivityId).find('div.new_comment');
60
+ var newDiv = $('#comments_activity_' + options.parentActivityId).siblings('div.new_comment');
61
61
 
62
62
  newDiv.find("textarea").val('');
63
63
 
@@ -3,14 +3,18 @@
3
3
  SocialStream.SearchHeader = (function(SS, $, undefined){
4
4
  var callback = new SS.Callback();
5
5
 
6
+ var nav, mat;
7
+
6
8
  var initMat = function() {
7
- var searchNav = $('.search-nav');
8
- $('input.search-query', searchNav).on('input', searchQuery);
9
- $('.mat div', searchNav).hide();
9
+ nav = $('.search-nav');
10
+ $('input.search-query', nav).focus(focusMat);
11
+ $('input.search-query', nav).on('input', searchQuery);
12
+
13
+ mat = $('.mat', nav);
14
+ $('div', mat).hide();
10
15
  };
11
16
 
12
17
  var searchQuery = function() {
13
- var nav = $('.search-nav');
14
18
  var input = $('input.search-query', nav);
15
19
  var mat = $('.mat', nav);
16
20
  var minQuery = input.attr('data-min_query');
@@ -44,6 +48,24 @@ SocialStream.SearchHeader = (function(SS, $, undefined){
44
48
  });
45
49
  };
46
50
 
51
+ var focusMat = function() {
52
+ mat.show();
53
+
54
+ $('html').on('click.close-search-header', closeMat);
55
+ };
56
+
57
+ var closeMat = function(e) {
58
+ eventMat = $(e.target).closest('.quick-search');
59
+
60
+ if (eventMat.length > 0) {
61
+ return;
62
+ }
63
+
64
+ mat.hide();
65
+
66
+ $('html').off('click.close-search-header');
67
+ };
68
+
47
69
  callback.register('show', initMat);
48
70
 
49
71
  return callback.extend({
@@ -73,6 +73,7 @@ input#group_name
73
73
  a
74
74
  float: right
75
75
  margin-right: 10px
76
+ margin-bottom: 20px
76
77
  .new_relation_custom
77
78
  .btn
78
79
  @include btn-secundary
@@ -1,5 +1,5 @@
1
1
  footer
2
- text-align: center
2
+ text-align: left
3
3
  clear: both
4
4
  padding-top: 30px
5
5
  ul
@@ -19,14 +19,16 @@
19
19
  font-size: 12px
20
20
 
21
21
 
22
- #forgot-pass
23
- .password
22
+ #forgot-pass,
23
+ #confirmation,
24
+ #login
25
+ .password,
26
+ .confirmation
24
27
  @include box-shadow(0px 0px 13px rgba(50, 50, 50, 0.15))
25
28
  @include border-radius (15px)
26
29
  background-color: $white
27
30
  color: #8c8c8c
28
31
  h3
29
- text-align: right
30
32
  font-size: 22px
31
33
  input
32
34
  &[type="password"]
@@ -26,42 +26,12 @@
26
26
  .soften
27
27
  clear: both
28
28
 
29
+ #error_explanation
30
+ h2
31
+ font-size: 20px
32
+ color: #BB5A5A
33
+ text-align: center
34
+ ul
35
+ text-align: center
29
36
 
30
37
 
31
- #forgot-pass
32
- @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
33
- .forgot-img
34
- @extend .hidden-phone
35
- @extend .hidden-tablet
36
- width: 40%
37
- float: left
38
- margin-left: 4%
39
- img
40
- width: 100%
41
- .forgot
42
- width: 60%
43
- display: inline
44
- header
45
- h2
46
- margin-left: 40%
47
- #new_user
48
- margin-left: 46%
49
- @extend .hidden-phone
50
- .password
51
- width: 27%
52
- float: right
53
- display: inline-block
54
- padding: 5px 15px
55
- margin: 27px 20% 0 14px
56
- h3
57
- margin-top: 0px
58
- #remember
59
- display: inilne
60
- float: left
61
- input
62
- &[type="submit"]
63
- float: right
64
- display: inline-block
65
- .soften
66
- clear: both
67
- margin: 39px 0 10px
@@ -23,6 +23,8 @@
23
23
  @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
24
24
  @include centered
25
25
  float: left
26
+ background: none
27
+ border: none
26
28
  .characteristics
27
29
  width: 27%
28
30
  margin-left: 2.9%
@@ -43,12 +45,11 @@
43
45
  display: inline !important
44
46
  label
45
47
  display: inline-block
46
- margin-top: 6px
48
+ margin-top: 5px
47
49
  input
48
50
  &[type="submit"]
49
51
  float: right
50
52
  display: inline
51
- margin-top: 10px
52
53
  .soften
53
54
  clear: both
54
55
 
@@ -75,6 +76,7 @@
75
76
  #forgot-pass,
76
77
  #registration
77
78
  .options
79
+ margin-top: 3px
78
80
  a
79
81
  border-right: 1px solid #ccc
80
82
  padding-right: 6px
@@ -39,9 +39,12 @@
39
39
  label
40
40
  font-size: 16px/23px
41
41
 
42
- #forgot-pass
43
- .password
42
+ #forgot-pass,
43
+ #confirmation,
44
+ #login
45
+ .password,
46
+ .confirmation
44
47
  h2
45
48
  font-size: 38px
46
49
  h4
47
- font-size: 20.5depx
50
+ font-size: 20.5px
@@ -24,7 +24,7 @@
24
24
  padding: 0
25
25
  float: none
26
26
  h3
27
- margin: 17px 12px 20px 0
27
+ margin: 0px 12px 0px 0
28
28
  form.new_user
29
29
  padding: 0 10px
30
30
  .login_data
@@ -59,9 +59,13 @@
59
59
 
60
60
 
61
61
 
62
- #forgot-pass
62
+ #forgot-pass,
63
+ #confirmation,
64
+ #login
63
65
  margin-left: 0
64
- .forgot
66
+ .forgot,
67
+ .instructions,
68
+ .change
65
69
  @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
66
70
  margin-top: 0px
67
71
  padding: 0
@@ -75,10 +79,10 @@
75
79
  width: 96% !important
76
80
  padding-left: 4%
77
81
 
78
- .password
82
+ .password,
83
+ .confirmation
79
84
  width: 90%
80
85
  padding: 1% 5%
81
- margin: 2% 0 0 0
82
86
  float: none
83
87
  form
84
88
  margin: 0
@@ -21,14 +21,13 @@
21
21
  margin-top: 18px
22
22
 
23
23
 
24
- #forgot-pass
24
+ #forgot-pass,
25
+ #confirmation
25
26
  h2
26
27
  margin-left: 2% !important
27
28
  #new_user
28
29
  margin-left: 4% !important
29
- .password
30
- width: 40% !important
31
- margin-right: 0 !important
30
+
32
31
 
33
32
 
34
33
 
@@ -82,7 +82,8 @@ header
82
82
  margin-top: 18px
83
83
  position: absolute
84
84
  z-index: 6
85
- .query_too_short
85
+ .query_too_short,
86
+ .no_results
86
87
  padding-top: 23px
87
88
  text-align: center
88
89
  .results
@@ -162,4 +163,4 @@ header
162
163
  margin: 0 0 0
163
164
 
164
165
  .dropdown-toggle
165
- margin-right: 5px
166
+ margin-right: 5px
@@ -1,6 +1,6 @@
1
1
  @mixin btn-primary
2
2
  @include ie7-inline-block()
3
- padding: 4px 12px
3
+ padding: 3px 12px 2px
4
4
  margin-bottom: 0
5
5
  font-size: $baseFontSize
6
6
  line-height: $baseLineHeight
@@ -15,7 +15,6 @@
15
15
  @include box-shadow(inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05))
16
16
  @include transition(background 1s, color, 1s)
17
17
  @include border-radius(7px)
18
-
19
18
  a
20
19
  color: $gray
21
20
 
@@ -16,6 +16,10 @@ class GroupsController < ApplicationController
16
16
  create! do |success, failure|
17
17
  success.html {
18
18
  self.current_subject = resource
19
+
20
+ flash[:notice] += t('representation.notice',
21
+ :subject => resource.name)
22
+
19
23
  redirect_to :home
20
24
  }
21
25
  end
@@ -1,3 +1,18 @@
1
1
  class HomeController < ApplicationController
2
2
  before_filter :authenticate_user!
3
+
4
+ def index
5
+ respond_to do |format|
6
+ format.html
7
+ format.json { render json: home_json }
8
+ end
9
+ end
10
+
11
+ private
12
+
13
+ def home_json
14
+ {
15
+ name: current_subject.name
16
+ }.to_json
17
+ end
3
18
  end
@@ -35,7 +35,7 @@ class SearchController < ApplicationController
35
35
  @search_result
36
36
  )
37
37
 
38
- render :json => json_obj
38
+ render :json => json_obj.as_json(helper: self)
39
39
  }
40
40
 
41
41
  format.js
@@ -45,8 +45,8 @@ class SearchController < ApplicationController
45
45
  private
46
46
 
47
47
  def search mode
48
- page = ( mode == "quick" ? 1 : params[:page] )
49
- limit = ( mode == "quick" ? 7 : RESULTS_SEARCH_PER_PAGE )
48
+ page = ( mode == :quick ? 1 : params[:page] )
49
+ limit = ( mode == :quick ? 7 : RESULTS_SEARCH_PER_PAGE )
50
50
 
51
51
  SocialStream::Search.search(params[:q],
52
52
  current_subject,
@@ -0,0 +1 @@
1
+ AvatarsController.send :include, SocialStream::Controllers::Avatars
@@ -0,0 +1,4 @@
1
+ Deface::Override.new(:virtual_path => "avatars/_crop",
2
+ :name => "add_actor_id",
3
+ :insert_after => "code[erb-loud]:contains('form_for')",
4
+ :text => "<%= hidden_field_tag 'actor_id', avatarable.id %>")
@@ -0,0 +1,4 @@
1
+ Deface::Override.new(:virtual_path => "avatars/_form",
2
+ :name => "add_actor_id",
3
+ :insert_after => "code[erb-loud]:contains('form_for')",
4
+ :text => "<%= hidden_field_tag 'actor_id', avatarable.id %>")
@@ -5,10 +5,10 @@
5
5
  <h3><%= t 'contact.new.modal.title' %></h3>
6
6
  </div>
7
7
  <div class="modal-body">
8
- <%= label_tag 'actors', t('actor.title.other') %>
8
+ <%= label_tag 'actors', Array.wrap(type).map{ |t| t('title.other', scope: t) }.to_sentence %>
9
9
  <%= text_field_tag 'actors', '', 'data-path' => actors_path(stranger: true, sender_id: Actor.normalize_id(sender)), 'data-type' => Array.wrap(type).compact.join(','), placeholder: t('contact.new.modal.placeholder.actors') %>
10
10
 
11
- <%= label_tag 'relations', t('activerecord.attributes.contact.relation_ids') %>
11
+ <%= label_tag 'relations', t('contact.new_modal.label.relations') %>
12
12
  <%= select_tag 'relations', contact_select_options(sender.options_for_contact_select), multiple: true, "data-placeholder" => t('contact.new.modal.placeholder.actors') %>
13
13
  </div>
14
14
  <div class="modal-footer">
@@ -1,19 +1,24 @@
1
1
  <section id="confirmation">
2
- <header>
3
- <h2>Resend confirmation instructions</h2>
4
- </header>
5
- <section class="confirmation">
6
- <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
7
- <%= devise_error_messages! %>
2
+ <section class="instructions">
3
+ <header>
4
+ <h3>
5
+ Resend confirmation instructions
6
+ </h3>
7
+
8
+ <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
9
+ <%= devise_error_messages! %>
10
+ </header>
11
+ <section class="confirmation">
12
+ <%= f.label :email %>
8
13
 
9
- <div><%= f.label :email %><br />
10
- <%= f.email_field :email, :autofocus => true %></div>
14
+ <%= f.email_field :email, :autofocus => true %>
11
15
 
12
- <div><%= f.submit "Resend confirmation instructions" %></div>
16
+ <%= f.submit "Resend confirmation instructions" %>
13
17
 
14
18
  <hr class="soften">
15
19
 
16
20
  <%= render "devise/shared/links" %>
21
+ </section>
17
22
  <% end %>
18
23
  </section>
19
24
  </section>
@@ -1,30 +1,27 @@
1
- <div id="login">
2
- <h2>
3
- <%= t('devise.passwords.update') %>
4
- </h2>
5
- </div>
6
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
7
- <%= devise_error_messages! %>
8
- <%= f.hidden_field :reset_password_token %>
9
- <div class="line">
10
- <div class="label">
11
- <%= f.label :password %>
12
- </div>
13
- <div class="field">
14
- <%= f.password_field :password, :class =>"field_x" %>
15
- </div>
16
- </div>
17
- <div class="line">
18
- <div class="label">
19
- <%= f.label :password_confirmation %>
20
- </div>
21
- <div class="field">
22
- <%= f.password_field :password_confirmation, :class =>"field_x" %>
23
- </div>
24
- </div>
1
+ <section id="login">
2
+ <section class="change">
3
+ <header>
4
+ <h3>
5
+ <%= t('devise.passwords.update') %>
6
+ </h3>
25
7
 
8
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
9
+ <%= devise_error_messages! %>
10
+ <%= f.hidden_field :reset_password_token %>
11
+ </header>
26
12
 
27
- <%= f.submit "Change my password", :class =>"btn" %>
13
+ <div class="password">
14
+ <%= f.label :password %>
28
15
 
29
- <% end %>
16
+ <%= f.password_field :password, :class =>"field_x" %>
17
+
18
+ <%= f.label :password_confirmation %>
19
+
20
+ <%= f.password_field :password_confirmation, :class =>"field_x" %>
21
+
22
+ <%= f.submit "Change my password", :class =>"btn" %>
23
+ </div>
24
+ <% end %>
25
+ </section>
26
+ </section>
30
27