social_stream-events 2.0.0.beta1 → 2.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar.css.sass +3 -0
- data/app/assets/stylesheets/social_stream/events/calendar/layout/_calendar_sidebar.css.sass +0 -2
- data/app/assets/stylesheets/social_stream/events/repository/_repository.css.sass +2 -3
- data/app/assets/stylesheets/social_stream/events/repository/layout/_repository.css.sass +9 -2
- data/app/assets/stylesheets/social_stream/events/responsive/_responsive-767px-max.css.sass +4 -4
- data/app/assets/stylesheets/social_stream/events/responsive/_responsive-768px-979px.css.sass +1 -3
- data/app/controllers/events_controller.rb +1 -1
- data/app/overrides/layouts/_header_signed_in/icon_nav.html.erb.deface +2 -2
- data/app/views/events/_new.html.erb +1 -1
- data/app/views/events/index.html.erb +4 -4
- data/config/locales/en.yml +3 -0
- data/config/locales/es.yml +3 -0
- data/lib/social_stream/events/version.rb +1 -1
- data/social_stream-events.gemspec +1 -1
- data/spec/controllers/events_controller_spec.rb +10 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e596aa40ebd3027ede9e2444bfbc273597fadef
|
4
|
+
data.tar.gz: acedc480c8feea85f71afcb1336ce60b3bdb1750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79bef9997ef7ddb5e09992398fe975a982253f92e06f4a53d7017967e9176a2651c41a6be8d45018692bb3b809c1e0fd5abcf023f6b41c7fee97f4dfbdfc3e67
|
7
|
+
data.tar.gz: c2cfee3edba3b1e9450646cf6dc71b680601a2a2ca279af86da47e822c5231f94fb34daa3ec72df592305ccf313fa21ba09ac151f182a0bb98ecc89c06886d0e
|
@@ -19,11 +19,11 @@
|
|
19
19
|
width: 50%
|
20
20
|
display: inline-block !important
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
#calendar
|
23
|
+
@include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
24
|
+
margin-left: 0
|
24
25
|
#events
|
25
|
-
|
26
|
-
@extend .hidden-phone
|
26
|
+
|
27
27
|
td
|
28
28
|
.fc-button
|
29
29
|
padding: 3.5% !important
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
<li class="event">
|
5
|
-
<%= link_to
|
6
|
-
<i class="icon_navbar-calendar <%= current_header_icon_class(:events) %>"></i>
|
5
|
+
<%= link_to events_path do %>
|
6
|
+
<i class="icon_navbar-calendar <%= current_header_icon_class(:events) %>" title="<%= t 'header.icon.calendar' %>"></i>
|
7
7
|
<% end %>
|
8
8
|
</li>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_for @event || Event.new(:owner_id =>
|
1
|
+
<%= form_for @event || Event.new(:owner_id => profile_or_current_subject.actor_id, :interval => 1), :remote => true do |f| %>
|
2
2
|
<%= f.hidden_field :owner_id %>
|
3
3
|
<%= f.hidden_field :start_at %>
|
4
4
|
<%= f.hidden_field :end_at %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% content_for :title do %>
|
2
|
-
<%=
|
2
|
+
<%= profile_or_current_subject.name + ": " + t('event.calendar') %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<section id="events">
|
6
|
-
<%= render partial: 'toolbar/profile', locals: { subject:
|
6
|
+
<%= render partial: 'toolbar/profile', locals: { subject: profile_or_current_subject } %>
|
7
7
|
|
8
|
-
<div id="calendar" class="table-striped" data-events_path="<%= polymorphic_path [
|
8
|
+
<div id="calendar" class="table-striped" data-events_path="<%= polymorphic_path [profile_or_current_subject, Event.new] %>" data-date="<%= params[:date] %>" data-view="<%= params[:view] %>" <%= 'data-can-create="true"' if can?(:create, new_post(profile_or_current_subject)) %>></div>
|
9
9
|
|
10
|
-
<% if can? :create, new_post(
|
10
|
+
<% if can? :create, new_post(profile_or_current_subject) %>
|
11
11
|
<div id="calendar_form" class="modal hide fade">
|
12
12
|
<div class="modal-header">
|
13
13
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 2.0.0.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 2.0.0.beta2')
|
16
16
|
s.add_runtime_dependency('rails-scheduler', '~> 0.1.1')
|
17
17
|
|
18
18
|
# Development Gem dependencies
|
@@ -3,6 +3,16 @@ require 'spec_helper'
|
|
3
3
|
describe EventsController do
|
4
4
|
render_views
|
5
5
|
|
6
|
+
context "public calendar" do
|
7
|
+
context "when Anonymous" do
|
8
|
+
it "should render index" do
|
9
|
+
get :index
|
10
|
+
|
11
|
+
response.should redirect_to(new_user_session_path)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
6
16
|
context "user's calendar" do
|
7
17
|
before do
|
8
18
|
@user = Factory(:user)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Tapiador
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: social_stream-base
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.0.0.
|
20
|
+
version: 2.0.0.beta2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.0.0.
|
27
|
+
version: 2.0.0.beta2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rails-scheduler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|