social_stream 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,17 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "3.0.0"
4
- gem "capybara", ">= 0.3.9"
5
- gem "sqlite3-ruby", :require => "sqlite3"
6
-
7
- if RUBY_VERSION < '1.9'
8
- gem "ruby-debug", ">= 0.10.3"
9
- end
10
-
11
3
  gemspec
12
4
 
13
- gem 'cancan'
14
-
15
- gem "rspec-rails", ">= 2.0.0.beta"
16
- gem "factory_girl"
17
-
data/Gemfile.lock CHANGED
@@ -1,12 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- social_stream (0.1.4)
4
+ social_stream (0.1.6)
5
5
  atd-ancestry
6
+ cancan (~> 1.4.0)
6
7
  devise (~> 1.1.3)
7
8
  foreigner (~> 0.9.1)
8
9
  inherited_resources (~> 1.1.2)
9
- jquery-rails (~> 0.2.4)
10
+ jquery-rails (~> 0.2.5)
11
+ nested_set (~> 1.5.3)
10
12
  paperclip (~> 2.3.4)
11
13
  stringex (~> 1.2.0)
12
14
 
@@ -14,12 +16,12 @@ GEM
14
16
  remote: http://rubygems.org/
15
17
  specs:
16
18
  abstract (1.0.0)
17
- actionmailer (3.0.0)
18
- actionpack (= 3.0.0)
19
+ actionmailer (3.0.1)
20
+ actionpack (= 3.0.1)
19
21
  mail (~> 2.2.5)
20
- actionpack (3.0.0)
21
- activemodel (= 3.0.0)
22
- activesupport (= 3.0.0)
22
+ actionpack (3.0.1)
23
+ activemodel (= 3.0.1)
24
+ activesupport (= 3.0.1)
23
25
  builder (~> 2.1.2)
24
26
  erubis (~> 2.6.6)
25
27
  i18n (~> 0.4.1)
@@ -27,19 +29,19 @@ GEM
27
29
  rack-mount (~> 0.6.12)
28
30
  rack-test (~> 0.5.4)
29
31
  tzinfo (~> 0.3.23)
30
- activemodel (3.0.0)
31
- activesupport (= 3.0.0)
32
+ activemodel (3.0.1)
33
+ activesupport (= 3.0.1)
32
34
  builder (~> 2.1.2)
33
35
  i18n (~> 0.4.1)
34
- activerecord (3.0.0)
35
- activemodel (= 3.0.0)
36
- activesupport (= 3.0.0)
36
+ activerecord (3.0.1)
37
+ activemodel (= 3.0.1)
38
+ activesupport (= 3.0.1)
37
39
  arel (~> 1.0.0)
38
40
  tzinfo (~> 0.3.23)
39
- activeresource (3.0.0)
40
- activemodel (= 3.0.0)
41
- activesupport (= 3.0.0)
42
- activesupport (3.0.0)
41
+ activeresource (3.0.1)
42
+ activemodel (= 3.0.1)
43
+ activesupport (= 3.0.1)
44
+ activesupport (3.0.1)
43
45
  arel (1.0.1)
44
46
  activesupport (~> 3.0.0)
45
47
  atd-ancestry (1.3.0)
@@ -53,9 +55,9 @@ GEM
53
55
  rack (>= 1.0.0)
54
56
  rack-test (>= 0.5.4)
55
57
  selenium-webdriver (>= 0.0.3)
56
- childprocess (0.1.3)
58
+ childprocess (0.1.4)
57
59
  ffi (~> 0.6.3)
58
- columnize (0.3.1)
60
+ columnize (0.3.2)
59
61
  culerity (0.2.12)
60
62
  devise (1.1.3)
61
63
  bcrypt-ruby (~> 2.1.2)
@@ -68,19 +70,24 @@ GEM
68
70
  rake (>= 0.8.7)
69
71
  foreigner (0.9.1)
70
72
  has_scope (0.5.0)
71
- i18n (0.4.1)
73
+ i18n (0.4.2)
72
74
  inherited_resources (1.1.2)
73
75
  has_scope (~> 0.5.0)
74
76
  responders (~> 0.6.0)
75
- jquery-rails (0.2.4)
77
+ jquery-rails (0.2.5)
76
78
  rails (~> 3.0)
79
+ thor (~> 0.14.4)
77
80
  json_pure (1.4.6)
78
81
  linecache (0.43)
79
- mail (2.2.7)
82
+ mail (2.2.9)
80
83
  activesupport (>= 2.3.6)
81
- mime-types
82
- treetop (>= 1.4.5)
84
+ i18n (~> 0.4.1)
85
+ mime-types (~> 1.16)
86
+ treetop (~> 1.4.8)
83
87
  mime-types (1.16)
88
+ nested_set (1.5.3)
89
+ activerecord (>= 3.0.0)
90
+ railties (>= 3.0.0)
84
91
  nokogiri (1.4.3.1)
85
92
  paperclip (2.3.5)
86
93
  activerecord
@@ -91,17 +98,17 @@ GEM
91
98
  rack (>= 1.0.0)
92
99
  rack-test (0.5.6)
93
100
  rack (>= 1.0)
94
- rails (3.0.0)
95
- actionmailer (= 3.0.0)
96
- actionpack (= 3.0.0)
97
- activerecord (= 3.0.0)
98
- activeresource (= 3.0.0)
99
- activesupport (= 3.0.0)
101
+ rails (3.0.1)
102
+ actionmailer (= 3.0.1)
103
+ actionpack (= 3.0.1)
104
+ activerecord (= 3.0.1)
105
+ activeresource (= 3.0.1)
106
+ activesupport (= 3.0.1)
100
107
  bundler (~> 1.0.0)
101
- railties (= 3.0.0)
102
- railties (3.0.0)
103
- actionpack (= 3.0.0)
104
- activesupport (= 3.0.0)
108
+ railties (= 3.0.1)
109
+ railties (3.0.1)
110
+ actionpack (= 3.0.1)
111
+ activesupport (= 3.0.1)
105
112
  rake (>= 0.8.4)
106
113
  thor (~> 0.14.0)
107
114
  rake (0.8.7)
@@ -118,20 +125,20 @@ GEM
118
125
  rspec-expectations (~> 2.0.1)
119
126
  rspec-rails (2.0.1)
120
127
  rspec (~> 2.0.0)
121
- ruby-debug (0.10.3)
128
+ ruby-debug (0.10.4)
122
129
  columnize (>= 0.1)
123
- ruby-debug-base (~> 0.10.3.0)
124
- ruby-debug-base (0.10.3)
130
+ ruby-debug-base (~> 0.10.4.0)
131
+ ruby-debug-base (0.10.4)
125
132
  linecache (>= 0.3)
