activeadmin-selleo-cms 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/activeadmin_selleo_cms/attachment.rb +2 -2
- data/app/models/activeadmin_selleo_cms/header_image.rb +2 -2
- data/app/models/activeadmin_selleo_cms/icon.rb +2 -2
- data/app/models/ckeditor/attachment_file.rb +2 -2
- data/app/models/ckeditor/picture.rb +2 -2
- data/app/views/admin/pages/_form.html.haml +1 -3
- data/lib/activeadmin-selleo-cms/version.rb +1 -1
- metadata +1 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
module ActiveadminSelleoCms
|
2
2
|
class Attachment < ActiveadminSelleoCms::Asset
|
3
3
|
has_attached_file :data,
|
4
|
-
:url => "/cms/attachments/:id/:style_:basename.:extension",
|
5
|
-
:path => ":rails_root/public/cms/attachments/:id/:style_:basename.:extension"
|
4
|
+
:url => "/system/cms/attachments/:id/:style_:basename.:extension",
|
5
|
+
:path => ":rails_root/public/system/cms/attachments/:id/:style_:basename.:extension"
|
6
6
|
|
7
7
|
validates_attachment_size :data, :less_than => 10.megabytes
|
8
8
|
validates_attachment_presence :data
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module ActiveadminSelleoCms
|
2
2
|
class HeaderImage < ActiveadminSelleoCms::Asset
|
3
3
|
has_attached_file :data,
|
4
|
-
:url => "/cms/header_images/:id/:style_:basename.:extension",
|
5
|
-
:path => ":rails_root/public/cms/header_images/:id/:style_:basename.:extension",
|
4
|
+
:url => "/system/cms/header_images/:id/:style_:basename.:extension",
|
5
|
+
:path => ":rails_root/public/system/cms/header_images/:id/:style_:basename.:extension",
|
6
6
|
:styles => { :normal => "770x385#" },
|
7
7
|
:default_style => :normal
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module ActiveadminSelleoCms
|
2
2
|
class Icon < ActiveadminSelleoCms::Asset
|
3
3
|
has_attached_file :data,
|
4
|
-
:url => "/cms/icons/:id/:style_:basename.:extension",
|
5
|
-
:path => ":rails_root/public/cms/icons/:id/:style_:basename.:extension",
|
4
|
+
:url => "/system/cms/icons/:id/:style_:basename.:extension",
|
5
|
+
:path => ":rails_root/public/system/cms/icons/:id/:style_:basename.:extension",
|
6
6
|
:styles => { :normal => "120x90#" },
|
7
7
|
:default_style => :normal
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Ckeditor::AttachmentFile < Ckeditor::Asset
|
2
2
|
has_attached_file :data,
|
3
|
-
:url => "/ckeditor_assets/attachments/:id/:filename",
|
4
|
-
:path => ":rails_root/public/ckeditor_assets/attachments/:id/:filename"
|
3
|
+
:url => "/system/ckeditor_assets/attachments/:id/:filename",
|
4
|
+
:path => ":rails_root/public/system/ckeditor_assets/attachments/:id/:filename"
|
5
5
|
|
6
6
|
validates_attachment_size :data, :less_than => 100.megabytes
|
7
7
|
validates_attachment_presence :data
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Ckeditor::Picture < Ckeditor::Asset
|
2
2
|
has_attached_file :data,
|
3
|
-
:url => "/ckeditor_assets/pictures/:id/:style_:basename.:extension",
|
4
|
-
:path => ":rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension",
|
3
|
+
:url => "/system/ckeditor_assets/pictures/:id/:style_:basename.:extension",
|
4
|
+
:path => ":rails_root/public/system/ckeditor_assets/pictures/:id/:style_:basename.:extension",
|
5
5
|
:styles => { :content => '800>', :thumb => '118x100#' }
|
6
6
|
|
7
7
|
validates_attachment_size :data, :less_than => 2.megabytes
|
@@ -6,10 +6,8 @@
|
|
6
6
|
- @page.initialize_missing_sections
|
7
7
|
- @section_forms = []
|
8
8
|
|
9
|
-
= form.inputs "Layout" do
|
10
|
-
= form.input :layout, collection: ActiveadminSelleoCms::Layout.all, include_blank: false, hint: "The form will reload on change"
|
11
|
-
|
12
9
|
= form.inputs "General options" do
|
10
|
+
= form.input :layout, collection: ActiveadminSelleoCms::Layout.all, include_blank: false, hint: "The form will reload on change"
|
13
11
|
= form.input :parent_id, as: :select, collection: nested_set_options(ActiveadminSelleoCms::Page, @page) {|i| "#{'-' * i.level} #{i.title}" }
|
14
12
|
= form.input :is_published, as: :boolean, input_html: { checked: @page.published_at.present? }
|
15
13
|
= form.input :is_link_url, as: :boolean, input_html: { checked: @page.link_url.present? }
|