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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/base/app/assets/javascripts/social_stream/comment.js +1 -1
- data/base/app/assets/javascripts/social_stream/search_header.js +26 -4
- data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +1 -0
- data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_devise.css.sass +5 -3
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_devise.css.sass +7 -37
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_frontpage.css.sass +4 -2
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-1200px-min.css.sass +6 -3
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-767px-max.css.sass +9 -5
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/responsive/_responsive-768px-979px.css.sass +3 -4
- data/base/app/assets/stylesheets/social_stream/base/layouts/_header.css.sass +3 -2
- data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +1 -2
- data/base/app/controllers/groups_controller.rb +4 -0
- data/base/app/controllers/home_controller.rb +15 -0
- data/base/app/controllers/search_controller.rb +3 -3
- data/base/app/decorators/avatars_controller_decorator.rb +1 -0
- data/base/app/overrides/avatars/_crop/add_actor_id.rb +4 -0
- data/base/app/overrides/avatars/_form/add_actor_id.rb +4 -0
- data/base/app/views/contacts/_new_modal.html.erb +2 -2
- data/base/app/views/devise/confirmations/new.html.erb +14 -9
- data/base/app/views/devise/passwords/edit.html.erb +23 -26
- data/base/app/views/devise/passwords/new.html.erb +7 -3
- data/base/app/views/devise/registrations/_edit_user.html.erb +1 -1
- data/base/app/views/devise/registrations/new.html.erb +4 -8
- data/base/app/views/devise/shared/_links.erb +1 -3
- data/base/app/views/groups/_form.html.erb +2 -1
- data/base/app/views/layouts/_header_dropdown_menu_sessions.html.erb +1 -1
- data/base/app/views/layouts/_header_signed_in.erb +22 -26
- data/base/app/views/profiles/_personal_edit.html.erb +2 -2
- data/base/config/locales/de.yml +7 -0
- data/base/config/locales/devise.de.yml +61 -0
- data/base/config/locales/devise.fr.yml +61 -0
- data/base/config/locales/devise.hu.yml +60 -0
- data/base/config/locales/devise.nl.yml +60 -0
- data/base/config/locales/en.yml +5 -1
- data/base/config/locales/es.yml +8 -1
- data/base/config/locales/fr.yml +7 -0
- data/base/config/locales/hu.yml +22 -15
- data/base/config/locales/nl.yml +7 -0
- data/base/config/locales/pt.yml +7 -0
- data/base/config/locales/zh.yml +7 -0
- data/base/lib/social_stream/base/autoload.rb +1 -0
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/social_stream/controllers/authorship.rb +2 -1
- data/base/lib/social_stream/controllers/avatars.rb +14 -0
- data/base/lib/social_stream/controllers/helpers.rb +3 -3
- data/base/lib/social_stream/controllers/objects.rb +6 -7
- data/base/lib/tasks/i18n.rake +148 -0
- data/base/social_stream-base.gemspec +2 -1
- data/config/locales/en.yml +2 -1
- data/config/locales/es.yml +2 -1
- data/documents/app/controllers/documents_controller.rb +26 -16
- data/documents/app/models/document.rb +4 -3
- data/documents/app/models/video.rb +11 -9
- data/documents/app/views/audios/_audio_show.html.erb +1 -1
- data/documents/app/views/videos/_video_show.html.erb +1 -1
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +2 -1
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +2 -1
- data/lib/social_stream/version.rb +1 -1
- data/linkser/lib/social_stream/linkser/version.rb +1 -1
- data/linkser/social_stream-linkser.gemspec +2 -1
- data/oauth2_server/app/models/site/client.rb +16 -0
- data/oauth2_server/app/views/site/clients/_edit.html.erb +6 -0
- data/oauth2_server/app/views/site/clients/_edit_step_2.html.erb +1 -1
- data/oauth2_server/app/views/site/clients/_edit_step_3.html.erb +1 -2
- data/oauth2_server/app/views/site/clients/_form.html.erb +1 -1
- data/oauth2_server/config/locales/en.yml +1 -1
- data/oauth2_server/config/locales/es.yml +2 -1
- data/oauth2_server/config/locales/zh.yml +1 -0
- data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
- data/oauth2_server/social_stream-oauth2_server.gemspec +2 -1
- data/ostatus/app/controllers/remote_subjects_controller.rb +1 -1
- data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
- data/ostatus/social_stream-ostatus.gemspec +2 -1
- data/places/social_stream-places.gemspec +1 -0
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/social_stream-presence.gemspec +2 -1
- data/social_stream.gemspec +7 -7
- metadata +25 -18
- data/base/app/views/home/index.js.erb +0 -5
- data/lib/tasks/i18n.rake +0 -75
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc06263fd2bffcf4bec63bfe7f4c5a9184caeed0
|
4
|
+
data.tar.gz: 8f0e46f8b9f88a0c8e1dee0b556347c0755261e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea106a1702192f94169d86773e8b103fa915df56515cd3ef8a932545a70986d49b703fd7eecc407045f2d8a4a3e6309a6c750e86003f33be6ab8c8e46217af19
|
7
|
+
data.tar.gz: 08e85db4c099875c13e14cd99ee9769285eabeeb2c55b3694a08d4a170cd25074d48877c6c6d0b6600d2e8904328df6308427470e2cabfdeadf2548f6b7299e1
|
data/Rakefile
CHANGED
@@ -57,7 +57,7 @@ SocialStream.Comment = (function(SS, $, undefined){
|
|
57
57
|
};
|
58
58
|
|
59
59
|
var hideNewActivityCommentElements = function(options){
|
60
|
-
var newDiv = $('#
|
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
|
-
|
8
|
-
$('input.search-query',
|
9
|
-
$('.
|
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({
|
@@ -19,14 +19,16 @@
|
|
19
19
|
font-size: 12px
|
20
20
|
|
21
21
|
|
22
|
-
#forgot-pass
|
23
|
-
|
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"]
|
data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_devise.css.sass
CHANGED
@@ -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
|
data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/layout/_frontpage.css.sass
CHANGED
@@ -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:
|
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
|
@@ -24,7 +24,7 @@
|
|
24
24
|
padding: 0
|
25
25
|
float: none
|
26
26
|
h3
|
27
|
-
margin:
|
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
|
@@ -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:
|
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
|
|
@@ -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 ==
|
49
|
-
limit = ( mode ==
|
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
|
@@ -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('
|
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('
|
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
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
10
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
14
|
+
<%= f.email_field :email, :autofocus => true %>
|
11
15
|
|
12
|
-
|
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
|
-
<
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
13
|
+
<div class="password">
|
14
|
+
<%= f.label :password %>
|
28
15
|
|
29
|
-
|
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
|
|