126
133
  rubyzip (0.9.4)
127
- selenium-webdriver (0.0.29)
128
- childprocess (>= 0.0.7)
134
+ selenium-webdriver (0.1.0)
135
+ childprocess (= 0.1.4)
129
136
  ffi (~> 0.6.3)
130
137
  json_pure
131
138
  rubyzip
132
- sqlite3-ruby (1.3.1)
139
+ sqlite3-ruby (1.3.2)
133
140
  stringex (1.2.0)
134
- thor (0.14.3)
141
+ thor (0.14.4)
135
142
  treetop (1.4.8)
136
143
  polyglot (>= 0.3.1)
137
144
  tzinfo (0.3.23)
@@ -143,17 +150,18 @@ PLATFORMS
143
150
 
144
151
  DEPENDENCIES
145
152
  atd-ancestry
146
- cancan
147
- capybara (>= 0.3.9)
153
+ cancan (~> 1.4.0)
154
+ capybara (~> 0.3.9)
148
155
  devise (~> 1.1.3)
149
- factory_girl
156
+ factory_girl (~> 1.3.2)
150
157
  foreigner (~> 0.9.1)
151
158
  inherited_resources (~> 1.1.2)
152
- jquery-rails (~> 0.2.4)
159
+ jquery-rails (~> 0.2.5)
160
+ nested_set (~> 1.5.3)
153
161
  paperclip (~> 2.3.4)
154
- rails (= 3.0.0)
155
- rspec-rails (>= 2.0.0.beta)
156
- ruby-debug (>= 0.10.3)
162
+ rails (~> 3.0.1)
163
+ rspec-rails (~> 2.0.0)
164
+ ruby-debug (~> 0.10.3)
157
165
  social_stream!
158
166
  sqlite3-ruby
159
167
  stringex (~> 1.2.0)
@@ -1,3 +1,9 @@
1
1
  class TiesController < InheritedResources::Base
2
2
  respond_to :html, :xml, :js
3
+
4
+ before_filter :authenticate_user!, :only => :suggestion
5
+
6
+ def suggestion
7
+ @tie = current_user.suggestion
8
+ end
3
9
  end
data/app/models/actor.rb CHANGED
@@ -7,7 +7,9 @@ class Actor < ActiveRecord::Base
7
7
  acts_as_url :name, :url_attribute => :permalink
8
8
 
9
9
  has_attached_file :logo,
10
- :styles => { :small => "30x30" },
10
+ :styles => { :tie => "30x30>",
11
+ :actor => '35x35>',
12
+ :profile => '94x65' },
11
13
  :default_url => "/images/:attachment/:style/:subtype_class.png"
12
14
 
13
15
  has_many :sent_ties,
@@ -31,7 +31,7 @@
31
31
  # or requests.
32
32
  #
33
33
  class Relation < ActiveRecord::Base
34
- has_ancestry
34
+ acts_as_nested_set
35
35
 
