refinerycms-calendar 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/refinery/calendar/admin/venues/_venue.html.erb +0 -5
- data/config/initializers/refinery/core.rb +4 -2
- data/config/routes.rb +1 -7
- data/readme.md +8 -4
- metadata +6 -9
- data/app/controllers/refinery/calendar/venues_controller.rb +0 -6
- data/app/views/refinery/calendar/venues/index.html.erb +0 -11
- data/app/views/refinery/calendar/venues/show.html.erb +0 -45
@@ -4,11 +4,6 @@
|
|
4
4
|
|
5
5
|
</span>
|
6
6
|
<span class='actions'>
|
7
|
-
|
8
|
-
<%= link_to refinery_icon_tag("application_go.png"), refinery.calendar_venue_path(venue),
|
9
|
-
:title => t('.view_live_html'),
|
10
|
-
:target => "_blank" %>
|
11
|
-
|
12
7
|
<%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_calendar_admin_venue_path(venue),
|
13
8
|
:title => t('.edit') %>
|
14
9
|
<%= link_to refinery_icon_tag("delete.png"), refinery.calendar_admin_venue_path(venue),
|
@@ -41,8 +41,10 @@ Refinery::Core.configure do |config|
|
|
41
41
|
# config.wymeditor_whitelist_tags = {}
|
42
42
|
|
43
43
|
# Register extra javascript for backend
|
44
|
-
|
44
|
+
config.register_javascript "jquery.ui.timepicker.addon.js"
|
45
|
+
config.register_javascript "refinery/calendar.js"
|
45
46
|
|
46
47
|
# Register extra stylesheet for backend (optional options)
|
47
|
-
|
48
|
+
config.register_stylesheet "refinery/calendar", :media => 'screen'
|
49
|
+
config.register_stylesheet "jquery-ui", :media => 'screen'
|
48
50
|
end
|
data/config/routes.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Refinery::Core::Engine.routes.append do
|
2
2
|
|
3
3
|
# Frontend routes
|
4
|
-
namespace :calendar
|
4
|
+
namespace :calendar do
|
5
5
|
get 'events/archive' => 'events#archive'
|
6
6
|
resources :events, :only => [:index, :show]
|
7
7
|
end
|
@@ -17,12 +17,6 @@ Refinery::Core::Engine.routes.append do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
# Frontend routes
|
22
|
-
namespace :calendar do
|
23
|
-
resources :venues, :only => [:index, :show]
|
24
|
-
end
|
25
|
-
|
26
20
|
# Admin routes
|
27
21
|
namespace :calendar, :path => '' do
|
28
22
|
namespace :admin, :path => 'refinery/calendar' do
|
data/readme.md
CHANGED
@@ -1,16 +1,20 @@
|
|
1
1
|
# Calendar extension for Refinery CMS.
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/resolve/refinerycms-calendar.png?branch=master)](http://travis-ci.org/resolve/refinerycms-calendar)
|
4
|
+
|
3
5
|
## Installation
|
4
6
|
|
5
7
|
```ruby
|
6
8
|
# in Gemfile:
|
7
|
-
gem 'refinerycms-calendar',
|
9
|
+
gem 'refinerycms-calendar', '~>2.0.0'
|
8
10
|
```
|
9
11
|
|
10
12
|
```
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
# in console:
|
14
|
+
|
15
|
+
bundle
|
16
|
+
rails g refinery:calendar
|
17
|
+
rake db:migrate db:seed db:test:prepare
|
14
18
|
```
|
15
19
|
|
16
20
|
Restart the server
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Joe Sak
|
9
8
|
- Philip Arndt
|
9
|
+
- Joe Sak
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
@@ -14,7 +14,7 @@ date: 2012-04-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: refinerycms-core
|
17
|
-
requirement: &
|
17
|
+
requirement: &2167589480 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.0.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2167589480
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: refinerycms-testing
|
28
|
-
requirement: &
|
28
|
+
requirement: &2167588760 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 2.0.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2167588760
|
37
37
|
description: Ruby on Rails Calendar extension for Refinery CMS
|
38
38
|
email:
|
39
39
|
executables: []
|
@@ -43,7 +43,6 @@ files:
|
|
43
43
|
- app/controllers/refinery/calendar/admin/events_controller.rb
|
44
44
|
- app/controllers/refinery/calendar/admin/venues_controller.rb
|
45
45
|
- app/controllers/refinery/calendar/events_controller.rb
|
46
|
-
- app/controllers/refinery/calendar/venues_controller.rb
|
47
46
|
- app/models/refinery/calendar/event.rb
|
48
47
|
- app/models/refinery/calendar/venue.rb
|
49
48
|
- app/views/refinery/calendar/admin/events/_actions.html.erb
|
@@ -68,8 +67,6 @@ files:
|
|
68
67
|
- app/views/refinery/calendar/events/_event.html.erb
|
69
68
|
- app/views/refinery/calendar/events/index.html.erb
|
70
69
|
- app/views/refinery/calendar/events/show.html.erb
|
71
|
-
- app/views/refinery/calendar/venues/index.html.erb
|
72
|
-
- app/views/refinery/calendar/venues/show.html.erb
|
73
70
|
- app/views/sitemap/index.xml.builder
|
74
71
|
- config/database.yml.mysql
|
75
72
|
- config/database.yml.postgresql
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<% content_for :body_content_title do %>
|
2
|
-
<%= @venue.name %>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<% content_for :body_content_left do %>
|
6
|
-
<section>
|
7
|
-
<h1>Name</h1>
|
8
|
-
<p>
|
9
|
-
<%=raw @venue.name %>
|
10
|
-
</p>
|
11
|
-
</section>
|
12
|
-
<section>
|
13
|
-
<h1>Address</h1>
|
14
|
-
<p>
|
15
|
-
<%=raw @venue.address %>
|
16
|
-
</p>
|
17
|
-
</section>
|
18
|
-
<section>
|
19
|
-
<h1>Url</h1>
|
20
|
-
<p>
|
21
|
-
<%=raw @venue.url %>
|
22
|
-
</p>
|
23
|
-
</section>
|
24
|
-
<section>
|
25
|
-
<h1>Phone</h1>
|
26
|
-
<p>
|
27
|
-
<%=raw @venue.phone %>
|
28
|
-
</p>
|
29
|
-
</section>
|
30
|
-
<% end %>
|
31
|
-
|
32
|
-
<% content_for :body_content_right do %>
|
33
|
-
<aside>
|
34
|
-
<h2><%= t('.other') %></h2>
|
35
|
-
<ul id="venues">
|
36
|
-
<% @venues.each do |venue| %>
|
37
|
-
<li>
|
38
|
-
<%= link_to venue.name, refinery.calendar_venue_path(venue) %>
|
39
|
-
</li>
|
40
|
-
<% end %>
|
41
|
-
</ul>
|
42
|
-
</aside>
|
43
|
-
<% end %>
|
44
|
-
|
45
|
-
<%= render '/refinery/content_page' %>
|