social_stream 2.0.0.beta2 → 2.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.rdoc +5 -4
- data/Rakefile +1 -1
- data/base/app/assets/images/icons/files_ico-50.png +0 -0
- data/base/app/assets/images/icons/files_ico-70.png +0 -0
- data/base/app/assets/images/logos/medium/group.png +0 -0
- data/base/app/assets/images/logos/medium/user.png +0 -0
- data/base/app/assets/images/logos/original/group.png +0 -0
- data/base/app/assets/images/logos/original/user.png +0 -0
- data/base/app/assets/images/logos/small/group.png +0 -0
- data/base/app/assets/images/logos/small/user.png +0 -0
- data/base/app/assets/javascripts/social_stream/contact.js +23 -56
- data/base/app/assets/javascripts/social_stream/object.js +5 -0
- data/base/app/assets/javascripts/social_stream/relation_customs.js +1 -1
- data/base/app/assets/javascripts/social_stream/wall.js +1 -0
- data/base/app/assets/stylesheets/social_stream-base.css.sass +81 -2
- data/base/app/assets/stylesheets/social_stream/base/adjust.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/{_adjust.css.sass → adjust/_adjust.css.sass} +1 -5
- data/base/app/assets/stylesheets/social_stream/base/adjust/layout/_adjust.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/buttons.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/{_buttons.scss.sass → buttons/_buttons.scss.sass} +0 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/_contacts.css.sass +12 -7
- data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +35 -27
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-1200px-min.css.sass +13 -3
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-767px-max.css.sass +38 -3
- data/base/app/assets/stylesheets/social_stream/base/conversation.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/_conversation.css.sass +3 -3
- data/base/app/assets/stylesheets/social_stream/base/conversation/layout/_conversation.css.sass +3 -0
- data/base/app/assets/stylesheets/social_stream/base/conversation/responsive/_responsive-767px-max.css.sass +4 -1
- data/base/app/assets/stylesheets/social_stream/base/explore.css.sass +18 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore.css.sass +8 -3
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore-search.css.sass +1 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore-timeline.css.sass +9 -5
- data/base/app/assets/stylesheets/social_stream/base/explore/layout/_explore.css.sass +4 -5
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-1200px-min.css.sass +12 -10
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-767px-max.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/explore/responsive/_responsive-768px-979px.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/footer.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +4 -3
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise.css.sass +16 -0
- data/base/app/assets/stylesheets/social_stream/base/groups/_groups.css.sass +17 -0
- data/base/app/assets/stylesheets/social_stream/base/{_groups.css.sass → groups/layout/_groups.css.sass} +2 -7
- data/base/app/assets/stylesheets/social_stream/base/icons.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/icons/icon.css.css +52 -38
- data/base/app/assets/stylesheets/social_stream/base/jquery-ui.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/{_jquery-ui.css.sass → jquery-ui/_jquery-ui.css.sass} +0 -0
- data/base/app/assets/stylesheets/social_stream/base/layouts.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/layouts/_header.css.sass +10 -5
- data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +4 -2
- data/base/app/assets/stylesheets/social_stream/base/logo.css.sass +7 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +11 -12
- data/base/app/assets/stylesheets/social_stream/base/mixins/_colorfont.css.sass +2 -1
- data/base/app/assets/stylesheets/social_stream/base/notifications.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/profile.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +29 -19
- data/base/app/assets/stylesheets/social_stream/base/profile/layout/_profile.css.sass +42 -47
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-1200px-min.css.sass +2 -4
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-767px-max.css.sass +12 -4
- data/base/app/assets/stylesheets/social_stream/base/profile/responsive/_responsive-768px-979px.css.sass +4 -5
- data/base/app/assets/stylesheets/social_stream/base/responsive.css.sass +6 -0
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-1200px-min.css.sass +7 -4
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-767px-max.css.sass +1 -2
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-768px-979px.css.sass +4 -1
- data/base/app/assets/stylesheets/social_stream/base/search.css.sass +2 -0
- data/base/app/assets/stylesheets/social_stream/base/select2.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/settings.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/_settings.css.sass +1 -2
- data/base/app/assets/stylesheets/social_stream/base/settings/layout/_settings.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/settings/responsive/_responsive-767px-max.css.sass +2 -1
- data/base/app/assets/stylesheets/social_stream/base/settings/responsive/_responsive-768px-979px.css.sass +4 -2
- data/base/app/assets/stylesheets/social_stream/base/sidebar.css.sass +8 -0
- data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +4 -1
- data/base/app/assets/stylesheets/social_stream/base/timeline.css.sass +14 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/_timeline.css.sass +4 -9
- data/base/app/assets/stylesheets/social_stream/base/timeline/_wrapper_activities.css.sass +4 -2
- data/base/app/assets/stylesheets/social_stream/base/timeline/layout/_timeline.css.sass +34 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/responsive/_responsive-1200px-min.css.sass +14 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/responsive/_responsive-767px-max.css.sass +28 -0
- data/base/app/assets/stylesheets/social_stream/base/timeline/responsive/_responsive-768px-979px.css.sass +14 -0
- data/base/app/assets/stylesheets/social_stream/base/toolbar.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +28 -8
- data/base/app/assets/stylesheets/social_stream/base/toolbar/responsive/_responsive-1200px-min.css.sass +1 -2
- data/base/app/assets/stylesheets/social_stream/base/toolbar/responsive/_responsive-767px-max.css.sass +14 -2
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_button-groups.scss +1 -1
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_forms.scss +8 -0
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_nav.scss +4 -0
- data/base/app/assets/stylesheets/social_stream/fonts/JosefinSlabOverlay.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/JosefinSlabRegular-Outline.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/JosefinSlabRegular.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/colorfont.css +4 -4
- data/base/app/assets/stylesheets/social_stream/fonts/fonts.css +4 -4
- data/base/app/assets/stylesheets/social_stream/fonts/social-stream:fonts:colorfont.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/fonts/social-stream:fonts:fonts.css.sass +5 -0
- data/base/app/controllers/repositories_controller.rb +2 -3
- data/base/app/helpers/contacts_helper.rb +30 -17
- data/base/app/models/activity_object.rb +16 -17
- data/base/app/models/profile.rb +0 -4
- data/base/app/views/activities/_root.html.erb +1 -1
- data/base/app/views/activities/_timeline_modal.html.erb +2 -2
- data/base/app/views/contacts/_contact.html.erb +2 -2
- data/base/app/views/contacts/index.html.erb +6 -0
- data/base/app/views/explore/_followed.html.erb +6 -6
- data/base/app/views/groups/{_new.html.erb → _form.html.erb} +4 -7
- data/base/app/views/groups/_new_modal.html.erb +11 -0
- data/base/app/views/groups/new.html.erb +5 -1
- data/base/app/views/layouts/_footer.html.erb +1 -1
- data/base/app/views/layouts/application.html.erb +7 -8
- data/base/app/views/profiles/_avatar.html.erb +9 -9
- data/base/app/views/profiles/_comunication-info.html.erb +8 -8
- data/base/app/views/profiles/_experience.html.erb +15 -15
- data/base/app/views/profiles/_personal.html.erb +13 -12
- data/base/app/views/profiles/_profile.html.erb +33 -26
- data/base/app/views/profiles/_tags.html.erb +8 -12
- data/base/app/views/subjects/_subject.html.erb +1 -1
- data/base/app/views/toolbar/_logo.html.erb +6 -7
- data/base/app/views/toolbar/_profile.html.erb +9 -12
- data/base/config/locales/en.yml +462 -444
- data/base/config/locales/es.yml +464 -461
- data/base/config/locales/pt.yml +504 -379
- data/base/config/locales/zh.yml +479 -409
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/social_stream/population/actor.rb +10 -0
- data/base/lib/social_stream/search.rb +11 -2
- data/base/lib/tasks/db/populate.rake +57 -16
- data/base/social_stream-base.gemspec +1 -1
- data/base/spec/views/profiles_spec.rb +5 -3
- data/documents/app/assets/javascripts/social_stream/audio.js.erb +5 -5
- data/documents/app/assets/javascripts/social_stream/documents.timeline.js +24 -6
- data/documents/app/assets/javascripts/social_stream/documents.wall.js +37 -32
- data/documents/app/assets/javascripts/social_stream/video.js +33 -0
- data/documents/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +3 -0
- data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +12 -7
- data/documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-1200px-min.css.sass +8 -1
- data/documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-767px-max.css.sass +27 -2
- data/documents/app/assets/stylesheets/social_stream/documents/show/_show.css.sass +29 -0
- data/documents/app/assets/stylesheets/social_stream/documents/show/layout/_show.css.sass +36 -0
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +27 -12
- data/documents/app/views/audios/_audio_processed.html.erb +5 -46
- data/documents/app/views/audios/_audio_show.html.erb +16 -57
- data/documents/app/views/audios/_player.html.erb +42 -0
- data/documents/app/views/common_documents/_index.html.erb +3 -5
- data/documents/app/views/videos/_player.html.erb +36 -0
- data/documents/app/views/videos/_video_processed.html.erb +5 -43
- data/documents/app/views/videos/_video_show.html.erb +10 -60
- data/documents/config/locales/en.yml +67 -67
- data/documents/config/locales/es.yml +67 -64
- data/documents/config/locales/zh.yml +90 -0
- data/documents/lib/generators/social_stream/documents/templates/initializer.rb +1 -1
- data/documents/lib/social_stream-documents.rb +1 -1
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/events/app/assets/javascripts/social_stream/fullcalendar.js +14 -2
- data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-767px-max.css.sass +12 -9
- data/events/app/controllers/events_controller.rb +7 -1
- data/events/app/views/events/_details.html.erb +18 -16
- data/events/app/views/events/_show_modal.html.erb +10 -0
- data/events/app/views/sidebar/_calendar.html.erb +1 -1
- data/events/config/locales/en.yml +32 -31
- data/events/config/locales/es.yml +32 -32
- data/events/config/locales/zh.yml +57 -0
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/lib/social_stream/components.rb +4 -0
- data/lib/social_stream/version.rb +1 -1
- data/lib/tasks/i18n.rake +55 -0
- data/linkser/app/assets/javascripts/social_stream/linkser.wall.js +12 -6
- data/linkser/app/assets/stylesheets/social_stream/linkser/repository/layout/_repository.css.sass +1 -0
- data/linkser/app/assets/stylesheets/social_stream/linkser/timeline/layout/_timeline-link.css.sass +6 -1
- data/linkser/app/views/links/_new_activity.html.erb +0 -1
- data/linkser/app/views/links/_timeline.html.erb +1 -1
- data/linkser/config/locales/en.yml +12 -11
- data/linkser/config/locales/es.yml +12 -11
- data/linkser/config/locales/zh.yml +17 -0
- data/linkser/lib/social_stream/linkser/version.rb +1 -1
- data/linkser/social_stream-linkser.gemspec +1 -1
- data/linkser/vendor/assets/jplayer.blue.monday.video.play.hover.png +0 -0
- data/linkser/vendor/assets/jplayer.blue.monday.video.play.png +0 -0
- data/linkser/vendor/assets/stylesheets/jplayer.blue.monday.png +0 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/_applications-oauth2server.css.sass +1 -1
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/_show-oauth2server.css.sass +1 -1
- data/oauth2_server/app/views/site/clients/show.html.erb +5 -1
- data/oauth2_server/config/locales/en.yml +16 -15
- data/oauth2_server/config/locales/es.yml +20 -19
- data/oauth2_server/config/locales/zh.yml +30 -0
- data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
- data/oauth2_server/social_stream-oauth2_server.gemspec +1 -1
- data/ostatus/Rakefile +1 -2
- data/ostatus/config/locales/en.yml +34 -33
- data/ostatus/config/locales/zh.yml +35 -0
- data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
- data/ostatus/social_stream-ostatus.gemspec +1 -1
- data/places/config/locales/en.yml +58 -67
- data/places/config/locales/es.yml +60 -61
- data/presence/app/assets/stylesheets/social_stream/presence/_toolbar-chat.css.sass +2 -2
- data/presence/config/locales/en.yml +45 -43
- data/presence/config/locales/es.yml +45 -43
- data/presence/config/locales/zh.yml +69 -0
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/social_stream-presence.gemspec +1 -1
- data/social_stream.gemspec +7 -7
- metadata +68 -44
- data/base/app/assets/stylesheets/social_stream/fonts/BreeSerif-Regular.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP-Original.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP-Outline.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP-Overlay.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP/DIN_OSP-Original.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP/DIN_OSP-Outline.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/DIN_OSP/DIN_OSP-Overlay.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/RockSalt.ttf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SIL OFL Font License - Source Sans Pro.txt +0 -93
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Black.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-BlackIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Bold.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-BoldIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-ExtraLight.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-ExtraLightIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-It.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Light.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-LightIt.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Regular.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-Semibold.otf +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/source-sans-pro/SourceSansPro-SemiboldIt.otf +0 -0
- data/documents/app/assets/javascripts/social_stream/video.js.erb +0 -42
@@ -104,12 +104,21 @@ module SocialStream
|
|
104
104
|
options[:mode] ||= :extended
|
105
105
|
|
106
106
|
models = models(options[:mode], options[:key])
|
107
|
-
|
107
|
+
|
108
|
+
with = {}
|
109
|
+
|
110
|
+
if options[:owner].present?
|
111
|
+
with[:owner_id] = Actor.normalize_id(options[:owner])
|
112
|
+
end
|
113
|
+
|
114
|
+
if subject != options[:owner] || options[:owner].blank?
|
115
|
+
with[:relation_ids] = Relation.ids_shared_with(subject)
|
116
|
+
end
|
108
117
|
|
109
118
|
[
|
110
119
|
query,
|
111
120
|
:classes => models,
|
112
|
-
:with =>
|
121
|
+
:with => with
|
113
122
|
]
|
114
123
|
end
|
115
124
|
end
|
@@ -78,16 +78,6 @@ namespace :db do
|
|
78
78
|
puts 'Groups population (' + @GROUPS.to_s + ' groups)'
|
79
79
|
groups_start = Time.now
|
80
80
|
|
81
|
-
def set_tags(klass)
|
82
|
-
klass.all.each do |el|
|
83
|
-
el.tag_list = Forgery::LoremIpsum.words(1,:random => true)+", "+
|
84
|
-
Forgery::LoremIpsum.words(1,:random => true)+", "+
|
85
|
-
Forgery::LoremIpsum.words(1,:random => true)
|
86
|
-
el.save!
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
|
91
81
|
@GROUPS.times do
|
92
82
|
founder = @available_actors[rand(@available_actors.size)]
|
93
83
|
|
@@ -97,8 +87,6 @@ namespace :db do
|
|
97
87
|
:user_author_id => founder.id
|
98
88
|
end
|
99
89
|
|
100
|
-
set_tags(Group)
|
101
|
-
|
102
90
|
# Reload actors to include groups
|
103
91
|
@available_actors = Actor.all
|
104
92
|
|
@@ -106,6 +94,60 @@ namespace :db do
|
|
106
94
|
puts ' -> ' + (groups_end - groups_start).round(4).to_s + 's'
|
107
95
|
end
|
108
96
|
|
97
|
+
desc "Populate profiles"
|
98
|
+
|
99
|
+
task :profiles => :read_environment do
|
100
|
+
puts "Profiles population"
|
101
|
+
time = Time.now
|
102
|
+
|
103
|
+
SocialStream::Population::Actor.available.each do |a|
|
104
|
+
p = a.profile
|
105
|
+
|
106
|
+
if rand < 0.2
|
107
|
+
a.tag_list = Forgery::LoremIpsum.words(3, random: true).gsub(' ', ',')
|
108
|
+
end
|
109
|
+
|
110
|
+
if rand < 0.2
|
111
|
+
p.organization = Forgery::Name.company_name
|
112
|
+
end
|
113
|
+
|
114
|
+
if rand < 0.2
|
115
|
+
p.birthday = Time.at(Time.now.to_i - (18.years + rand(60.years)))
|
116
|
+
end
|
117
|
+
|
118
|
+
if rand < 0.2
|
119
|
+
p.city = Forgery::Address.city
|
120
|
+
end
|
121
|
+
|
122
|
+
if rand < 0.2
|
123
|
+
p.country = Forgery::Address.country
|
124
|
+
end
|
125
|
+
|
126
|
+
if rand < 0.2
|
127
|
+
p.description = Forgery::LoremIpsum.sentences(2, random: true)
|
128
|
+
end
|
129
|
+
|
130
|
+
if rand < 0.2
|
131
|
+
p.phone = Forgery::Address.phone
|
132
|
+
end
|
133
|
+
|
134
|
+
if rand < 0.2
|
135
|
+
p.address = Forgery::Address.street_address
|
136
|
+
end
|
137
|
+
|
138
|
+
if rand < 0.2
|
139
|
+
p.website = "http://#{ Forgery::Internet.domain_name }"
|
140
|
+
end
|
141
|
+
|
142
|
+
if rand < 0.2
|
143
|
+
p.experience = Forgery::LoremIpsum.sentences(3, random: true)
|
144
|
+
end
|
145
|
+
|
146
|
+
p.save!
|
147
|
+
end
|
148
|
+
|
149
|
+
puts ' -> ' + (Time.now - time).round(4).to_s + 's'
|
150
|
+
end
|
109
151
|
|
110
152
|
# TIES
|
111
153
|
desc "Create ties"
|
@@ -113,8 +155,7 @@ namespace :db do
|
|
113
155
|
puts 'Ties population'
|
114
156
|
ties_start = Time.now
|
115
157
|
|
116
|
-
|
117
|
-
actors = @available_actors.dup
|
158
|
+
SocialStream::Population::Actor.available.each do |a|
|
118
159
|
actors.delete(a)
|
119
160
|
|
120
161
|
relations = a.relation_customs + [ Relation::Reject.instance ]
|
@@ -145,8 +186,8 @@ namespace :db do
|
|
145
186
|
puts 'Ties population (Cheesecake version)'
|
146
187
|
ties_start = Time.now
|
147
188
|
|
148
|
-
|
149
|
-
actors =
|
189
|
+
SocialStream::Population::Actor.available.each do |a|
|
190
|
+
actors = SocialStream::Population::Actor.available - Array(a)
|
150
191
|
relations = a.relation_customs + Array.wrap(Relation::Reject.instance)
|
151
192
|
break if actors.size==0
|
152
193
|
actor = Actor.first
|
@@ -57,7 +57,7 @@ Gem::Specification.new do |s|
|
|
57
57
|
# Syntactically Awesome Stylesheets
|
58
58
|
s.add_runtime_dependency('sass-rails', '>= 3.1.0')
|
59
59
|
# Bootstrap for Sass
|
60
|
-
s.add_runtime_dependency('bootstrap-sass', '~> 2.
|
60
|
+
s.add_runtime_dependency('bootstrap-sass', '~> 2.3.1.0')
|
61
61
|
# Customize ERB views
|
62
62
|
s.add_runtime_dependency('deface', '~> 0.9.1')
|
63
63
|
# Autolink text blocks
|
@@ -14,7 +14,9 @@ describe 'profiles/show' do
|
|
14
14
|
email: "other-user@test.com",
|
15
15
|
language: 'en',
|
16
16
|
to_param: "other-user",
|
17
|
-
contact_to!: stub_model(Contact, { id: 3 })
|
17
|
+
actor: stub_model(Actor, { contact_to!: stub_model(Contact, { id: 3 })}),
|
18
|
+
contact_to!: stub_model(Contact, { id: 3 }),
|
19
|
+
suggestions: []
|
18
20
|
})
|
19
21
|
}
|
20
22
|
|
@@ -27,8 +29,6 @@ describe 'profiles/show' do
|
|
27
29
|
to_param: "test-group" } ) }
|
28
30
|
|
29
31
|
before do
|
30
|
-
view.stub(:sidebar)
|
31
|
-
|
32
32
|
assign :profile, profile
|
33
33
|
end
|
34
34
|
|
@@ -59,6 +59,7 @@ describe 'profiles/show' do
|
|
59
59
|
before do
|
60
60
|
view.stub(:current_subject).and_return(other_user)
|
61
61
|
view.stub(:current_user).and_return(other_user)
|
62
|
+
view.stub(:current_actor).and_return(other_user.actor)
|
62
63
|
view.stub(:profile_or_current_subject).and_return(other_user)
|
63
64
|
view.stub(:user_signed_in?).and_return(true)
|
64
65
|
view.stub(:can?).and_return(false)
|
@@ -76,6 +77,7 @@ describe 'profiles/show' do
|
|
76
77
|
before do
|
77
78
|
view.stub(:current_subject).and_return(other_user)
|
78
79
|
view.stub(:current_user).and_return(other_user)
|
80
|
+
view.stub(:current_actor).and_return(other_user.actor)
|
79
81
|
view.stub(:profile_or_current_subject).and_return(other_user)
|
80
82
|
view.stub(:user_signed_in?).and_return(true)
|
81
83
|
view.stub(:can?).and_return(false)
|
@@ -5,20 +5,20 @@ SocialStream.Audio = (function(SS, $, undefined){
|
|
5
5
|
|
6
6
|
var initJplayer = function(){
|
7
7
|
$(".jp-audio .jp-jplayer").each(function() {
|
8
|
+
var container = $(this).closest('.audio-container');
|
9
|
+
|
8
10
|
$(this).jPlayer({
|
9
11
|
ready: function () {
|
10
12
|
$(this).jPlayer("setMedia", {
|
11
|
-
webma:
|
13
|
+
webma: container.attr("data-url-webma")
|
12
14
|
});
|
13
15
|
},
|
14
16
|
preload: "none",
|
15
17
|
supplied: "webma",
|
16
|
-
swfPath:
|
17
|
-
cssSelectorAncestor: "#" +
|
18
|
+
swfPath: container.attr('data-url-swfplayer'),
|
19
|
+
cssSelectorAncestor: "#" + container.attr("id")
|
18
20
|
})
|
19
21
|
});
|
20
|
-
|
21
|
-
$(".format-links").hide();
|
22
22
|
}
|
23
23
|
|
24
24
|
callback.register('show', initJplayer);
|
@@ -2,10 +2,28 @@
|
|
2
2
|
//= require social_stream/audio
|
3
3
|
//= require social_stream/video
|
4
4
|
|
5
|
-
SocialStream.Timeline
|
6
|
-
|
7
|
-
|
5
|
+
SocialStream.Documents.Timeline = (function(SS, $, undefined) {
|
6
|
+
var initVideos = function() {
|
7
|
+
$(".video-container").hide();
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
$(".video .play_over").click(function(){
|
10
|
+
var video = $(this).closest(".video");
|
11
|
+
|
12
|
+
video.find(".thumb").hide();
|
13
|
+
video.find(".text").hide();
|
14
|
+
video.find(".jp-video-play").hide();
|
15
|
+
video.find(".video-container").show();
|
16
|
+
video.find(".jp-jplayer").jPlayer("play", 0);
|
17
|
+
});
|
18
|
+
};
|
19
|
+
|
20
|
+
SocialStream.Timeline.callbackRegister('show',
|
21
|
+
SocialStream.Audio.show,
|
22
|
+
SocialStream.Video.show,
|
23
|
+
initVideos);
|
24
|
+
|
25
|
+
SocialStream.Timeline.callbackRegister('update',
|
26
|
+
SocialStream.Audio.show,
|
27
|
+
SocialStream.Video.show,
|
28
|
+
initVideos);
|
29
|
+
})(SocialStream, jQuery);
|
@@ -1,48 +1,53 @@
|
|
1
1
|
//= require social_stream/wall
|
2
2
|
|
3
|
-
SocialStream.Wall
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
3
|
+
SocialStream.Documents.Wall = (function(SS, $, undefined) {
|
4
|
+
var initWall = function() {
|
5
|
+
$('<label/>', {
|
6
|
+
"for": 'new_document_title',
|
7
|
+
style: 'display: none;',
|
8
|
+
text: I18n.t('activerecord.attributes.document.title')
|
9
|
+
}).insertBefore($('#post_text'));
|
10
|
+
|
11
|
+
$('<textarea/>', {
|
12
|
+
name: 'document[description]',
|
13
|
+
id: 'new_document_description',
|
14
|
+
'class': 'document_description',
|
15
|
+
style: 'display: none;',
|
16
|
+
placeholder: I18n.t('document.description.input')
|
17
|
+
}).insertAfter($('#post_text'));
|
18
|
+
|
19
|
+
$('.wall_input form').
|
20
|
+
attr('enctype', 'multipart/form-data'); // this is ignored if done after creating the file input
|
21
|
+
|
22
|
+
$('<input>', {
|
23
|
+
name: 'document[file]',
|
24
|
+
type: 'file',
|
25
|
+
style: 'visibility: hidden; position: absolute'
|
26
|
+
}).insertAfter('.wall_input textarea.document_description');
|
27
|
+
|
28
|
+
$('.wall_input button.new_document').click(function(event){
|
29
|
+
event.preventDefault();
|
30
|
+
|
31
|
+
$('label[for="new_document_title"]').show();
|
23
32
|
|
24
33
|
$('#post_text').
|
25
34
|
attr('name', 'document[title]').
|
26
35
|
attr('placeholder', I18n.t('document.title.input'));
|
27
36
|
|
28
|
-
$('
|
29
|
-
name: 'document[file]',
|
30
|
-
type: 'file',
|
31
|
-
style: 'display: none;'
|
32
|
-
}).insertAfter('.wall_input textarea.document_description');
|
37
|
+
$('#new_document_description').show().val($('#post_text').val());
|
33
38
|
|
34
39
|
SocialStream.Wall.changeAction($(this).attr('data-path'));
|
35
|
-
$('.wall_input form').
|
36
|
-
attr('enctype', 'multipart/form-data'); // this is ignored if done after creating the file input
|
37
40
|
|
38
|
-
|
41
|
+
SocialStream.Wall.changeOwner('document');
|
39
42
|
SocialStream.Wall.changeRelationSelect('document');
|
40
|
-
}
|
41
43
|
|
42
|
-
|
44
|
+
$('.wall_input input[type=file]').trigger('click');
|
45
|
+
});
|
43
46
|
|
44
47
|
$('.wall_input input[type=file]').change(function(){
|
45
48
|
$("#post_text").val($(this).val().replace(/C:\\fakepath\\/i, ''));
|
46
49
|
});
|
47
|
-
}
|
48
|
-
|
50
|
+
};
|
51
|
+
|
52
|
+
SS.Wall.callbackRegister('show', initWall);
|
53
|
+
})(SocialStream, jQuery);
|
@@ -0,0 +1,33 @@
|
|
1
|
+
//= require social_stream/callback
|
2
|
+
|
3
|
+
SocialStream.Video = (function(SS, $, undefined){
|
4
|
+
var callback = new SS.Callback();
|
5
|
+
|
6
|
+
var initJplayer = function(){
|
7
|
+
$(".jp-video .jp-jplayer").each(function() {
|
8
|
+
var container = $(this).closest('.video-container');
|
9
|
+
|
10
|
+
$(this).jPlayer({
|
11
|
+
ready: function () {
|
12
|
+
$(this).jPlayer("setMedia", {
|
13
|
+
webmv: container.attr("data-url-webm"),
|
14
|
+
flv: container.attr("data-url-flv"),
|
15
|
+
mp4: container.attr("data-url-mp4"),
|
16
|
+
poster: container.attr("data-url-poster")
|
17
|
+
});
|
18
|
+
},
|
19
|
+
solution:"flash, html",
|
20
|
+
preload: "none",
|
21
|
+
supplied: "webmv, flv, mp4",
|
22
|
+
swfPath: container.attr('data-url-swfplayer'),
|
23
|
+
cssSelectorAncestor: "#" + container.attr("id")
|
24
|
+
})
|
25
|
+
});
|
26
|
+
}
|
27
|
+
|
28
|
+
callback.register('show', initJplayer);
|
29
|
+
|
30
|
+
return callback.extend({
|
31
|
+
});
|
32
|
+
|
33
|
+
})(SocialStream, jQuery);
|
data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass
CHANGED
@@ -14,18 +14,17 @@ section.repository
|
|
14
14
|
display: inline
|
15
15
|
input
|
16
16
|
&[type="text"]
|
17
|
-
width:
|
17
|
+
width: 24% !important
|
18
18
|
display: inline
|
19
|
-
margin-top:
|
20
|
-
float:
|
19
|
+
margin-top: 20px
|
20
|
+
float: left
|
21
|
+
margin-left: 20px
|
21
22
|
|
22
23
|
.btn
|
23
|
-
@include btn-secundary
|
24
24
|
float: right
|
25
|
-
width:
|
25
|
+
width: auto
|
26
26
|
display: inline-block
|
27
|
-
margin:
|
28
|
-
padding: 5px 12px
|
27
|
+
margin: 23px 16px 0 -14px
|
29
28
|
.tab-content
|
30
29
|
@include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
31
30
|
padding-bottom: 100px
|
@@ -54,3 +53,9 @@ section.repository
|
|
54
53
|
|
55
54
|
.documents
|
56
55
|
clear: both
|
56
|
+
#new_document-modal
|
57
|
+
.modal-body
|
58
|
+
input
|
59
|
+
&[type="text"]
|
60
|
+
width: 94% !important
|
61
|
+
float: none
|