optimacms 0.1.40 → 0.1.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/optimacms/page.rb +1 -1
- data/app/views/optimacms/admin/pages/index.html.haml +2 -21
- data/app/views/optimacms/admin/templates/_form.html.haml +2 -2
- data/app/views/optimacms/admin/templates/index.html.haml +2 -13
- data/lib/optimacms/version.rb +1 -1
- data/spec/dummy/app/views/temp/_part2.html.haml +1 -0
- data/spec/dummy/log/development.log +2141 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 541eefdc59f607b5c4571a0dc5a7e9a42270ce21
|
4
|
+
data.tar.gz: 157c3f4c91050b4d477eff86029a263237d2323f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa652ca931f2e805a3d3995416c2e91b72234ae6cb68dd8f92f2bb150317d679fe0d904d9d2e76c5193a69b5c723a61e70b5806e1978bd20d751fefa767cb947
|
7
|
+
data.tar.gz: ee36effdf20837a3b70fa4dcfbcc3264c3389a7c5f92736a10207626597e868ce85983407cd329970ccacd21eb55b82517684050d954f178e7147818e68c39e5
|
@@ -5,7 +5,7 @@ module Optimacms
|
|
5
5
|
belongs_to :layout, :foreign_key => 'layout_id', :class_name => 'Template'
|
6
6
|
belongs_to :template, :foreign_key => 'template_id', :class_name => 'Template'
|
7
7
|
belongs_to :folder, :foreign_key => 'parent_id', :class_name => 'Page'
|
8
|
-
has_many :translations, :foreign_key => 'item_id', :class_name => 'PageTranslation'
|
8
|
+
has_many :translations, :foreign_key => 'item_id', :class_name => 'PageTranslation', :dependent => :destroy
|
9
9
|
accepts_nested_attributes_for :translations
|
10
10
|
|
11
11
|
#has_many :page_translations
|
@@ -14,23 +14,6 @@
|
|
14
14
|
.filter
|
15
15
|
= inline_filter_form_for(@filter)
|
16
16
|
|
17
|
-
-#= simple_form_for(:filter, url: '/', wrapper: :horizontal_search_form, wrapper_mappings: { check_boxes: :search_horizontal_radio_and_checkboxes, radio_buttons: :search_horizontal_radio_and_checkboxes, boolean: :search_horizontal_boolean },
|
18
|
-
-#= simple_form_for(:filter, url: pages_url, wrapper: :inline_search_form, wrapper_mappings: { },
|
19
|
-
html: {:id=>'formFilter'}) do |f|
|
20
|
-
= hidden_field_tag 'cmd', 'apply'
|
21
|
-
= render 'tableview/filter_fields', filter: @filter, f: f
|
22
|
-
= render 'tableview/buttons_apply_clear_simple_form_inline', filter: @filter, f: f
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
-#= form_tag(search_pages_url(:action=>'index'), method: "post", :class=>'form-inline', :name=>'formFilter', :id=>'formFilter') do
|
27
|
-
= hidden_field_tag 'cmd', 'apply'
|
28
|
-
|
29
|
-
= render :partial=>'tableview/filter_fields', :locals => {:filter=>@filter}
|
30
|
-
|
31
|
-
= render :partial=>'tableview/buttons_apply_clear', :locals => {:filter=>@filter}
|
32
|
-
|
33
|
-
|
34
17
|
|
35
18
|
- if @parent
|
36
19
|
=link_to 'HOME', pages_path(:parent_id=>0)
|
@@ -39,10 +22,8 @@
|
|
39
22
|
|
40
23
|
%table.table.table-striped.table-bordered
|
41
24
|
%tr
|
42
|
-
%th
|
43
|
-
|
44
|
-
= link_to 'Title', '#'
|
45
|
-
%th Name
|
25
|
+
%th= link_to_sortable_column :title, 'Title'
|
26
|
+
%th= link_to_sortable_column :name, 'Name'
|
46
27
|
%th URL
|
47
28
|
%th Template
|
48
29
|
%th Commands
|
@@ -15,7 +15,7 @@
|
|
15
15
|
-#= f.input :basename, disabled: true, label: 'Name'
|
16
16
|
-#= f.input :basedirpath, label: "Folder", :disabled=> true
|
17
17
|
= f.input :path, disabled: true, label: 'File'
|
18
|
-
|
18
|
+
-#=link_to 'Rename', '#'
|
19
19
|
|
20
20
|
|
21
21
|
-#= f.input :is_translated, label: "Translate?"
|
@@ -23,7 +23,7 @@
|
|
23
23
|
- if @item.has_code?
|
24
24
|
.form-group.template_content
|
25
25
|
%label(for="inputContent" class="col-sm-2 col-md-1 control-label")
|
26
|
-
|
26
|
+
Content
|
27
27
|
|
28
28
|
.col-sm-8.col-md-8.control
|
29
29
|
= f.input_field :content, as: :text, label: "Content", html: {:rows => 16, :cols => 120, :class=>'' }
|
@@ -14,15 +14,6 @@
|
|
14
14
|
|
15
15
|
.filter
|
16
16
|
= inline_filter_form_for(@filter)
|
17
|
-
-#= horizontal_filter_form_for(@filter)
|
18
|
-
|
19
|
-
-#= form_tag(search_templates_url(:action=>'index'), method: "post", :class=>'form-inline', :name=>'formFilter', :id=>'formFilter') do
|
20
|
-
= hidden_field_tag 'cmd', 'apply'
|
21
|
-
|
22
|
-
= render :partial=>'tableview/filter_fields', :locals => {:filter=>@filter}
|
23
|
-
|
24
|
-
= render :partial=>'tableview/buttons_apply_clear', :locals => {:filter=>@filter}
|
25
|
-
|
26
17
|
|
27
18
|
|
28
19
|
- if @parent
|
@@ -36,10 +27,8 @@
|
|
36
27
|
|
37
28
|
%table.table.table-striped.table-bordered
|
38
29
|
%tr
|
39
|
-
%th
|
40
|
-
|
41
|
-
-#= link_to 'Title', pages_path(:cmd=>'order', :orderby=>'title', :orderdir=>@filter.get_opposite_order_dir_for_column('title'))
|
42
|
-
%th Path
|
30
|
+
%th= link_to_sortable_column :title, 'Title'
|
31
|
+
%th= link_to_sortable_column :basepath, 'Path'
|
43
32
|
%th Commands
|
44
33
|
|
45
34
|
- @items.each do |item|
|
data/lib/optimacms/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
rrr
|