social_stream-events 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +9 -2
- data/GPL Affero license b/data/GPL Affero → license +0 -0
- data/Gemfile +1 -5
- data/README.rdoc +0 -0
- data/Rakefile +7 -0
- data/app/assets/images/btn/btn_certificate.png +0 -0
- data/app/assets/images/btn/btn_certificates.png +0 -0
- data/app/assets/images/btn/btn_edit.png +0 -0
- data/app/assets/images/btn/btn_embebed.png +0 -0
- data/app/assets/images/btn/btn_event.png +0 -0
- data/app/assets/images/btn/btn_outline.png +0 -0
- data/app/assets/images/btn/event.png +0 -0
- data/app/assets/images/btn/flyer.png +0 -0
- data/app/assets/images/btn/keynote.png +0 -0
- data/app/assets/images/btn/live.png +0 -0
- data/app/assets/images/btn/time.png +0 -0
- data/app/assets/images/btn/trash.png +0 -0
- data/app/assets/images/icons/IconsByGlyphish.txt +0 -0
- data/app/assets/images/icons/down.png +0 -0
- data/app/assets/images/icons/search.png +0 -0
- data/app/assets/images/icons/up.png +0 -0
- data/app/assets/images/logos/actor/event.png +0 -0
- data/app/assets/images/logos/contact/event.png +0 -0
- data/app/assets/images/logos/original/event.png +0 -0
- data/app/assets/images/logos/profile/event.png +0 -0
- data/app/assets/images/logos/representation/event.png +0 -0
- data/app/assets/images/tab_bottom.png +0 -0
- data/app/assets/javascripts/schedule.js +0 -0
- data/app/assets/javascripts/social_stream-events.js +0 -0
- data/app/assets/stylesheets/fullcalendar.css +0 -0
- data/app/assets/stylesheets/fullcalendar.print.css +0 -0
- data/app/assets/stylesheets/social_stream-events.css +1 -5
- data/app/controllers/agendas_controller.rb +0 -0
- data/app/controllers/events_controller.rb +0 -0
- data/app/controllers/sessions_controller.rb +0 -0
- data/app/helpers/event_helper.rb +0 -0
- data/app/models/agenda.rb +0 -0
- data/app/models/event.rb +0 -0
- data/app/models/session.rb +0 -0
- data/app/views/agendas/_agenda.html.erb +0 -0
- data/app/views/agendas/_edit.html.erb +0 -0
- data/app/views/agendas/_schedule.html.erb +0 -0
- data/app/views/agendas/_show.html.erb +0 -0
- data/app/views/agendas/_show_day.html.erb +0 -0
- data/app/views/agendas/edit.html.erb +0 -0
- data/app/views/agendas/event.html.erb +0 -0
- data/app/views/agendas/index.html.erb +0 -0
- data/app/views/agendas/show.html.erb +0 -0
- data/app/views/documents/_mediawall.html.erb +0 -0
- data/app/views/events/_event.html.erb +0 -0
- data/app/views/events/_event_with_details.html.erb +2 -0
- data/app/views/events/_form.html.erb +0 -0
- data/app/views/events/_jquery.html.erb +0 -0
- data/app/views/events/_manage.html.erb +0 -0
- data/app/views/events/_new_activity.html.erb +2 -0
- data/app/views/events/{_fields.html.erb → _new_activity_fields.html.erb} +0 -0
- data/app/views/events/_sessions_edit.html.erb +0 -0
- data/app/views/events/_sidebar_cloud.html.erb +0 -0
- data/app/views/events/_sidebar_index.html.erb +0 -0
- data/app/views/events/_sidebar_show.html.erb +0 -0
- data/app/views/events/agendas.html +0 -0
- data/app/views/events/edit.html.erb +0 -0
- data/app/views/events/index.html.erb +0 -0
- data/app/views/events/manage.html.erb +0 -0
- data/app/views/events/manage.js.erb +0 -0
- data/app/views/events/show.html.erb +0 -0
- data/app/views/profiles/_outline.html.erb +0 -0
- data/app/views/sessions/_form.html.erb +0 -0
- data/app/views/sessions/_new.html.erb +0 -0
- data/app/views/sessions/_session.html.erb +0 -0
- data/app/views/sessions/_show.html.erb +0 -0
- data/app/views/sessions/create.html.erb +0 -0
- data/app/views/sessions/create.js.erb +0 -0
- data/app/views/sessions/destroy.js.erb +0 -0
- data/app/views/sessions/edit.html.erb +0 -0
- data/app/views/sessions/index.html.erb +0 -0
- data/app/views/sessions/index.js.erb +0 -0
- data/app/views/sessions/new.html.erb +0 -0
- data/app/views/toolbar/_organizer.html.erb +0 -0
- data/app/views/toolbar/_sponsor.html.erb +0 -0
- data/app/views/toolbar/_suscribed.html.erb +0 -0
- data/config/locales/en.yml +0 -9
- data/config/routes.rb +0 -16
- data/db/{20110615143707_create_social_stream_events.rb → migrate/20110910161707_create_social_stream_events.rb} +0 -0
- data/lib/generators/social_stream/events/install_generator.rb +0 -0
- data/lib/social_stream-events.rb +6 -1
- data/lib/social_stream/events/engine.rb +5 -2
- data/lib/social_stream/events/version.rb +5 -0
- data/lib/social_stream/migrations/events.rb +2 -19
- data/lib/social_stream/toolbar_config/events.rb +40 -0
- data/social_stream-events.gemspec +5 -2
- data/vendor/assets/javascripts/fullcalendar.js +0 -0
- data/vendor/assets/javascripts/gcal.js +0 -0
- metadata +36 -88
- data/app/assets/javascripts/settings.js +0 -20
- data/app/assets/stylesheets/activities.css +0 -4
- data/app/assets/stylesheets/settings.css +0 -4
- data/app/assets/stylesheets/tie.css +0 -4
- data/app/assets/stylesheets/users.css +0 -4
- data/app/controllers/activities_controller.rb +0 -42
- data/app/controllers/calendar_events_controller.rb +0 -157
- data/app/controllers/settings_controller.rb +0 -70
- data/app/models/calendar_event.rb +0 -191
- data/app/models/calendar_event_series.rb +0 -126
- data/app/views/activities/_activity.html.erb +0 -5
- data/app/views/activities/_child.html.erb +0 -18
- data/app/views/activities/_comments.html.erb +0 -3
- data/app/views/activities/_index.html.erb +0 -94
- data/app/views/activities/_new.html.erb +0 -29
- data/app/views/activities/_options.html.erb +0 -15
- data/app/views/activities/_root.html.erb +0 -37
- data/app/views/activities/_wall.html.erb +0 -5
- data/app/views/activities/_walls.html.erb +0 -34
- data/app/views/activities/documents.js.erb +0 -1
- data/app/views/activities/index.js.erb +0 -1
- data/app/views/calendar_events/_calendar.html.erb +0 -0
- data/app/views/calendar_events/_edit_form.html.erb +0 -58
- data/app/views/calendar_events/_form.html.erb +0 -65
- data/app/views/calendar_events/available.html.erb +0 -81
- data/app/views/calendar_events/create.js.erb +0 -18
- data/app/views/calendar_events/edit.js.erb +0 -1
- data/app/views/calendar_events/index.html.erb +0 -162
- data/app/views/calendar_events/move.js.erb +0 -0
- data/app/views/calendar_events/new.js.erb +0 -9
- data/app/views/calendar_events/resize.js.erb +0 -0
- data/app/views/calendar_events/schedule.html.erb +0 -143
- data/app/views/events/_new.html.erb +0 -2
- data/app/views/kaminari/_first_page.html.erb +0 -11
- data/app/views/kaminari/_gap.html.erb +0 -8
- data/app/views/kaminari/_last_page.html.erb +0 -11
- data/app/views/kaminari/_next_page.html.erb +0 -11
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_paginator.html.erb +0 -23
- data/app/views/kaminari/_prev_page.html.erb +0 -11
- data/app/views/profiles/_profile.html.erb +0 -40
- data/app/views/settings/_contacto.html.erb +0 -24
- data/app/views/settings/_header.html.erb +0 -8
- data/app/views/settings/_index.html.erb +0 -16
- data/app/views/settings/_manage.html.erb +0 -25
- data/app/views/settings/_settings.html.erb +0 -49
- data/app/views/settings/delete_relation.js.erb +0 -3
- data/app/views/settings/index.html.erb +0 -38
- data/app/views/settings/manage.html.erb +0 -31
- data/app/views/settings/show.html.erb +0 -15
- data/app/views/settings/update_relation.js.erb +0 -1
- data/app/views/toolbar/_home.html.erb +0 -11
- data/app/views/toolbar/_logo.html.erb +0 -23
- data/app/views/toolbar/_profile.html.erb +0 -21
- data/app/views/users/_index.html.erb +0 -33
- data/app/views/users/index.html.erb +0 -46
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
|
4
|
-
gem 'social_stream-base', :path => '../social_stream-base'
|
5
|
-
else
|
6
|
-
gem 'social_stream-base', :git => 'https://github.com/ging/social_stream-base.git'
|
7
|
-
end
|
3
|
+
gem 'social_stream-base', :path => '../base'
|
8
4
|
|
9
5
|
gemspec
|
data/README.rdoc
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,11 +26,7 @@
|
|
26
26
|
#founder #created{display: inline-block;}
|
27
27
|
#founder #thumb{display: inline-block;}
|
28
28
|
|
29
|
-
|
30
|
-
border: 1px solid #BDC7D8;
|
31
|
-
padding: 5px;
|
32
|
-
width: 95%;
|
33
|
-
}.sb_wrapper input[type="text"],
|
29
|
+
.sb_wrapper input[type="text"],
|
34
30
|
ul.sb_dropdown{
|
35
31
|
border:1px solid #fff;
|
36
32
|
background: #fafafa;
|
File without changes
|
File without changes
|
File without changes
|
data/app/helpers/event_helper.rb
CHANGED
File without changes
|
data/app/models/agenda.rb
CHANGED
File without changes
|
data/app/models/event.rb
CHANGED
File without changes
|
data/app/models/session.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/locales/en.yml
CHANGED
@@ -34,8 +34,6 @@ en:
|
|
34
34
|
confirm_delete: "Confirm delete?"
|
35
35
|
agenda:
|
36
36
|
confirm_delete: "delete"
|
37
|
-
button:
|
38
|
-
create: "Create"
|
39
37
|
conference:
|
40
38
|
title: "Conferences"
|
41
39
|
list: "Contact's conferences"
|
@@ -69,8 +67,6 @@ en:
|
|
69
67
|
info: "Event information"
|
70
68
|
tags: "Event tags"
|
71
69
|
outline: "Outline"
|
72
|
-
preposition:
|
73
|
-
and: "and"
|
74
70
|
session:
|
75
71
|
confirm_delete: "delete"
|
76
72
|
new: "New Session"
|
@@ -79,11 +75,6 @@ en:
|
|
79
75
|
title: "title"
|
80
76
|
description: "description"
|
81
77
|
schedule: "schedule"
|
82
|
-
settings:
|
83
|
-
manage:
|
84
|
-
name: "Admin Contacs"
|
85
|
-
briefing: "Settings contacts preferences"
|
86
|
-
explanation: "Change contacts permissions"
|
87
78
|
time:
|
88
79
|
am: am
|
89
80
|
end: End time
|
data/config/routes.rb
CHANGED
@@ -1,19 +1,6 @@
|
|
1
|
-
|
2
1
|
Rails.application.routes.draw do
|
3
2
|
|
4
|
-
resource :settings
|
5
|
-
resource :tie
|
6
|
-
match "/settings/update_relation/:id" => "settings#update_relation"
|
7
|
-
|
8
|
-
resource :settings
|
9
|
-
resource :tie
|
10
|
-
|
11
|
-
resource :actor
|
12
|
-
match "/settings/update_relation/:id" => "settings#update_relation"
|
13
|
-
match "/settings/manage" => "settings#manage"
|
14
3
|
match "/events/manage" => "events#manage"
|
15
|
-
match "/settings/delete_relation/:id" => "settings#delete_relation"
|
16
|
-
match "/activities/documents" => "activities#documents"
|
17
4
|
match "/sessions/delete/:id" => "sessions#delete"
|
18
5
|
# Social Stream subjects configured in config/initializers/social_stream.rb
|
19
6
|
|
@@ -27,7 +14,6 @@ Rails.application.routes.draw do
|
|
27
14
|
end
|
28
15
|
end
|
29
16
|
|
30
|
-
|
31
17
|
match "events/:id/agenda" => "agendas#show"
|
32
18
|
match "events/:id/sessions" => "sessions#show"
|
33
19
|
match "events/:id/sessions/create" => "sessions#create"
|
@@ -41,6 +27,4 @@ Rails.application.routes.draw do
|
|
41
27
|
match "sessions/:id/new" => "sessions#new"
|
42
28
|
match "sessions/:id/create" => "sessions#create"
|
43
29
|
match "sessions/:id/update" => "sessions#update"
|
44
|
-
|
45
|
-
|
46
30
|
end
|
File without changes
|
File without changes
|
data/lib/social_stream-events.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
require 'social_stream-base'
|
2
2
|
|
3
3
|
module SocialStream
|
4
|
+
module ToolbarConfig
|
5
|
+
autoload :Events, 'social_stream/toolbar_config/events'
|
6
|
+
end
|
7
|
+
|
4
8
|
module Events
|
5
|
-
# Add :
|
9
|
+
# Add :event, :agenda, :session to SocialStream.objects and SocialStream.activity_forms
|
10
|
+
# by default
|
6
11
|
# It can be configured by users at application's config/initializers/social_stream.rb
|
7
12
|
[:event, :agenda, :session].each do |o|
|
8
13
|
SocialStream.objects.push(o) unless SocialStream.objects.include?(o)
|
@@ -1,25 +1,8 @@
|
|
1
|
-
require 'social_stream/migrations/
|
1
|
+
require 'social_stream/migrations/components'
|
2
2
|
|
3
3
|
module SocialStream
|
4
4
|
module Migrations
|
5
|
-
class Events <
|
6
|
-
def initialize
|
7
|
-
super
|
8
|
-
|
9
|
-
@events = find_migration('social_stream-events')
|
10
|
-
end
|
11
|
-
|
12
|
-
def up
|
13
|
-
super
|
14
|
-
|
15
|
-
ActiveRecord::Migrator.migrate @events
|
16
|
-
end
|
17
|
-
|
18
|
-
def down
|
19
|
-
ActiveRecord::Migrator.migrate @events, 0
|
20
|
-
|
21
|
-
super
|
22
|
-
end
|
5
|
+
class Events < Components
|
23
6
|
end
|
24
7
|
end
|
25
8
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module SocialStream
|
2
|
+
module ToolbarConfig
|
3
|
+
module Events
|
4
|
+
def home_toolbar_items
|
5
|
+
items = super
|
6
|
+
|
7
|
+
items.find{ |i| i[:key] == :resources }[:items].unshift({
|
8
|
+
:key => :resources_events,
|
9
|
+
:name => image_tag("btn/btn_event.png")+t('conference.title'),
|
10
|
+
:url => events_path
|
11
|
+
})
|
12
|
+
|
13
|
+
items
|
14
|
+
end
|
15
|
+
|
16
|
+
def profile_toolbar_items(subject = current_subject)
|
17
|
+
items = super
|
18
|
+
|
19
|
+
items.find{ |i| i[:key] == :resources }[:items].unshift({
|
20
|
+
:key => :resources_events,
|
21
|
+
:name => image_tag("btn/btn_event.png")+t('conference.title'),
|
22
|
+
:url => polymorphic_path([subject, Event.new])
|
23
|
+
})
|
24
|
+
|
25
|
+
if SocialStream.activity_forms.include?(:event) &&
|
26
|
+
subject.is_a?(Event) &&
|
27
|
+
subject.agenda.present?
|
28
|
+
|
29
|
+
items.insert(1, {
|
30
|
+
:key => :outline_info,
|
31
|
+
:name => image_tag("btn/btn_outline.png")+t('menu.outline'),
|
32
|
+
:url => agenda_path(subject)
|
33
|
+
})
|
34
|
+
end
|
35
|
+
|
36
|
+
items
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,6 +1,9 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require File.join(File.dirname(__FILE__), 'lib', 'social_stream', 'events', 'version')
|
3
|
+
|
1
4
|
Gem::Specification.new do |s|
|
2
5
|
s.name = "social_stream-events"
|
3
|
-
s.version =
|
6
|
+
s.version = SocialStream::Events::VERSION.dup
|
4
7
|
s.authors = ["Diego Carrera", "Antonio Tapiador", "GING - DIT - UPM"]
|
5
8
|
s.summary = "Events and Video conferences capabilities for Social Stream, the core for building social network websites"
|
6
9
|
s.description = "Social Stream is a Ruby on Rails engine providing your application with social networking features and activity streams.\n\nThis gem allow you to add events and videoconferences as new social stream activity."
|
@@ -9,7 +12,7 @@ Gem::Specification.new do |s|
|
|
9
12
|
s.files = `git ls-files`.split("\n")
|
10
13
|
|
11
14
|
# Gem dependencies
|
12
|
-
s.add_runtime_dependency('social_stream-base','~> 0.9.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.11')
|
13
16
|
# Development Gem dependencies
|
14
17
|
s.add_development_dependency('sqlite3-ruby')
|
15
18
|
if RUBY_VERSION < '1.9'
|