36
36
  scope :mode, lambda { |st, rt|
37
37
  where(:sender_type => st, :receiver_type => rt)
@@ -54,7 +54,7 @@ class Relation < ActiveRecord::Base
54
54
  class << self
55
55
  # A relation in the top of a strength hierarchy
56
56
  def strongest
57
- roots.first
57
+ root
58
58
  end
59
59
  end
60
60
 
@@ -65,7 +65,7 @@ class Relation < ActiveRecord::Base
65
65
 
66
66
  # Relations below or at the same level of this relation
67
67
  def weaker_or_equal
68
- Array(self) + descendants
68
+ self_and_descendants
69
69
  end
70
70
 
71
71
  # Other relations above in the same hierarchy that this relation
@@ -75,7 +75,7 @@ class Relation < ActiveRecord::Base
75
75
 
76
76
  # Relations above or at the same level of this relation
77
77
  def stronger_or_equal
78
- ancestors + Array(self)
78
+ self_and_ancestors
79
79
  end
80
80
 
81
81
  # Relation class scoped in the same mode that this relation
data/app/models/tie.rb CHANGED
@@ -159,7 +159,7 @@ class Tie < ActiveRecord::Base
159
159
  def weak_set_conditions(t)
160
160
  arel_table[:sender_id].eq(t.sender_id).and(
161
161
  arel_table[:receiver_id].eq(t.receiver_id)).and(
162
- arel_table[:relation_id].in(t.relation.stronger_or_equal)).and(
162
+ arel_table[:relation_id].in(t.relation.stronger_or_equal.all)).and(
163
163
  Permission.arel_table[:parameter].eq('weak_set'))
164
164
  end
165
165
 
@@ -171,7 +171,7 @@ class Tie < ActiveRecord::Base
171
171
 
172
172
  def weak_group_set_conditions(t)
173
173
  arel_table[:receiver_id].eq(t.receiver_id).and(
174
- arel_table[:relation_id].in(t.relation.stronger_or_equal)).and(
174
+ arel_table[:relation_id].in(t.relation.stronger_or_equal.all)).and(
175
175
  Permission.arel_table[:parameter].eq('weak_group_set'))
176
176
  end
177
177
  end
@@ -1,6 +1,6 @@
1
1
  <%= div_for activity, :class => "subactivity" do %>
2
2
  <div class="actor_logo_subactivity">
3
- <%= link_to image_tag(activity.sender_subject.logo.url,
3
+ <%= link_to image_tag(activity.sender_subject.logo.url(),
4
4
  :size => "30x30",
5
5
  :alt => activity.sender_subject.name),
6
6
  activity.sender_subject %>
@@ -99,11 +99,3 @@ $('#left_scroll img').livequery("click",function(){
99
99
 
100
100
  });
101
101
 
102
-
103
-
104
-
105
- $("#security").dropdownchecklist( { closeRadioOnClick: true } );
106
- $("#security_image").parent().width(28);
107
- $("#security_image").parent().parent().width(28);
108
-
109
-
@@ -1,20 +1,22 @@
1
- <div id="activities_header" class="content_size">
2
- <%= form_for Post.new(:text => t('activity.input'),
3
- :_activity_tie_id => current_user.active_ties_to(receiver).first.id),
4
- :remote => true do |f| %>
5
- <%= f.hidden_field :_activity_tie_id %>
6
- <%= f.text_field :text, :id => "input_activities", :size => 85 %>
7
- <div id="activities_share_btn">
8
- <div id="securities">
9
- <select id="security" >
10
- <option>Todos</option>
11
- <option>Amigos de amigos</option>
12
- <option>Amigos</option>
13
- <option>Trabajo</option>
14
- </select>
15
- </div>
16
- <%= image_submit_tag "btn/btn_share.png" %>
17
- </div>
18
- <% end -%>
19
- </div>
1
+ <% if current_user.active_ties_to(receiver).any? %>
2
+ <% content_for :javascript do %>
3
+ $("#security").dropdownchecklist( { closeRadioOnClick: true } );
4
+ $("#security_image").parent().width(28);
5
+ $("#security_image").parent().parent().width(28);
6
+ <% end %>
20
7
 
8
+ <div id="activities_header" class="content_size">
9
+ <%= form_for Post.new(:text => t('activity.input'),
10
+ :_activity_tie_id => current_user.active_ties_to(receiver).first.id),
11
+ :remote => true do |f| %>
12
+ <%= f.hidden_field :_activity_tie_id %>
13
+ <%= f.text_field :text, :id => "input_activities", :size => 85 %>
14
+ <div id="activities_share_btn">
15
+ <div id="securities">
16
+ <%= f.select :_activity_tie_id, current_user.active_ties_to(receiver).map{ |t| [ t(t.relation_name, :count => :other), t.id ] }, {}, :id => 'security' %>
17
+ </div>
18
+ <%= image_submit_tag "btn/btn_share.png" %>
19
+ </div>
20
+ <% end -%>
21
+ </div>
22
+ <% end %>
@@ -1,7 +1,7 @@
1
1
  <div class="dialog_add_tie" id="new_tie">
2
2
  <div class="content_add_user" >
3
3
  <div class="tie_logo">
4
- <%= link_to image_tag(@tie.receiver_subject.logo.url,
4
+ <%= link_to image_tag(@tie.receiver_subject.logo.url(tie),
5
5
  :size => "100x100",
6
6
  :alt => @tie.receiver_subject.name),
7
7
  @tie.receiver_subject %>
@@ -1,6 +1,6 @@
1
1
  <div id="tie_<%=dom_id(tie.receiver_subject)%>" class="tie">
2
2
  <div class="tie_actor_logo">
3
- <%= link_to(image_tag(tie.receiver_subject.logo.url, :size =>"30x30"),
3
+ <%= link_to(image_tag(tie.receiver_subject.logo.url(:tie), :size =>"30x30"),
4
4
  tie.receiver_subject) %>
5
5
  </div>
6
6
  <div class="tie_content">
@@ -8,7 +8,7 @@
8
8
  if ($('#carousel_ul').length) { // element found
9
9
  $("#carousel_ul").prepend("<%= escape_javascript(render @tie.receiver_subject) %>");
10
10
  }else{ // no element found
11
- $("#my_groups").html("<%= escape_javascript(render "groups/groups" )%>");
11
+ $("#my_groups").html("<%= escape_javascript(render 'users/groups' )%>");
12
12
  }
13
13
  $("#group_count").html("<%=current_user.recent_groups.count%>");
14
14
  link_tie.replaceWith("<%= escape_javascript(link_follow_state) %>");
@@ -0,0 +1 @@
1
+ <%= render @tie %>
@@ -0,0 +1 @@
1
+ <%= render(@tie) %>
@@ -77,6 +77,8 @@ en:
77
77
  confirm_delete: "Delete post?"
78
78
  profile:
79
79
  one: "Profile"
80
+ public:
81
+ other: "Everybody"
80
82
  sign_in: "Sign in"
81
83
  sign_up: "Sign up"
82
84
  sign_out_user: "Sign out (%{user})"
data/config/routes.rb CHANGED
@@ -7,7 +7,11 @@ Rails.application.routes.draw do
7
7
 
8
8
  resources :groups
9
9
 
10
- resources :ties
10
+ resources :ties do
11
+ collection do
12
+ get 'suggestion'
13
+ end
14
+ end
11
15
  resources :activities do
12
16
  resource :like
13
17
  end
@@ -125,13 +125,15 @@ class CreateSocialStream < ActiveRecord::Migration
125
125
  t.datetime "updated_at"
126
126
  t.string "sender_type"
127
127
  t.string "receiver_type"
128
- t.string "ancestry"
128
+ t.integer "parent_id"
129
+ t.integer "lft"
130
+ t.integer "rgt"
129
131
  t.integer "inverse_id"
130
132
  t.integer "granted_id"
131
133
  t.boolean "reflexive", :default => false
132
134
  end
133
135
 
134
- add_index "relations", "ancestry"
136
+ add_index "relations", "parent_id"
135
137
 
136
138
  create_table "tags", :force => true do |t|
137
139
  t.string "name", :limit => 45
@@ -4,7 +4,9 @@ require 'foreigner'
4
4
  require 'jquery-rails'
5
5
  # Permalinks:
6
6
  require 'stringex'
7
- # Hierchical relationships in Relation and Activity:
7
+ # Hierarchical relationships in Relation:
8
+ require 'nested_set'
9
+ # Hierarchical relationships in Activity:
8
10
  require 'ancestry'
9
11
  # User authentication
10
12
  require 'devise'
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.1.6".freeze
2
+ VERSION = "0.1.7".freeze
3
3
  end
@@ -7,11 +7,22 @@ Gem::Specification.new do |s|
7
7
  s.description = "Ruby on Rails engine supporting social networking features and activity streams."
8
8
  s.authors = ['Antonio Tapiador', 'Diego Carrera']
9
9
  s.files = `git ls-files`.split("\n")
10
- s.add_dependency('atd-ancestry')
11
- s.add_dependency('foreigner', '~> 0.9.1')
12
- s.add_dependency('devise', '~> 1.1.3')
13
- s.add_dependency('inherited_resources', '~> 1.1.2')
14
- s.add_dependency('stringex', '~> 1.2.0')
15
- s.add_dependency('paperclip', '~> 2.3.4')
16
- s.add_dependency('jquery-rails', '~> 0.2.5')
10
+ s.add_runtime_dependency('atd-ancestry', '1.3.0')
11
+ s.add_runtime_dependency('nested_set', '~> 1.5.3')
12
+ s.add_runtime_dependency('foreigner', '~> 0.9.1')
13
+ s.add_runtime_dependency('devise', '~> 1.1.3')
14
+ s.add_runtime_dependency('inherited_resources', '~> 1.1.2')
15
+ s.add_runtime_dependency('stringex', '~> 1.2.0')
16
+ s.add_runtime_dependency('paperclip', '~> 2.3.4')
17
+ s.add_runtime_dependency('jquery-rails', '~> 0.2.5')
18
+ s.add_runtime_dependency('cancan', '~> 1.4.0')
19
+ s.add_development_dependency('rails', '~> 3.0.1')
20
+ s.add_development_dependency('capybara', '~> 0.3.9')
21
+ s.add_development_dependency('sqlite3-ruby')
22
+ if RUBY_VERSION < '1.9'
23
+ s.add_development_dependency('ruby-debug', '~> 0.10.3')
24
+ end
25
+ s.add_development_dependency('rspec-rails', '~> 2.0.0')
26
+ s.add_development_dependency('factory_girl', '~> 1.3.2')
27
+ s.add_development_dependency('forgery', '~> 0.3.6')
17
28
  end
data/spec/spec_helper.rb CHANGED
@@ -32,6 +32,7 @@ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__
32
32
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
33
33
 
34
34
  # Load Factories
35
+ require 'factory_girl'
35
36
  Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each {|f| require f}
36
37
 
37
38
  Rspec.configure do |config|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Antonio Tapiador
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-08 00:00:00 +01:00
19
+ date: 2010-11-11 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -25,18 +25,36 @@ dependencies:
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ">="
28
+ - - "="
29
29
  - !ruby/object:Gem::Version
30
- hash: 3
30
+ hash: 27
31
31
  segments:
32
+ - 1
33
+ - 3
32
34
  - 0
33
- version: "0"
35
+ version: 1.3.0
34
36
  type: :runtime
35
37
  version_requirements: *id001
36
38
  - !ruby/object:Gem::Dependency
37
- name: foreigner
39
+ name: nested_set
38
40
  prerelease: false
39
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 5
47
+ segments:
48
+ - 1
49
+ - 5
50
+ - 3
51
+ version: 1.5.3
52
+ type: :runtime
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: foreigner
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
40
58
  none: false
41
59
  requirements:
42
60
  - - ~>
@@ -48,11 +66,11 @@ dependencies:
48
66
  - 1
49
67
  version: 0.9.1
50
68
  type: :runtime
51
- version_requirements: *id002
69
+ version_requirements: *id003
52
70
  - !ruby/object:Gem::Dependency
53
71
  name: devise
54
72
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
56
74
  none: false
57
75
  requirements:
58
76
  - - ~>
@@ -64,11 +82,11 @@ dependencies:
64
82
  - 3
65
83
  version: 1.1.3
66
84
  type: :runtime
67
- version_requirements: *id003
85
+ version_requirements: *id004
68
86
  - !ruby/object:Gem::Dependency
69
87
  name: inherited_resources
70
88
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
72
90
  none: false
73
91
  requirements:
74
92
  - - ~>
@@ -80,11 +98,11 @@ dependencies:
80
98
  - 2
81
99
  version: 1.1.2
82
100
  type: :runtime
83
- version_requirements: *id004
101
+ version_requirements: *id005
84
102
  - !ruby/object:Gem::Dependency
85
103
  name: stringex
86
104
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
105
+ requirement: &id006 !ruby/object:Gem::Requirement
88
106
  none: false
89
107
  requirements:
90
108
  - - ~>
@@ -96,11 +114,11 @@ dependencies:
96
114
  - 0
97
115
  version: 1.2.0
98
116
  type: :runtime
99
- version_requirements: *id005
117
+ version_requirements: *id006
100
118
  - !ruby/object:Gem::Dependency
101
119
  name: paperclip
102
120
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
121
+ requirement: &id007 !ruby/object:Gem::Requirement
104
122
  none: false
105
123
  requirements:
106
124
  - - ~>
@@ -112,11 +130,11 @@ dependencies:
112
130
  - 4
113
131
  version: 2.3.4
114
132
  type: :runtime
115
- version_requirements: *id006
133
+ version_requirements: *id007
116
134
  - !ruby/object:Gem::Dependency
117
135
  name: jquery-rails
118
136
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
137
+ requirement: &id008 !ruby/object:Gem::Requirement
120
138
  none: false
121
139
  requirements:
122
140
  - - ~>
@@ -128,7 +146,133 @@ dependencies:
128
146
  - 5
129
147
  version: 0.2.5
130
148
  type: :runtime
131
- version_requirements: *id007
149
+ version_requirements: *id008
150
+ - !ruby/object:Gem::Dependency
151
+ name: cancan
152
+ prerelease: false
153
+ requirement: &id009 !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ hash: 7
159
+ segments:
160
+ - 1
161
+ - 4
162
+ - 0
163
+ version: 1.4.0
164
+ type: :runtime
165
+ version_requirements: *id009
166
+ - !ruby/object:Gem::Dependency
167
+ name: rails
168
+ prerelease: false
169
+ requirement: &id010 !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ~>
173
+ - !ruby/object:Gem::Version
174
+ hash: 5
175
+ segments:
176
+ - 3
177
+ - 0
178
+ - 1
179
+ version: 3.0.1
180
+ type: :development
181
+ version_requirements: *id010
182
+ - !ruby/object:Gem::Dependency
183
+ name: capybara
184
+ prerelease: false
185
+ requirement: &id011 !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ hash: 1
191
+ segments:
192
+ - 0
193
+ - 3
194
+ - 9
195
+ version: 0.3.9
196
+ type: :development
197
+ version_requirements: *id011
198
+ - !ruby/object:Gem::Dependency
199
+ name: sqlite3-ruby
200
+ prerelease: false
201
+ requirement: &id012 !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ hash: 3
207
+ segments:
208
+ - 0
209
+ version: "0"
210
+ type: :development
211
+ version_requirements: *id012
212
+ - !ruby/object:Gem::Dependency
213
+ name: ruby-debug
214
+ prerelease: false
215
+ requirement: &id013 !ruby/object:Gem::Requirement
216
+ none: false
217
+ requirements:
218
+ - - ~>
219
+ - !ruby/object:Gem::Version
220
+ hash: 49
221
+ segments:
222
+ - 0
223
+ - 10
224
+ - 3
225
+ version: 0.10.3
226
+ type: :development
227
+ version_requirements: *id013
228
+ - !ruby/object:Gem::Dependency
229
+ name: rspec-rails
230
+ prerelease: false
231
+ requirement: &id014 !ruby/object:Gem::Requirement
232
+ none: false
233
+ requirements:
234
+ - - ~>
235
+ - !ruby/object:Gem::Version
236
+ hash: 15
237
+ segments:
238
+ - 2
239
+ - 0
240
+ - 0
241
+ version: 2.0.0
242
+ type: :development
243
+ version_requirements: *id014
244
+ - !ruby/object:Gem::Dependency
245
+ name: factory_girl
246
+ prerelease: false
247
+ requirement: &id015 !ruby/object:Gem::Requirement
248
+ none: false
249
+ requirements:
250
+ - - ~>
251
+ - !ruby/object:Gem::Version
252
+ hash: 31
253
+ segments:
254
+ - 1
255
+ - 3
256
+ - 2
257
+ version: 1.3.2
258
+ type: :development
259
+ version_requirements: *id015
260
+ - !ruby/object:Gem::Dependency
261
+ name: forgery
262
+ prerelease: false
263
+ requirement: &id016 !ruby/object:Gem::Requirement
264
+ none: false
265
+ requirements:
266
+ - - ~>
267
+ - !ruby/object:Gem::Version
268
+ hash: 31
269
+ segments:
270
+ - 0
271
+ - 3
272
+ - 6
273
+ version: 0.3.6
274
+ type: :development
275
+ version_requirements: *id016
132
276
  description: Ruby on Rails engine supporting social networking features and activity streams.
133
277
  email:
134
278
  executables: []
@@ -224,6 +368,8 @@ files:
224
368
  - app/views/ties/create.js.erb
225
369
  - app/views/ties/new.html.erb
226
370
  - app/views/ties/new.js.erb
371
+ - app/views/ties/suggestion.html.erb
372
+ - app/views/ties/suggestion.js.erb
227
373
  - app/views/users/_contacts.html.erb
228
374
  - app/views/users/_groups.html.erb
229
375
  - app/views/users/_index.html.erb
@@ -342,7 +488,6 @@ files:
342
488
  - lib/generators/social_stream/templates/public/images/frontpage/yellow_sq.png
343
489
  - lib/generators/social_stream/templates/public/images/left.png
344
490
  - lib/generators/social_stream/templates/public/images/logo.png
345
- - lib/generators/social_stream/templates/public/images/logo/dit.png
346
491
  - lib/generators/social_stream/templates/public/images/logos/original/group.png
347
492
  - lib/generators/social_stream/templates/public/images/logos/original/user.png
348
493
  - lib/generators/social_stream/templates/public/images/right.png
@@ -361,12 +506,9 @@ files:
361
506
  - lib/generators/social_stream/templates/public/images/ui-icons_cd0a0a_256x240.png
362
507
  - lib/generators/social_stream/templates/public/javascripts/hoverIntent.js
363
508
  - lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js
364
- - lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js
365
509
  - lib/generators/social_stream/templates/public/javascripts/jquery.boxy.js
366
510
  - lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js
367
- - lib/generators/social_stream/templates/public/javascripts/main.js
368
511
  - lib/generators/social_stream/templates/public/javascripts/menu.js
369
- - lib/generators/social_stream/templates/public/javascripts/superfish.js
370
512
  - lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js
371
513
  - lib/generators/social_stream/templates/public/stylesheets/activities.css
372
514
  - lib/generators/social_stream/templates/public/stylesheets/base.css
@@ -1 +0,0 @@
1
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3(C){C.8={3o:{19:3(E,F,H){6 G=C.8[E].1h;21(6 D 3p H){G.1I[D]=G.1I[D]||[];G.1I[D].28([F,H[D]])}},2P:3(D,F,E){6 H=D.1I[F];5(!H){7}21(6 G=0;G<H.k;G++){5(D.b[H[G][0]]){H[G][1].1H(D.c,E)}}}},1l:{},n:3(D){5(C.8.1l[D]){7 C.8.1l[D]}6 E=C(\'<2a 3s="8-3r">\').j(D).n({3q:"3i",2g:"-2A",3g:"-2A",1r:"1w"}).22("2C");C.8.1l[D]=!!((!(/3I|3P/).12(E.n("3z"))||(/^[1-9]/).12(E.n("2T"))||(/^[1-9]/).12(E.n("2E"))||!(/2v/).12(E.n("3w"))||!(/3S|3C\\(0, 0, 0, 0\\)/).12(E.n("3D"))));3E{C("2C").2w(0).3B(E.2w(0))}3x(F){}7 C.8.1l[D]},3y:3(D){C(D).v("1p","2I").n("2q","2v")},3H:3(D){C(D).v("1p","3O").n("2q","")},3Q:3(G,E){6 D=/2g/.12(E||"2g")?"3N":"3M",F=e;5(G[D]>0){7 t}G[D]=1;F=G[D]>0?t:e;G[D]=0;7 F}};6 B=C.2e.W;C.2e.W=3(){C("*",2).19(2).z("W");7 B.1H(2,2M)};3 A(E,F,G){6 D=C[E][F].35||[];D=(1F D=="1E"?D.2h(/,?\\s+/):D);7(C.1j(G,D)!=-1)}C.1i=3(E,D){6 F=E.2h(".")[0];E=E.2h(".")[1];C.2e[E]=3(J){6 H=(1F J=="1E"),I=2D.1h.3J.2P(2M,1);5(H&&A(F,E,J)){6 G=C.i(2[0],E);7(G?G[J].1H(G,I):1n)}7 2.14(3(){6 K=C.i(2,E);5(H&&K&&C.3v(K[J])){K[J].1H(K,I)}o{5(!H){C.i(2,E,3e C[F][E](2,J))}}})};C[F][E]=3(I,H){6 G=2;2.15=E;2.2H=F+"-"+E;2.b=C.1A({},C.1i.1k,C[F][E].1k,H);2.c=C(I).u("1e."+E,3(L,J,K){7 G.1e(J,K)}).u("2j."+E,3(K,J){7 G.2j(J)}).u("W",3(){7 G.1b()});2.23()};C[F][E].1h=C.1A({},C.1i.1h,D)};C.1i.1h={23:3(){},1b:3(){2.c.1q(2.15)},2j:3(D){7 2.b[D]},1e:3(D,E){2.b[D]=E;5(D=="f"){2.c[E?"j":"r"](2.2H+"-f")}},1X:3(){2.1e("f",e)},1P:3(){2.1e("f",t)}};C.1i.1k={f:e};C.8.2J={3h:3(){6 D=2;2.c.u("3d."+2.15,3(E){7 D.2G(E)});5(C.x.13){2.2K=2.c.v("1p");2.c.v("1p","2I")}2.3c=e},38:3(){2.c.16("."+2.15);(C.x.13&&2.c.v("1p",2.2K))},2G:3(F){(2.V&&2.1o(F));2.1C=F;6 E=2,G=(F.39==1),D=(1F 2.b.25=="1E"?C(F.2f).2x().19(F.2f).y(2.b.25).k:e);5(!G||D||!2.2S(F)){7 t}2.1D=!2.b.26;5(!2.1D){2.3a=1x(3(){E.1D=t},2.b.26)}5(2.2m(F)&&2.1T(F)){2.V=(2.1U(F)!==e);5(!2.V){F.3b();7 t}}2.2n=3(H){7 E.2r(H)};2.2l=3(H){7 E.1o(H)};C(2N).u("2O."+2.15,2.2n).u("2t."+2.15,2.2l);7 e},2r:3(D){5(C.x.13&&!D.3j){7 2.1o(D)}5(2.V){2.1V(D);7 e}5(2.2m(D)&&2.1T(D)){2.V=(2.1U(2.1C,D)!==e);(2.V?2.1V(D):2.1o(D))}7!2.V},1o:3(D){C(2N).16("2O."+2.15,2.2n).16("2t."+2.15,2.2l);5(2.V){2.V=e;2.2u(D)}7 e},2m:3(D){7(29.3m(29.2z(2.1C.2L-D.2L),29.2z(2.1C.2s-D.2s))>=2.b.2F)},1T:3(D){7 2.1D},1U:3(D){},1V:3(D){},2u:3(D){},2S:3(D){7 t}};C.8.2J.1k={25:U,2F:1,26:0}})(27);(3(A){A.1i("8.4",{23:3(){2.b.Z+=".4";2.1m(t)},1e:3(B,C){5((/^d/).12(B)){2.1v(C)}o{2.b[B]=C;2.1m()}},k:3(){7 2.$4.k},1Q:3(B){7 B.2R&&B.2R.1g(/\\s/g,"2Q").1g(/[^A-4o-4x-9\\-2Q:\\.]/g,"")||2.b.2X+A.i(B)},8:3(C,B){7{b:2.b,4u:C,30:B,11:2.$4.11(C)}},1m:3(O){2.$l=A("1O:4p(a[p])",2.c);2.$4=2.$l.1G(3(){7 A("a",2)[0]});2.$h=A([]);6 P=2,D=2.b;2.$4.14(3(R,Q){5(Q.X&&Q.X.1g("#","")){P.$h=P.$h.19(Q.X)}o{5(A(Q).v("p")!="#"){A.i(Q,"p.4",Q.p);A.i(Q,"q.4",Q.p);6 T=P.1Q(Q);Q.p="#"+T;6 S=A("#"+T);5(!S.k){S=A(D.2d).v("1s",T).j(D.1u).4l(P.$h[R-1]||P.c);S.i("1b.4",t)}P.$h=P.$h.19(S)}o{D.f.28(R+1)}}});5(O){2.c.j(D.2b);2.$h.14(3(){6 Q=A(2);Q.j(D.1u)});5(D.d===1n){5(20.X){2.$4.14(3(S,Q){5(Q.X==20.X){D.d=S;5(A.x.13||A.x.43){6 R=A(20.X),T=R.v("1s");R.v("1s","");1x(3(){R.v("1s",T)},44)}4m(0,0);7 e}})}o{5(D.1c){6 J=46(A.1c("8-4"+A.i(P.c)),10);5(J&&P.$4[J]){D.d=J}}o{5(P.$l.y("."+D.m).k){D.d=P.$l.11(P.$l.y("."+D.m)[0])}}}}D.d=D.d===U||D.d!==1n?D.d:0;D.f=A.41(D.f.40(A.1G(2.$l.y("."+D.1a),3(R,Q){7 P.$l.11(R)}))).31();5(A.1j(D.d,D.f)!=-1){D.f.3V(A.1j(D.d,D.f),1)}2.$h.j(D.18);2.$l.r(D.m);5(D.d!==U){2.$h.w(D.d).1S().r(D.18);2.$l.w(D.d).j(D.m);6 K=3(){A(P.c).z("1K",[P.Y("1K"),P.8(P.$4[D.d],P.$h[D.d])],D.1S)};5(A.i(2.$4[D.d],"q.4")){2.q(D.d,K)}o{K()}}A(3U).u("3W",3(){P.$4.16(".4");P.$l=P.$4=P.$h=U})}21(6 G=0,N;N=2.$l[G];G++){A(N)[A.1j(G,D.f)!=-1&&!A(N).1f(D.m)?"j":"r"](D.1a)}5(D.17===e){2.$4.1q("17.4")}6 C,I,B={"3X-2E":0,1R:1},E="3Z";5(D.1d&&D.1d.3Y==2D){C=D.1d[0]||B,I=D.1d[1]||B}o{C=I=D.1d||B}6 H={1r:"",47:"",2T:""};5(!A.x.13){H.1W=""}3 M(R,Q,S){Q.2p(C,C.1R||E,3(){Q.j(D.18).n(H);5(A.x.13&&C.1W){Q[0].2B.y=""}5(S){L(R,S,Q)}})}3 L(R,S,Q){5(I===B){S.n("1r","1w")}S.2p(I,I.1R||E,3(){S.r(D.18).n(H);5(A.x.13&&I.1W){S[0].2B.y=""}A(P.c).z("1K",[P.Y("1K"),P.8(R,S[0])],D.1S)})}3 F(R,T,Q,S){T.j(D.m).4k().r(D.m);M(R,Q,S)}2.$4.16(".4").u(D.Z,3(){6 T=A(2).2x("1O:w(0)"),Q=P.$h.y(":4e"),S=A(2.X);5((T.1f(D.m)&&!D.1z)||T.1f(D.1a)||A(2).1f(D.1t)||A(P.c).z("2y",[P.Y("2y"),P.8(2,S[0])],D.1v)===e){2.1M();7 e}P.b.d=P.$4.11(2);5(D.1z){5(T.1f(D.m)){P.b.d=U;T.r(D.m);P.$h.1Y();M(2,Q);2.1M();7 e}o{5(!Q.k){P.$h.1Y();6 R=2;P.q(P.$4.11(2),3(){T.j(D.m).j(D.2c);L(R,S)});2.1M();7 e}}}5(D.1c){A.1c("8-4"+A.i(P.c),P.b.d,D.1c)}P.$h.1Y();5(S.k){6 R=2;P.q(P.$4.11(2),Q.k?3(){F(R,T,Q,S)}:3(){T.j(D.m);L(R,S)})}o{4b"27 4c 4d: 3n 49 4a."}5(A.x.13){2.1M()}7 e});5(!(/^24/).12(D.Z)){2.$4.u("24.4",3(){7 e})}},19:3(E,D,C){5(C==1n){C=2.$4.k}6 G=2.b;6 I=A(G.37.1g(/#\\{p\\}/g,E).1g(/#\\{1L\\}/g,D));I.i("1b.4",t);6 H=E.4i("#")==0?E.1g("#",""):2.1Q(A("a:4g-4h",I)[0]);6 F=A("#"+H);5(!F.k){F=A(G.2d).v("1s",H).j(G.18).i("1b.4",t)}F.j(G.1u);5(C>=2.$l.k){I.22(2.c);F.22(2.c[0].48)}o{I.36(2.$l[C]);F.36(2.$h[C])}G.f=A.1G(G.f,3(K,J){7 K>=C?++K:K});2.1m();5(2.$4.k==1){I.j(G.m);F.r(G.18);6 B=A.i(2.$4[0],"q.4");5(B){2.q(C,B)}}2.c.z("2Y",[2.Y("2Y"),2.8(2.$4[C],2.$h[C])],G.19)},W:3(B){6 D=2.b,E=2.$l.w(B).W(),C=2.$h.w(B).W();5(E.1f(D.m)&&2.$4.k>1){2.1v(B+(B+1<2.$4.k?1:-1))}D.f=A.1G(A.34(D.f,3(G,F){7 G!=B}),3(G,F){7 G>=B?--G:G});2.1m();2.c.z("2V",[2.Y("2V"),2.8(E.2k("a")[0],C[0])],D.W)},1X:3(B){6 C=2.b;5(A.1j(B,C.f)==-1){7}6 D=2.$l.w(B).r(C.1a);5(A.x.4n){D.n("1r","4t-1w");1x(3(){D.n("1r","1w")},0)}C.f=A.34(C.f,3(F,E){7 F!=B});2.c.z("33",[2.Y("33"),2.8(2.$4[B],2.$h[B])],C.1X)},1P:3(C){6 B=2,D=2.b;5(C!=D.d){2.$l.w(C).j(D.1a);D.f.28(C);D.f.31();2.c.z("32",[2.Y("32"),2.8(2.$4[C],2.$h[C])],D.1P)}},1v:3(B){5(1F B=="1E"){B=2.$4.11(2.$4.y("[p$="+B+"]")[0])}2.$4.w(B).4q(2.b.Z)},q:3(G,K){6 L=2,D=2.b,E=2.$4.w(G),J=E[0],H=K==1n||K===e,B=E.i("q.4");K=K||3(){};5(!B||!H&&A.i(J,"17.4")){K();7}6 M=3(N){6 O=A(N),P=O.2k("*:4s");7 P.k&&P.4v(":45(3R)")&&P||O};6 C=3(){L.$4.y("."+D.1t).r(D.1t).14(3(){5(D.1N){M(2).3l().1B(M(2).i("1L.4"))}});L.1y=U};5(D.1N){6 I=M(J).1B();M(J).3k("<2o></2o>").2k("2o").i("1L.4",I).1B(D.1N)}6 F=A.1A({},D.1J,{2U:B,2i:3(O,N){A(J.X).1B(O);C();5(D.17){A.i(J,"17.4",t)}A(L.c).z("2Z",[L.Y("2Z"),L.8(L.$4[G],L.$h[G])],D.q);D.1J.2i&&D.1J.2i(O,N);K()}});5(2.1y){2.1y.3f();C()}E.j(D.1t);1x(3(){L.1y=A.3u(F)},0)},2U:3(C,B){2.$4.w(C).1q("17.4").i("q.4",B)},1b:3(){6 B=2.b;2.c.16(".4").r(B.2b).1q("4");2.$4.14(3(){6 C=A.i(2,"p.4");5(C){2.p=C}6 D=A(2).16(".4");A.14(["p","q","17"],3(E,F){D.1q(F+".4")})});2.$l.19(2.$h).14(3(){5(A.i(2,"1b.4")){A(2).W()}o{A(2).r([B.m,B.2c,B.1a,B.1u,B.18].3G(" "))}})},Y:3(B){7 A.Z.3L({3t:B,2f:2.c[0]})}});A.8.4.1k={1z:e,Z:"24",f:[],1c:U,1N:"3F&#3A;",17:e,2X:"8-4-",1J:{},1d:U,37:\'<1O><a p="#{p}"><2W>#{1L}</2W></a></1O>\',2d:"<2a></2a>",2b:"8-4-3K",m:"8-4-d",2c:"8-4-1z",1a:"8-4-f",1u:"8-4-30",18:"8-4-3T",1t:"8-4-4w"};A.8.4.35="k";A.1A(A.8.4.1h,{1Z:U,4r:3(C,F){F=F||e;6 B=2,E=2.b.d;3 G(){B.1Z=42(3(){E=++E<B.$4.k?E:0;B.1v(E)},C)}3 D(H){5(!H||H.4j){4f(B.1Z)}}5(C){G();5(!F){2.$4.u(2.b.Z,D)}o{2.$4.u(2.b.Z,3(){D();E=B.b.d;G()})}}o{D();2.$4.16(2.b.Z,D)}}})})(27);',62,282,'||this|function|tabs|if|var|return|ui|||options|element|selected|false|disabled||panels|data|addClass|length|lis|selectedClass|css|else|href|load|removeClass||true|bind|attr|eq|browser|filter|triggerHandler|||||||||||||||||||||null|_mouseStarted|remove|hash|fakeEvent|event||index|test|msie|each|widgetName|unbind|cache|hideClass|add|disabledClass|destroy|cookie|fx|setData|hasClass|replace|prototype|widget|inArray|defaults|cssCache|tabify|undefined|mouseUp|unselectable|removeData|display|id|loadingClass|panelClass|select|block|setTimeout|xhr|unselect|extend|html|_mouseDownEvent|_mouseDelayMet|string|typeof|map|apply|plugins|ajaxOptions|tabsshow|label|blur|spinner|li|disable|tabId|duration|show|mouseDelayMet|mouseStart|mouseDrag|opacity|enable|stop|rotation|location|for|appendTo|init|click|cancel|delay|jQuery|push|Math|div|navClass|unselectClass|panelTemplate|fn|target|top|split|success|getData|find|_mouseUpDelegate|mouseDistanceMet|_mouseMoveDelegate|em|animate|MozUserSelect|mouseMove|pageY|mouseup|mouseStop|none|get|parents|tabsselect|abs|5000px|style|body|Array|width|distance|mouseDown|widgetBaseClass|on|mouse|_mouseUnselectable|pageX|arguments|document|mousemove|call|_|title|mouseCapture|height|url|tabsremove|span|idPrefix|tabsadd|tabsload|panel|sort|tabsdisable|tabsenable|grep|getter|insertBefore|tabTemplate|mouseDestroy|which|_mouseDelayTimer|preventDefault|started|mousedown|new|abort|left|mouseInit|absolute|button|wrapInner|parent|max|Mismatching|plugin|in|position|gen|class|type|ajax|isFunction|backgroundImage|catch|disableSelection|cursor|8230|removeChild|rgba|backgroundColor|try|Loading|join|enableSelection|auto|slice|nav|fix|scrollLeft|scrollTop|off|default|hasScroll|img|transparent|hide|window|splice|unload|min|constructor|normal|concat|unique|setInterval|opera|500|not|parseInt|overflow|parentNode|fragment|identifier|throw|UI|Tabs|visible|clearInterval|first|child|indexOf|clientX|siblings|insertAfter|scrollTo|safari|Za|has|trigger|rotate|last|inline|tab|is|loading|z0'.split('|'),0,{}))
@@ -1,82 +0,0 @@
1
- // initialise plugins
2
- jQuery(function(){
3
- jQuery('ul.sf-menu').superfish();
4
- });
5
-
6
- $(document).ready(function() {
7
- $('#tabvanilla > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
8
-
9
- });
10
- $(document).ready(function() {
11
- $('#tabright> ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
12
-
13
- });
14
-
15
- $(document).ready(function() {
16
- $('#tabconferences> ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
17
-
18
- });
19
-
20
- $(document).ready(function() {
21
- $('#tabconference_browse> ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
22
-
23
- });
24
-
25
- $(document).ready(function() {
26
-
27
-
28
- $("#info_evento").hide();
29
- $("#dia_1").hide();
30
-
31
-
32
-
33
- $("#hiddenMiddle").hide();
34
- $("#hiddenRight").hide();
35
-
36
-
37
- $(".menu > li").click(function(e){
38
- var a = e.target.id;
39
- //desactivamos seccion y activamos elemento de menu
40
- $(".menu li.active").removeClass("active");
41
- $(".menu #"+a).addClass("active");
42
- //ocultamos divisiones, mostramos la seleccionada
43
- $(".content_chat").css("display", "none");
44
- $("."+a).fadeIn();
45
- });
46
-
47
- $('#wideViewMiddle').toggle(
48
- function(){
49
- $("#middleContent").hide();
50
- $('#content').addClass("wideA");
51
- $('#middle').addClass("wideA");
52
- $('#right').addClass("wideA");
53
- $('#chat').addClass("wideA");
54
- $("#hiddenMiddle").show();
55
-
56
- },
57
- function(){
58
- $("#rightContent").hide();
59
- $('#content').addClass("wideB");
60
- $('#middle').addClass("wideB");
61
- $('#right').addClass("wideB");
62
- $('#chat').addClass("wideB");
63
- $("#hiddenRight").show();
64
- },
65
- function(){
66
- $("#hiddenRight").hide();
67
- $('#content').removeClass("wideB");
68
- $('#middle').removeClass("wideB");
69
- $('#right').removeClass("wideB");
70
- $('#chat').removeClass("wideB");
71
- $("#rightContent").show();
72
-
73
- },
74
- function(){
75
- $("#hiddenMiddle").hide();
76
- $('#content').removeClass("wideA");
77
- $('#middle').removeClass("wideA");
78
- $('#right').removeClass("wideA");
79
- $('#chat').removeClass("wideA");
80
- $("#middleContent").show();
81
- });
82
- });
@@ -1,121 +0,0 @@
1
-
2
- /*
3
- * Superfish v1.4.8 - jQuery menu widget
4
- * Copyright (c) 2008 Joel Birch
5
- *
6
- * Dual licensed under the MIT and GPL licenses:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- * http://www.gnu.org/licenses/gpl.html
9
- *
10
- * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
11
- */
12
-
13
- ;(function($){
14
- $.fn.superfish = function(op){
15
-
16
- var sf = $.fn.superfish,
17
- c = sf.c,
18
- $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
19
- over = function(){
20
- var $$ = $(this), menu = getMenu($$);
21
- clearTimeout(menu.sfTimer);
22
- $$.showSuperfishUl().siblings().hideSuperfishUl();
23
- },
24
- out = function(){
25
- var $$ = $(this), menu = getMenu($$), o = sf.op;
26
- clearTimeout(menu.sfTimer);
27
- menu.sfTimer=setTimeout(function(){
28
- o.retainPath=($.inArray($$[0],o.$path)>-1);
29
- $$.hideSuperfishUl();
30
- if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
31
- },o.delay);
32
- },
33
- getMenu = function($menu){
34
- var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
35
- sf.op = sf.o[menu.serial];
36
- return menu;
37
- },
38
- addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
39
-
40
- return this.each(function() {
41
- var s = this.serial = sf.o.length;
42
- var o = $.extend({},sf.defaults,op);
43
- o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
44
- $(this).addClass([o.hoverClass,c.bcClass].join(' '))
45
- .filter('li:has(ul)').removeClass(o.pathClass);
46
- });
47
- sf.o[s] = sf.op = o;
48
-
49
- $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
50
- if (o.autoArrows) addArrow( $('>a:first-child',this) );
51
- })
52
- .not('.'+c.bcClass)
53
- .hideSuperfishUl();
54
-
55
- var $a = $('a',this);
56
- $a.each(function(i){
57
- var $li = $a.eq(i).parents('li');
58
- $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
59
- });
60
- o.onInit.call(this);
61
-
62
- }).each(function() {
63
- var menuClasses = [c.menuClass];
64
- if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
65
- $(this).addClass(menuClasses.join(' '));
66
- });
67
- };
68
-
69
- var sf = $.fn.superfish;
70
- sf.o = [];
71
- sf.op = {};
72
- sf.IE7fix = function(){
73
- var o = sf.op;
74
- if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
75
- this.toggleClass(sf.c.shadowClass+'-off');
76
- };
77
- sf.c = {
78
- bcClass : 'sf-breadcrumb',
79
- menuClass : 'sf-js-enabled',
80
- anchorClass : 'sf-with-ul',
81
- arrowClass : 'sf-sub-indicator',
82
- shadowClass : 'sf-shadow'
83
- };
84
- sf.defaults = {
85
- hoverClass : 'sfHover',
86
- pathClass : 'overideThisToUse',
87
- pathLevels : 1,
88
- delay : 800,
89
- animation : {opacity:'show'},
90
- speed : 'normal',
91
- autoArrows : true,
92
- dropShadows : true,
93
- disableHI : false, // true disables hoverIntent detection
94
- onInit : function(){}, // callback functions
95
- onBeforeShow: function(){},
96
- onShow : function(){},
97
- onHide : function(){}
98
- };
99
- $.fn.extend({
100
- hideSuperfishUl : function(){
101
- var o = sf.op,
102
- not = (o.retainPath===true) ? o.$path : '';
103
- o.retainPath = false;
104
- var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
105
- .find('>ul').hide().css('visibility','hidden');
106
- o.onHide.call($ul);
107
- return this;
108
- },
109
- showSuperfishUl : function(){
110
- var o = sf.op,
111
- sh = sf.c.shadowClass+'-off',
112
- $ul = this.addClass(o.hoverClass)
113
- .find('>ul:hidden').css('visibility','visible');
114
- sf.IE7fix.call($ul);
115
- o.onBeforeShow.call($ul);
116
- $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
117
- return this;
118
- }
119
- });
120
-
121
- })(jQuery);