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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4987018b8e4381997ef90ed050e02372997d8053
4
- data.tar.gz: 94fb6cb287d1ec59d53f8a08e8e4c4acaded1542
3
+ metadata.gz: 7e596aa40ebd3027ede9e2444bfbc273597fadef
4
+ data.tar.gz: acedc480c8feea85f71afcb1336ce60b3bdb1750
5
5
  SHA512:
6
- metadata.gz: 26a6ca8444a54b5417e77c47fbfe96561de78196425295ac2584b6e852e6f1f83dbd31007e9450672f013f96209eba4f35ff8dade130c84f5307710d4ca373af
7
- data.tar.gz: ae173bef7a68e5c34a66848ad84412027ee325e66bad1a9be6746ec40f88f887022fd20044686a08f7a9c32f44545a5a254e6fb58853fd1b9be31818c87baaf6
6
+ metadata.gz: 79bef9997ef7ddb5e09992398fe975a982253f92e06f4a53d7017967e9176a2651c41a6be8d45018692bb3b809c1e0fd5abcf023f6b41c7fee97f4dfbdfc3e67
7
+ data.tar.gz: c2cfee3edba3b1e9450646cf6dc71b680601a2a2ca279af86da47e822c5231f94fb34daa3ec72df592305ccf313fa21ba09ac151f182a0bb98ecc89c06886d0e
@@ -1,6 +1,9 @@
1
1
  @import "fullcalendar"
2
2
 
3
3
  #calendar
4
+ @include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
5
+ float: left
6
+ margin-left: 2.5%
4
7
  .fc-button.fc-state-default
5
8
  position: relative
6
9
 
@@ -1,8 +1,6 @@
1
1
  @import "fullcalendar"
2
2
 
3
3
  #events
4
- #toolbar
5
- display: none
6
4
 
7
5
  #sidebar
8
6
  .calendar
@@ -6,11 +6,10 @@
6
6
  .event
7
7
  .data
8
8
  .name
9
- .date
10
- @include ellipsis
11
- font-size: 12px
9
+ .date,
12
10
  .frequency
13
11
  @include ellipsis
14
12
  font-size: 12px
13
+ .frequency
15
14
  color: #888
16
15
 
@@ -20,5 +20,12 @@
20
20
  margin-top: 11px
21
21
  @include ellipsis
22
22
  width: 73%
23
- .date
24
- font-size: 11px
23
+ .date
24
+ font-size: 11px
25
+ .date,
26
+ .frequency
27
+ @include ellipsis
28
+ width: 73%
29
+ .frequency
30
+ color: #888
31
+ font-size: 12px
@@ -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
- #toolbar
26
- @extend .hidden-phone
26
+
27
27
  td
28
28
  .fc-button
29
29
  padding: 3.5% !important
@@ -21,9 +21,7 @@
21
21
  #pendings
22
22
  @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
23
23
 
24
- #events
25
- #toolbar
26
- @extend .hidden-tablet
24
+
27
25
 
28
26
  #explore-content
29
27
  .timeline
@@ -1,7 +1,7 @@
1
1
  class EventsController < ApplicationController
2
2
  include SocialStream::Controllers::Objects
3
3
 
4
- before_filter :profile_subject!, :only => :index
4
+ before_filter :profile_or_current_subject!, :only => :index
5
5
 
6
6
  def index
7
7
  index! do |format|
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  <li class="event">
5
- <%= link_to polymorphic_path([current_subject, Event.new ]) do %>
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 => profile_subject.actor_id, :interval => 1), :remote => true do |f| %>
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
- <%= profile_subject.name + ": " + t('event.calendar') %>
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: profile_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 [profile_subject, Event.new] %>" data-date="<%= params[:date] %>" data-view="<%= params[:view] %>" <%= 'data-can-create="true"' if can?(:create, new_post(profile_subject)) %>></div>
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(profile_subject) %>
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">
@@ -43,6 +43,9 @@ en:
43
43
  one: "Event"
44
44
  other: "Events"
45
45
  wall_post: "Published an event: %{title}"
46
+ header:
47
+ icon:
48
+ calendar: "Calendar"
46
49
  room:
47
50
  confirm_delete: "Delete room?"
48
51
  delete: "Delete"
@@ -44,6 +44,9 @@ es:
44
44
  one: "Evento"
45
45
  other: "Eventos"
46
46
  wall_post: "Publicó un evento: %{title}"
47
+ header:
48
+ icon:
49
+ calendar: "Calendar"
47
50
  room:
48
51
  confirm_delete: "¿Borrar espacio?"
49
52
  delete: "Borrar"
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Events
3
- VERSION = "2.0.0.beta1".freeze
3
+ VERSION = "2.0.0.beta2".freeze
4
4
  end
5
5
  end
@@ -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.beta1')
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.beta1
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-16 00:00:00.000000000 Z
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.beta1
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.beta1
27
+ version: 2.0.0.beta2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rails-scheduler
30
30
  requirement: !ruby/object:Gem::Requirement