social_stream-events 1.1.1 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/assets/javascripts/social_stream/calendar.js.erb +135 -0
- data/app/assets/javascripts/social_stream/event.js +44 -0
- data/app/assets/javascripts/social_stream/events.action.js +36 -0
- data/app/assets/javascripts/social_stream/events.poster.js +23 -0
- data/app/assets/javascripts/social_stream/events.timeline.js +6 -0
- data/app/assets/javascripts/social_stream/fullcalendar.js +135 -0
- data/app/assets/javascripts/social_stream-events.js +1 -1
- data/app/assets/stylesheets/social_stream/events/calendar/_calendar.css.sass +63 -0
- data/app/assets/stylesheets/social_stream/events/calendar/_calendar_modal.css.sass +15 -0
- data/app/assets/stylesheets/social_stream/events/calendar/_calendar_sidebar.css.sass +50 -0
- data/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar.css.sass +28 -0
- data/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar_modal.css.sass +60 -0
- data/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar_sidebar.css.sass +26 -0
- data/app/assets/stylesheets/social_stream/events/explore/layout/_explore_timeline_events.css.sass +6 -0
- data/app/assets/stylesheets/social_stream/events/header_nav/layout/_header_nav_events.css.sass +2 -0
- data/app/assets/stylesheets/social_stream/events/repository/_repository.css.sass +16 -0
- data/app/assets/stylesheets/social_stream/events/repository/layout/_repository.css.sass +24 -0
- data/app/assets/stylesheets/social_stream/events/responsive/_responsive-1200px-min.css.sass +34 -0
- data/app/assets/stylesheets/social_stream/events/responsive/_responsive-767px-max.css.sass +77 -0
- data/app/assets/stylesheets/social_stream/events/responsive/_responsive-768px-979px.css.sass +32 -0
- data/app/assets/stylesheets/social_stream/events/timeline/_timeline_events.css.sass +66 -0
- data/app/assets/stylesheets/social_stream/events/timeline/layout/_timeline_events.css.sass +70 -0
- data/app/assets/stylesheets/social_stream-events.css.sass +42 -0
- data/app/helpers/events_helper.rb +12 -1
- data/app/models/event.rb +7 -9
- data/app/overrides/layouts/_header_signed_in/icon_nav.html.erb.deface +8 -0
- data/app/overrides/settings/_index/add_rooms.html.erb.deface +6 -0
- data/app/overrides/sidebar/_show/add_calendar.html.erb.deface +5 -0
- data/app/views/events/_calendar_month.erb +3 -1
- data/app/views/events/{_event_date.html.erb → _date.html.erb} +5 -8
- data/app/views/events/{_event_date_sidebar.html.erb → _date_sidebar.html.erb} +4 -4
- data/app/views/events/{_event_details.html.erb → _details.html.erb} +11 -8
- data/app/views/events/_event.html.erb +17 -9
- data/app/views/events/_event_sidebar.html.erb +3 -3
- data/app/views/events/_form_poster.html.erb +2 -2
- data/app/views/events/_new.html.erb +11 -20
- data/app/views/events/_poster.html.erb +13 -0
- data/app/views/events/_quick_search_result.html.erb +1 -0
- data/app/views/events/_search_result.html.erb +1 -0
- data/app/views/events/_timeline.html.erb +8 -0
- data/app/views/events/create.js.erb +4 -16
- data/app/views/events/edit.js.erb +2 -2
- data/app/views/events/index.html.erb +23 -91
- data/app/views/events/index.js.erb +1 -1
- data/app/views/rooms/_form.html.erb +11 -16
- data/app/views/rooms/_index.html.erb +3 -7
- data/app/views/settings/_rooms.html.erb +11 -0
- data/app/views/sidebar/_calendar.html.erb +48 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/lib/generators/social_stream/events/install_generator.rb +2 -3
- data/lib/social_stream/events/engine.rb +0 -12
- data/lib/social_stream/events/version.rb +1 -1
- data/lib/social_stream-events.rb +3 -12
- data/lib/tasks/db/populate.rake +44 -0
- data/social_stream-events.gemspec +2 -2
- data/spec/controllers/events_controller_spec.rb +20 -0
- data/spec/views/settings_spec.rb +39 -0
- metadata +69 -44
- data/app/assets/javascripts/social_stream.calendar.js.erb +0 -104
- data/app/assets/javascripts/social_stream.event.js +0 -55
- data/app/assets/javascripts/social_stream.events.action.js +0 -31
- data/app/assets/javascripts/social_stream.events.poster.js +0 -22
- data/app/assets/stylesheets/events.css.scss +0 -218
- data/app/assets/stylesheets/social_stream-events.css +0 -3
- data/app/decorators/social_stream/base/document_decorator.rb +0 -3
- data/app/models/activity_object_property/poster.rb +0 -2
- data/app/views/events/_event_poster.html.erb +0 -9
- data/app/views/events/_sidebar_calendar.html.erb +0 -45
- data/app/views/rooms/_settings.html.erb +0 -23
- data/lib/social_stream/events/models/document.rb +0 -26
- data/lib/social_stream/views/settings/events.rb +0 -18
- data/lib/social_stream/views/sidebar/events.rb +0 -17
@@ -1,45 +0,0 @@
|
|
1
|
-
<div class="space_center"></div>
|
2
|
-
|
3
|
-
<div class="block">
|
4
|
-
<div class="content">
|
5
|
-
|
6
|
-
<% bow = (Time.now - 6.days).beginning_of_week %>
|
7
|
-
|
8
|
-
<%= render :partial => 'events/calendar_month',
|
9
|
-
:locals => {
|
10
|
-
:position => :top,
|
11
|
-
:date => bow.to_date
|
12
|
-
} %>
|
13
|
-
|
14
|
-
<table id="sidebar_calendar">
|
15
|
-
|
16
|
-
<% 28.times do |i| %>
|
17
|
-
<% day = bow + i.days %>
|
18
|
-
|
19
|
-
<%= raw cycle(*(Array.wrap("<tr>") + 6.times.map{""}) + Array.wrap(:name => "tr_start")) %>
|
20
|
-
<td id="sidebar_day_<%= day.day %>_<%= day.month %>_<%= day.year %>">
|
21
|
-
<%= link_to day.day, polymorphic_path([profile_or_current_subject, Event.new], :date => day.to_i, :view => "agendaWeek") %>
|
22
|
-
</td>
|
23
|
-
|
24
|
-
<%= raw cycle(*(6.times.map{""} + Array.wrap('</tr>') + Array.wrap(:name => "tr_end"))) %>
|
25
|
-
<% end %>
|
26
|
-
</table>
|
27
|
-
|
28
|
-
<%= javascript_tag do %>
|
29
|
-
$(function(){
|
30
|
-
SocialStream.Calendar.init({
|
31
|
-
eventsPath: "<%= escape_javascript polymorphic_path([@current_subject, Event.new]) %>",
|
32
|
-
start: "<%= bow.to_i %>",
|
33
|
-
end: "<%= (bow + 28.days).to_i %>"
|
34
|
-
});
|
35
|
-
});
|
36
|
-
<% end %>
|
37
|
-
|
38
|
-
<%= render :partial => 'events/calendar_month',
|
39
|
-
:locals => {
|
40
|
-
:position => :bottom,
|
41
|
-
:date => (bow + 28.days).to_date
|
42
|
-
} %>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
</div>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<div class="block" id="room_settings">
|
2
|
-
<div class="header">
|
3
|
-
<div class="header_text">
|
4
|
-
<%= t 'room.settings.title' %>
|
5
|
-
</div>
|
6
|
-
<div class="header_icon_right">
|
7
|
-
<%= link_to image_tag('btn/edit.png'), "javascript:showSettings(\"room_settings\");" %>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
<div id="room_settings_briefing" class="settings_briefing content">
|
11
|
-
<div class="form_row">
|
12
|
-
<%= t 'room.settings.description' %>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
<div class="content settings_content" id="room_settings_content" style="display:none;">
|
16
|
-
<div class="sub-block">
|
17
|
-
<%= render :partial => 'rooms/index' %>
|
18
|
-
</div>
|
19
|
-
<div class="sub-block">
|
20
|
-
<%= render :partial => 'rooms/form' %>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Events
|
3
|
-
module Models
|
4
|
-
module Document
|
5
|
-
extend ActiveSupport::Concern
|
6
|
-
|
7
|
-
included do
|
8
|
-
attr_accessor :event_property_object_id
|
9
|
-
|
10
|
-
before_validation(:on => :create) do
|
11
|
-
set_event
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
protected
|
16
|
-
|
17
|
-
def set_event
|
18
|
-
return if event_property_object_id.blank?
|
19
|
-
|
20
|
-
activity_object_holders <<
|
21
|
-
ActivityObjectProperty::Poster.new(:activity_object_id => event_property_object_id)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Views
|
3
|
-
module Settings
|
4
|
-
module Events
|
5
|
-
def settings_items
|
6
|
-
super.tap do |items|
|
7
|
-
if current_subject.is_a?(Group)
|
8
|
-
items.insert_before 'notifications', {
|
9
|
-
:key => 'rooms',
|
10
|
-
:html => render(:partial => 'rooms/settings')
|
11
|
-
}
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Views
|
3
|
-
module Sidebar
|
4
|
-
module Events
|
5
|
-
def sidebar_items type
|
6
|
-
super.tap do |items|
|
7
|
-
if profile_or_current_subject
|
8
|
-
items.unshift :key => 'calendar',
|
9
|
-
:html => render(:partial => 'events/sidebar_calendar')
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|