fullstack-cms 0.3.14 → 0.3.15
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/Gemfile +1 -1
- data/Gemfile.lock +10 -10
- data/VERSION +1 -1
- data/app/helpers/crumbs_helper.rb +43 -0
- data/app/support/deny.rb +1 -1
- data/app/views/admin/base/_fields.html.erb +3 -1
- data/app/views/admin/base/_form.html.erb +1 -18
- data/app/views/admin/base/_simple_form.html.erb +6 -0
- data/app/views/admin/photos/_photo.html.erb +1 -1
- data/app/views/admin/photos/_photo_uploader.html.erb +2 -0
- data/fullstack-cms.gemspec +6 -5
- data/lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb +0 -1
- metadata +6 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -41,20 +41,20 @@ GEM
|
|
41
41
|
activerecord (>= 3.0)
|
42
42
|
awesome_nested_set (2.1.3)
|
43
43
|
activerecord (>= 3.0.0)
|
44
|
-
aws-sdk (1.
|
44
|
+
aws-sdk (1.8.0)
|
45
45
|
httparty (~> 0.7)
|
46
46
|
json (~> 1.4)
|
47
47
|
nokogiri (>= 1.4.4)
|
48
48
|
uuidtools (~> 2.1)
|
49
49
|
bcrypt-ruby (3.0.1)
|
50
50
|
bluecloth (2.2.0)
|
51
|
-
bootstrap-datepicker-rails (0.6.
|
51
|
+
bootstrap-datepicker-rails (0.6.33)
|
52
52
|
railties (>= 3.0)
|
53
53
|
bootstrap-helpers (0.1.8)
|
54
54
|
rails
|
55
55
|
builder (3.0.0)
|
56
56
|
checkin (0.5.1)
|
57
|
-
chosen-rails (0.9.
|
57
|
+
chosen-rails (0.9.11)
|
58
58
|
coffee-rails (~> 3.2)
|
59
59
|
railties (~> 3.0)
|
60
60
|
sass-rails (~> 3.2)
|
@@ -78,7 +78,7 @@ GEM
|
|
78
78
|
orm_adapter (~> 0.1)
|
79
79
|
railties (~> 3.1)
|
80
80
|
warden (~> 1.2.1)
|
81
|
-
devise-i18n (0.5.
|
81
|
+
devise-i18n (0.5.12)
|
82
82
|
devise-i18n-views (0.2.5)
|
83
83
|
erubis (2.7.0)
|
84
84
|
execjs (1.4.0)
|
@@ -121,7 +121,7 @@ GEM
|
|
121
121
|
remotipart
|
122
122
|
resource-presentation-helpers
|
123
123
|
squeel
|
124
|
-
fullstack-admin (0.2.
|
124
|
+
fullstack-admin (0.2.12)
|
125
125
|
bootstrap-datepicker-rails
|
126
126
|
bootstrap-helpers (~> 0.1.7)
|
127
127
|
chosen-rails
|
@@ -181,9 +181,9 @@ GEM
|
|
181
181
|
multi_json (1.3.6)
|
182
182
|
multi_xml (0.5.1)
|
183
183
|
net-ssh (2.6.2)
|
184
|
-
nokogiri (1.5.
|
184
|
+
nokogiri (1.5.6)
|
185
185
|
orm_adapter (0.4.0)
|
186
|
-
paperclip (3.
|
186
|
+
paperclip (3.4.0)
|
187
187
|
activemodel (>= 3.0.0)
|
188
188
|
activerecord (>= 3.0.0)
|
189
189
|
activesupport (>= 3.0.0)
|
@@ -215,7 +215,7 @@ GEM
|
|
215
215
|
i18n (~> 0.5)
|
216
216
|
rails-slow-assets-workaround (0.1.1)
|
217
217
|
rails
|
218
|
-
rails_config (0.3.
|
218
|
+
rails_config (0.3.2)
|
219
219
|
activesupport (>= 3.0)
|
220
220
|
rails_i18n_gettext (0.0.4)
|
221
221
|
rails (~> 3.0)
|
@@ -240,7 +240,7 @@ GEM
|
|
240
240
|
resource-presentation-helpers (0.1.1)
|
241
241
|
rails
|
242
242
|
rinku (1.2.2)
|
243
|
-
sass (3.2.
|
243
|
+
sass (3.2.4)
|
244
244
|
sass-rails (3.2.5)
|
245
245
|
railties (~> 3.2.0)
|
246
246
|
sass (>= 3.1.10)
|
@@ -275,7 +275,7 @@ DEPENDENCIES
|
|
275
275
|
ars-permalink
|
276
276
|
awesome_nested_set
|
277
277
|
bluecloth
|
278
|
-
fullstack-admin (~> 0.2.
|
278
|
+
fullstack-admin (~> 0.2.12)
|
279
279
|
jeweler
|
280
280
|
rails_i18n_gettext
|
281
281
|
rinku (~> 1.2.2)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.15
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module CrumbsHelper
|
2
|
+
|
3
|
+
# breadcrumb("Home" => "/", "Blog" => [:site, :blog], @post.title => request.path )
|
4
|
+
|
5
|
+
def breadcrumb(crumbs = {})
|
6
|
+
crumbs = crumbs.to_a
|
7
|
+
buff = ""
|
8
|
+
buff << '<ul class="breadcrumb">'
|
9
|
+
active = crumbs.pop
|
10
|
+
crumbs.each do |title, path|
|
11
|
+
path = !path.is_a?(String) ? polymorphic_path(path) : h(path)
|
12
|
+
|
13
|
+
buff << <<-eos
|
14
|
+
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
15
|
+
<a itemprop="url" href="#{path}">
|
16
|
+
<span itemprop="title">#{h(title)}</span>
|
17
|
+
</a>
|
18
|
+
<span class="divider">/</span>
|
19
|
+
</li>
|
20
|
+
eos
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
title, path = active
|
25
|
+
path = !path.is_a?(String) ? polymorphic_path(path) : h(path)
|
26
|
+
|
27
|
+
buff << <<-eos
|
28
|
+
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="active">
|
29
|
+
<a itemprop="url" href="#{path}">
|
30
|
+
<span itemprop="title">#{h(title)}</span>
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
eos
|
34
|
+
|
35
|
+
|
36
|
+
buff << '</ul>'
|
37
|
+
content_for( :breadcrumb, buff.html_safe )
|
38
|
+
nil
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
|
data/app/support/deny.rb
CHANGED
@@ -1,18 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<%= tabs do |t| %>
|
4
|
-
<%= t.pane t('fullstack.admin.info', :default => "Info") do %>
|
5
|
-
|
6
|
-
<%= render :partial => "simple_form" %>
|
7
|
-
|
8
|
-
<% end %>
|
9
|
-
<%= t.pane t('fullstack.admin.resources.photos', :default => "Photos") do %>
|
10
|
-
|
11
|
-
<%= photo_uploader(current_resource) %>
|
12
|
-
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<% else %>
|
17
|
-
<%= render :partial => "simple_form" %>
|
18
|
-
<% end %>
|
1
|
+
<%= render :partial => "simple_form" %>
|
@@ -3,6 +3,12 @@
|
|
3
3
|
<%= f.errors %>
|
4
4
|
<%= render :partial => "fields", :locals => {:f => f} %>
|
5
5
|
|
6
|
+
<% if current_resource && current_resource.respond_to?(:photos) %>
|
7
|
+
<%= f.box t('fullstack.admin.resources.photos', :default => "Photos") do %>
|
8
|
+
<%= photo_uploader(current_resource) %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
|
6
12
|
<%= f.actions do %>
|
7
13
|
<%= f.resource_submit %>
|
8
14
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<li class="span2" data-id="<%= photo.id %>" data-photo-id='<%= photo.id %>'>
|
2
2
|
<div class="thumbnail">
|
3
3
|
<%= image_tag photo.url(:thumb), :style => "height: 141px" %>
|
4
|
-
<div class="thumbnail-toolbar">
|
4
|
+
<div class="thumbnail-toolbar btn-group">
|
5
5
|
<%= btn '<i class="icon-zoom-in"></i>'.html_safe, photo.url, :rel => "facebox", :'data-tip' => t('fullstack.admin.preview', :default => "Preview") %>
|
6
6
|
<%= btn '<i class="icon-edit"></i>'.html_safe, edit_admin_photo_path(photo), :'data-target' => '#edit-photo-modal', :'data-toggle' => 'modal', :"data-tip" => t('fullstack.admin.edit', :default => "Edit") %>
|
7
7
|
<%= btn '', admin_photo_path(photo), :remote => true, :method => :delete, :confirm => t('fullstack.admin.are_you_sure', :default => "Are you sure?"), :icon => :trash, :type => :danger, :icon_color => :white, :'data-tip' => t('fullstack.admin.delete', :default => "Delete") %>
|
@@ -34,6 +34,8 @@
|
|
34
34
|
|
35
35
|
<script type="text/javascript" charset="utf-8">
|
36
36
|
$(document).ready(function(){
|
37
|
+
$("#photographable-thumbnails img").css("cursor", "move");
|
38
|
+
|
37
39
|
$("#photographable-thumbnails").bind('sortstop', function(e, ui){
|
38
40
|
$(this).find("> li").each(function(i, e){
|
39
41
|
var photo_id = $(this).data('id');
|
data/fullstack-cms.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fullstack-cms"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.15"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcasimir"]
|
12
|
-
s.date = "2012-12-
|
12
|
+
s.date = "2012-12-27"
|
13
13
|
s.description = "CMS system built on fullstack"
|
14
14
|
s.email = "maurizio.cas@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,6 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
"app/controllers/admin/users_controller.rb",
|
33
33
|
"app/controllers/site/base_controller.rb",
|
34
34
|
"app/errors/denied_error.rb",
|
35
|
+
"app/helpers/crumbs_helper.rb",
|
35
36
|
"app/helpers/i18n_helper.rb",
|
36
37
|
"app/helpers/markdown_helper.rb",
|
37
38
|
"app/helpers/menus_helper.rb",
|
@@ -162,7 +163,7 @@ Gem::Specification.new do |s|
|
|
162
163
|
s.specification_version = 3
|
163
164
|
|
164
165
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
165
|
-
s.add_runtime_dependency(%q<fullstack-admin>, ["~> 0.2.
|
166
|
+
s.add_runtime_dependency(%q<fullstack-admin>, ["~> 0.2.12"])
|
166
167
|
s.add_runtime_dependency(%q<ars-permalink>, [">= 0"])
|
167
168
|
s.add_runtime_dependency(%q<acts-as-taggable-on>, [">= 0"])
|
168
169
|
s.add_runtime_dependency(%q<acts_as_indexed>, [">= 0"])
|
@@ -173,7 +174,7 @@ Gem::Specification.new do |s|
|
|
173
174
|
s.add_runtime_dependency(%q<bluecloth>, [">= 0"])
|
174
175
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
175
176
|
else
|
176
|
-
s.add_dependency(%q<fullstack-admin>, ["~> 0.2.
|
177
|
+
s.add_dependency(%q<fullstack-admin>, ["~> 0.2.12"])
|
177
178
|
s.add_dependency(%q<ars-permalink>, [">= 0"])
|
178
179
|
s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
|
179
180
|
s.add_dependency(%q<acts_as_indexed>, [">= 0"])
|
@@ -185,7 +186,7 @@ Gem::Specification.new do |s|
|
|
185
186
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
186
187
|
end
|
187
188
|
else
|
188
|
-
s.add_dependency(%q<fullstack-admin>, ["~> 0.2.
|
189
|
+
s.add_dependency(%q<fullstack-admin>, ["~> 0.2.12"])
|
189
190
|
s.add_dependency(%q<ars-permalink>, [">= 0"])
|
190
191
|
s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
|
191
192
|
s.add_dependency(%q<acts_as_indexed>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fullstack-admin
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.2.
|
21
|
+
version: 0.2.12
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.2.
|
29
|
+
version: 0.2.12
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: ars-permalink
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,6 +194,7 @@ files:
|
|
194
194
|
- app/controllers/admin/users_controller.rb
|
195
195
|
- app/controllers/site/base_controller.rb
|
196
196
|
- app/errors/denied_error.rb
|
197
|
+
- app/helpers/crumbs_helper.rb
|
197
198
|
- app/helpers/i18n_helper.rb
|
198
199
|
- app/helpers/markdown_helper.rb
|
199
200
|
- app/helpers/menus_helper.rb
|
@@ -328,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
328
329
|
version: '0'
|
329
330
|
segments:
|
330
331
|
- 0
|
331
|
-
hash:
|
332
|
+
hash: 2985390891517279258
|
332
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
333
334
|
none: false
|
334
335
|
requirements:
|