constructor-cms 0.9.1 → 1.0.0beta1
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.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/spec/dummy/app/views/pages/edit.html.slim +4 -94
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1aa6a6d3ad1ace249b87317bba0d1d684eaddf1
|
|
4
|
+
data.tar.gz: 88903978f9b41640719a3a36dd191316a06264d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bb2a5e6cd23f8d493006bb9ba3971e1e22a87c5ffdaa969b188966166ee9e428f981936ebe96ea98260122107e9eba77e8002ea68de32fc701f1280f2190941
|
|
7
|
+
data.tar.gz: 916804bd83bc7f171cb5f40c4d1440e253bdf3eb3899f24aa6cbb9c5653d165e7eb043e8da4c6499af9e45565604b6a63ff3df04e7cd6153f8d54e2d4fb74898
|
data/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2012—
|
|
1
|
+
Copyright (c) 2012—2014 Ivan Zotov
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Constructor – an open source Ruby on Rails content management system for Rails
|
|
|
12
12
|
|
|
13
13
|
### Add to Gemfile
|
|
14
14
|
|
|
15
|
-
gem 'constructor-cms', '~> 0.
|
|
15
|
+
gem 'constructor-cms', '~> 1.0.0beta1'
|
|
16
16
|
|
|
17
17
|
### Install
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ Password: 123qweASD
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
## Screenshots
|
|
33
|
-

|
|
34
34
|
|
|
35
35
|
## Copyright
|
|
36
36
|
Copyright © 2012—2013 Ivan Zotov. See [LICENSE][] for details.
|
|
@@ -1,97 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.row-fluid
|
|
4
|
-
.alert.alert-error.fade.in.span12
|
|
5
|
-
= link_to '×', '#', class: 'close', 'data-dismiss' => 'alert'
|
|
6
|
-
- @page.errors.full_messages.each do |m|
|
|
7
|
-
= m
|
|
8
|
-
| This page show edit with template
|
|
9
|
-
.form-horizontal
|
|
10
|
-
.control-group
|
|
11
|
-
= f.label :active, class: 'control-label'
|
|
12
|
-
.controls= f.check_box :active, class: 'span6'
|
|
1
|
+
.b-header
|
|
2
|
+
=t :edit_page
|
|
13
3
|
|
|
14
|
-
|
|
15
|
-
= f.label :name, class: 'control-label'
|
|
16
|
-
.controls= f.text_field :name, class: 'span4'
|
|
4
|
+
| This page show edit with template
|
|
17
5
|
|
|
18
|
-
|
|
19
|
-
= f.label :auto_url, class: 'control-label'
|
|
20
|
-
.controls
|
|
21
|
-
= f.check_box :auto_url, class: 'span9'
|
|
6
|
+
= render 'form'
|
|
22
7
|
|
|
23
|
-
.control-group.url
|
|
24
|
-
= f.label :url, class: 'control-label'
|
|
25
|
-
.controls
|
|
26
|
-
.full_url
|
|
27
|
-
span.path>= @page.parent.full_url if @page.parent
|
|
28
|
-
| /
|
|
29
|
-
span.address>= @page.url
|
|
30
|
-
= f.text_field :url, class: 'span3'
|
|
31
|
-
i.address_icon.icon-pencil
|
|
32
|
-
|
|
33
|
-
= render partial: 'field', collection: @page.fields
|
|
34
|
-
|
|
35
|
-
.accordion
|
|
36
|
-
.accordion-group
|
|
37
|
-
.accordion-heading.text-center
|
|
38
|
-
= link_to t(:settings), '#collapse', class: 'accordion-toggle', 'data-toggle' => 'collapse'
|
|
39
|
-
.accordion-body.in.collapse#collapse
|
|
40
|
-
.accordion-inner
|
|
41
|
-
.control-group
|
|
42
|
-
= f.label :parent_id, class: 'control-label'
|
|
43
|
-
.controls
|
|
44
|
-
= f.select :parent_id, options_for_select(for_select(@pages, true), selected: @parent_id), disabled: @page.self_and_descendants.map(&:id), include_blank: '--'
|
|
45
|
-
|
|
46
|
-
.control-group
|
|
47
|
-
= f.label :template_id, :class => 'control-label'
|
|
48
|
-
.controls
|
|
49
|
-
= f.select :template_id, options_for_select(templates, selected: @template_id)
|
|
50
|
-
.control-group
|
|
51
|
-
= f.label :redirect, class: 'control-label'
|
|
52
|
-
.controls
|
|
53
|
-
= f.text_field :redirect, class: 'span9'
|
|
54
|
-
.control-group
|
|
55
|
-
label.control-label=t :display_in
|
|
56
|
-
.controls
|
|
57
|
-
label.checkbox.inline.span2 for='in_menu'
|
|
58
|
-
= f.check_box :in_menu
|
|
59
|
-
=t :menu
|
|
60
|
-
|
|
61
|
-
label.checkbox.inline.span2 for='in_map'
|
|
62
|
-
= f.check_box :in_map
|
|
63
|
-
=t :sitemap
|
|
64
|
-
|
|
65
|
-
label.checkbox.inline.span2 for='in_nav'
|
|
66
|
-
= f.check_box :in_nav
|
|
67
|
-
=t :breadcrumbs
|
|
68
|
-
|
|
69
|
-
label.checkbox.inline.span2 for='in_url'
|
|
70
|
-
= f.check_box :in_url
|
|
71
|
-
=t :url
|
|
72
|
-
|
|
73
|
-
.accordion
|
|
74
|
-
.accordion-group
|
|
75
|
-
.accordion-heading.text-center
|
|
76
|
-
= link_to t(:seo), '#collapse-three', class: 'accordion-toggle', 'data-toggle' => 'collapse'
|
|
77
|
-
.accordion-body.in.collapse#collapse-three
|
|
78
|
-
.accordion-inner
|
|
79
|
-
.control-group
|
|
80
|
-
= f.label :title, class: 'control-label'
|
|
81
|
-
.controls
|
|
82
|
-
= f.text_field :title, class: 'span9'
|
|
83
|
-
.control-group
|
|
84
|
-
= f.label :keywords, class: 'control-label'
|
|
85
|
-
.controls
|
|
86
|
-
= f.text_field :keywords, class: 'span9'
|
|
87
|
-
.control-group
|
|
88
|
-
= f.label :description, class: 'control-label'
|
|
89
|
-
.controls
|
|
90
|
-
= f.text_area :description, class: 'span9', rows: 8
|
|
91
|
-
|
|
92
|
-
.row-fluid
|
|
93
|
-
.span12
|
|
94
|
-
.form-actions
|
|
95
|
-
= f.submit class: 'btn btn-primary'
|
|
96
|
-
= link_to t(:cancel), pages_url, class: 'btn'
|
|
97
|
-
= link_to t(:delete_page), @page, method: :delete, data: {confirm: t(:are_you_sure?)}, class: 'btn btn-danger pull-right' unless @page.new_record?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: constructor-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Zotov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: constructor-core
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 1.0.0beta1
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
26
|
+
version: 1.0.0beta1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: constructor-pages
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 1.0.0beta1
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 1.0.0beta1
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec-rails
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -178,9 +178,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
178
178
|
version: '0'
|
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
requirements:
|
|
181
|
-
- - '
|
|
181
|
+
- - '>'
|
|
182
182
|
- !ruby/object:Gem::Version
|
|
183
|
-
version:
|
|
183
|
+
version: 1.3.1
|
|
184
184
|
requirements: []
|
|
185
185
|
rubyforge_project:
|
|
186
186
|
rubygems_version: 2.1.11
|