alchemy_cms 3.3.0.rc2 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -2
- data/LICENSE +1 -1
- data/README.md +5 -12
- data/alchemy_cms.gemspec +1 -1
- data/app/assets/stylesheets/alchemy/archive.scss +6 -6
- data/app/assets/stylesheets/alchemy/frame.scss +8 -0
- data/app/controllers/alchemy/admin/pages_controller.rb +18 -12
- data/app/controllers/alchemy/pages_controller.rb +6 -3
- data/app/controllers/concerns/alchemy/page_redirects.rb +0 -7
- data/app/models/alchemy/essence_richtext.rb +1 -20
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/index.html.erb +4 -1
- data/app/views/alchemy/admin/attachments/show.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +20 -16
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -0
- data/app/views/alchemy/admin/pictures/_archive.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/tags/edit.html.erb +2 -2
- data/app/views/alchemy/admin/tags/index.html.erb +1 -1
- data/app/views/alchemy/admin/uploader/_button.html.erb +2 -4
- data/config/locales/alchemy.de.yml +1 -0
- data/lib/alchemy/filetypes.rb +1 -0
- data/lib/alchemy/test_support/factories/page_factory.rb +6 -0
- data/lib/alchemy/version.rb +1 -1
- metadata +6 -7
- data/app/views/alchemy/admin/pages/destroy.js.erb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2de102b0ff3416c4b8bf164e88c121cad5b606
|
4
|
+
data.tar.gz: f9dbf2b258ed3432b88ec0a4e758fed0cb17abc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab2060c1bc6766ae4270371bff98e1a75ca6d373851b4ba9d998c9fee0316b95de227592d356c0d50388f5d6014572d98341492a490d9e9d524a20eb2eb618e
|
7
|
+
data.tar.gz: b54e16e8762347eadab4dd5f9aa4e0c641bf655851a572a7eb11aaa5ede8fa94451dd60d39e5024f5e4d899ff10ffc36680545a521f574ecf53e36635e8e7caa
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 3.3.0 (
|
3
|
+
## 3.3.0 (2016-05-18)
|
4
4
|
|
5
5
|
__New Features__
|
6
6
|
|
@@ -19,6 +19,7 @@ __New Features__
|
|
19
19
|
* Deprecate `redirect_index` configuration
|
20
20
|
* Add Nestable elements feature
|
21
21
|
* Default site in seeder is now configurable
|
22
|
+
* Frontpage name and page layout are now editable when creating new language trees
|
22
23
|
|
23
24
|
__Notable Changes__
|
24
25
|
|
@@ -57,8 +58,22 @@ __Fixed Bugs__
|
|
57
58
|
* Eliminate an SQL lookup on frontend cached element partials
|
58
59
|
* Add missing german and spanish translation for element toolbar
|
59
60
|
* Use the site_id parameter and the session only in the Admin area
|
61
|
+
* Render 404 if accessing an unpublished index page that has "on page layout" callbacks
|
60
62
|
|
61
|
-
[Full Change Log](https://github.com/AlchemyCMS/alchemy_cms/compare/v3.2.0
|
63
|
+
[Full Change Log](https://github.com/AlchemyCMS/alchemy_cms/compare/v3.2.1...v3.3.0)
|
64
|
+
|
65
|
+
## 3.2.1 (2016-03-31)
|
66
|
+
|
67
|
+
__Fixed Bugs__
|
68
|
+
|
69
|
+
* Fix constant lookup issues with registered abilites
|
70
|
+
* Fix: `EssenceSelect` grouped `select_values`
|
71
|
+
* Respect `:reverse` option when sorting elements
|
72
|
+
* Directly updates position in database while sorting contents
|
73
|
+
* Don't show trashed elements when using a fallback
|
74
|
+
* Fixes wrong week number in datepicker
|
75
|
+
|
76
|
+
[Full Change Log](https://github.com/AlchemyCMS/alchemy_cms/compare/v3.2.0...v3.2.1)
|
62
77
|
|
63
78
|
## 3.2.0 (2015-07-31)
|
64
79
|
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,19 +1,16 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/alchemy_cms.svg)](http://badge.fury.io/rb/alchemy_cms)
|
2
|
-
[![Build Status](https://travis-ci.org/AlchemyCMS/alchemy_cms.svg?branch=
|
2
|
+
[![Build Status](https://travis-ci.org/AlchemyCMS/alchemy_cms.svg?branch=3.3-stable)](https://travis-ci.org/AlchemyCMS/alchemy_cms)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/AlchemyCMS/alchemy_cms.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms)
|
4
4
|
[![Test Coverage](https://codeclimate.com/github/AlchemyCMS/alchemy_cms/badges/coverage.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms)
|
5
5
|
[![Slack Status](http://slack.alchemy-cms.com/badge.svg)](http://slack.alchemy-cms.com)
|
6
6
|
|
7
|
-
**CAUTION: This master branch is a development branch that *can* contain bugs. For productive environments you should use the [current Ruby gem version](https://rubygems.org/gems/alchemy_cms/versions/3.2.0), or the [latest stable branch (3.2-stable)](https://github.com/AlchemyCMS/alchemy_cms/tree/3.2-stable).**
|
8
|
-
|
9
|
-
|
10
7
|
## About
|
11
8
|
|
12
9
|
![Alchemy CMS](http://alchemy-cms.com/assets/alchemy_logo.svg)
|
13
10
|
|
14
11
|
Alchemy is a powerful, flexible and user centric Rails CMS.
|
15
12
|
|
16
|
-
Read more about Alchemy on the [website](
|
13
|
+
Read more about Alchemy on the [website](https://alchemy-cms.com) and in the [guidelines](http://guides.alchemy-cms.com/stable/).
|
17
14
|
|
18
15
|
|
19
16
|
## Features
|
@@ -78,11 +75,9 @@ $ alchemy --help
|
|
78
75
|
Put this into your `Gemfile`:
|
79
76
|
|
80
77
|
```ruby
|
81
|
-
gem 'alchemy_cms', github: 'AlchemyCMS/alchemy_cms', branch: '
|
78
|
+
gem 'alchemy_cms', github: 'AlchemyCMS/alchemy_cms', branch: '3.3-stable'
|
82
79
|
```
|
83
80
|
|
84
|
-
**NOTE:** You normally want to use a stable branch, like `3.0-stable`.
|
85
|
-
|
86
81
|
If you want to use Russian translation and have better i18n support, you should put:
|
87
82
|
|
88
83
|
```ruby
|
@@ -107,11 +102,9 @@ the Devise based user model that Alchemy provides and was extracted [into its ow
|
|
107
102
|
If you don't have your own user class, you can use the Alchemy user model. Just add the following gem into your `Gemfile`:
|
108
103
|
|
109
104
|
```ruby
|
110
|
-
gem 'alchemy-devise', github: 'AlchemyCMS/alchemy-devise', branch: '
|
105
|
+
gem 'alchemy-devise', github: 'AlchemyCMS/alchemy-devise', branch: '3.3-stable'
|
111
106
|
```
|
112
107
|
|
113
|
-
**NOTE:** You normally want to use a stable branch, like `2.0-stable`.
|
114
|
-
|
115
108
|
Then run:
|
116
109
|
|
117
110
|
```shell
|
@@ -303,7 +296,7 @@ Alchemy specs are written **in RSpec 3**. Please **do not use deprecated RSpec 2
|
|
303
296
|
|
304
297
|
## License
|
305
298
|
|
306
|
-
* BSD: <https://raw.
|
299
|
+
* BSD: <https://raw.githubusercontent.com/AlchemyCMS/alchemy_cms/master/LICENSE>
|
307
300
|
|
308
301
|
|
309
302
|
## Spread the love
|
data/alchemy_cms.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.require_paths = ['lib']
|
21
21
|
|
22
22
|
gem.add_runtime_dependency 'actionpack-page_caching', ['~> 1.0.0']
|
23
|
-
gem.add_runtime_dependency 'active_model_serializers', ['~> 0.9']
|
23
|
+
gem.add_runtime_dependency 'active_model_serializers', ['~> 0.9.0']
|
24
24
|
gem.add_runtime_dependency 'acts_as_list', ['~> 0.3']
|
25
25
|
gem.add_runtime_dependency 'acts-as-taggable-on', ['~> 3.1']
|
26
26
|
gem.add_runtime_dependency 'awesome_nested_set', ['~> 3.0.0']
|
@@ -198,7 +198,7 @@ div#filter_bar {
|
|
198
198
|
}
|
199
199
|
}
|
200
200
|
|
201
|
-
|
201
|
+
.tag-list {
|
202
202
|
@include box-sizing(border-box);
|
203
203
|
height: 100%;
|
204
204
|
padding-bottom: 138px;
|
@@ -281,22 +281,22 @@ div#filter_bar {
|
|
281
281
|
#assign_image_list {
|
282
282
|
padding-right: 244px;
|
283
283
|
|
284
|
-
|
284
|
+
.tag-list ul {
|
285
285
|
height: 316px;
|
286
286
|
}
|
287
287
|
|
288
|
-
&.filtered
|
288
|
+
&.filtered .tag-list ul {
|
289
289
|
height: 292px;
|
290
290
|
}
|
291
291
|
}
|
292
292
|
|
293
293
|
#assign_file_list {
|
294
294
|
|
295
|
-
|
295
|
+
.tag-list ul {
|
296
296
|
height: 396px;
|
297
297
|
}
|
298
298
|
|
299
|
-
&.filtered
|
299
|
+
&.filtered .tag-list ul {
|
300
300
|
height: 372px;
|
301
301
|
}
|
302
302
|
}
|
@@ -374,6 +374,6 @@ div#filter_bar {
|
|
374
374
|
}
|
375
375
|
}
|
376
376
|
|
377
|
-
|
377
|
+
.tags .list .tag {
|
378
378
|
padding: 0;
|
379
379
|
}
|
@@ -28,6 +28,7 @@ module Alchemy
|
|
28
28
|
if !@page_root
|
29
29
|
@language = Language.current
|
30
30
|
@languages_with_page_tree = Language.with_root_page
|
31
|
+
@page_layouts = PageLayout.layouts_for_select(@language.id)
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
@@ -110,21 +111,26 @@ module Alchemy
|
|
110
111
|
end
|
111
112
|
end
|
112
113
|
|
114
|
+
# Fetches page via before filter, destroys it and redirects to page tree
|
113
115
|
def destroy
|
114
|
-
# fetching page via before filter
|
115
|
-
name = @page.name
|
116
|
-
@page_id = @page.id
|
117
|
-
@layoutpage = @page.layoutpage?
|
118
116
|
if @page.destroy
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
117
|
+
flash[:notice] = Alchemy.t("Page deleted", name: @page.name)
|
118
|
+
|
119
|
+
# Remove page from clipboard
|
120
|
+
clipboard = get_clipboard('pages')
|
121
|
+
clipboard.delete_if { |item| item['id'] == @page.id.to_s }
|
122
|
+
end
|
123
|
+
|
124
|
+
respond_to do |format|
|
125
|
+
format.js do
|
126
|
+
@redirect_url = if @page.layoutpage?
|
127
|
+
alchemy.admin_layoutpages_path
|
128
|
+
else
|
129
|
+
alchemy.admin_pages_path
|
130
|
+
end
|
131
|
+
|
132
|
+
render :redirect
|
124
133
|
end
|
125
|
-
# remove from clipboard
|
126
|
-
@clipboard = get_clipboard('pages')
|
127
|
-
@clipboard.delete_if { |item| item['id'] == @page_id.to_s }
|
128
134
|
end
|
129
135
|
end
|
130
136
|
|
@@ -9,8 +9,13 @@ module Alchemy
|
|
9
9
|
before_action :load_index_page, only: [:index]
|
10
10
|
before_action :load_page, only: [:show]
|
11
11
|
|
12
|
-
#
|
12
|
+
# Legacy page redirects need to run after the page was loaded and before we render 404.
|
13
13
|
include LegacyPageRedirects
|
14
|
+
|
15
|
+
# From here on, we need a +@page+ to work with!
|
16
|
+
before_action :page_not_found!, if: -> { @page.blank? }, only: [:index, :show]
|
17
|
+
|
18
|
+
# Page redirects need to run after the page was loaded and we're sure to have a +@page+ set.
|
14
19
|
include PageRedirects
|
15
20
|
|
16
21
|
# We only need to set the +@root_page+ if we are sure that no more redirects happen.
|
@@ -35,8 +40,6 @@ module Alchemy
|
|
35
40
|
# If no public page can be found it renders a 404 error.
|
36
41
|
#
|
37
42
|
def index
|
38
|
-
@page || page_not_found!
|
39
|
-
|
40
43
|
if Alchemy::Config.get(:redirect_index)
|
41
44
|
ActiveSupport::Deprecation.warn("The configuration option `redirect_index` is deprecated and will be removed with the release of Alchemy v4.0")
|
42
45
|
raise "Remove deprecated `redirect_index` configuration!" if Alchemy.version == "4.0.0.rc1"
|
@@ -7,13 +7,6 @@ module Alchemy
|
|
7
7
|
module PageRedirects
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
10
|
-
included do
|
11
|
-
# We need a +@page+ to work with
|
12
|
-
before_action :page_not_found!,
|
13
|
-
if: -> { @page.blank? },
|
14
|
-
only: [:show]
|
15
|
-
end
|
16
|
-
|
17
10
|
private
|
18
11
|
|
19
12
|
# Returns an URL to redirect the request to.
|
@@ -25,26 +25,7 @@ module Alchemy
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def strip_content
|
28
|
-
self.stripped_body =
|
29
|
-
end
|
30
|
-
|
31
|
-
# Stripping HTML Tags and only returns plain text.
|
32
|
-
def strip_tags(html)
|
33
|
-
return html if html.blank?
|
34
|
-
if html.index("<")
|
35
|
-
text = ""
|
36
|
-
tokenizer = ::HTML::Tokenizer.new(html)
|
37
|
-
while token = tokenizer.next
|
38
|
-
node = ::HTML::Node.parse(nil, 0, 0, token, false)
|
39
|
-
# result is only the content of any Text nodes
|
40
|
-
text << node.to_s if node.class == ::HTML::Text
|
41
|
-
end
|
42
|
-
# strip any comments, and if they have a newline at the end (ie. line with
|
43
|
-
# only a comment) strip that too
|
44
|
-
text.gsub(/<!--(.*?)-->[\n]?/m, "")
|
45
|
-
else
|
46
|
-
html # already plain text
|
47
|
-
end
|
28
|
+
self.stripped_body = Rails::Html::FullSanitizer.new.sanitize(body)
|
48
29
|
end
|
49
30
|
end
|
50
31
|
end
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<div id="assign_file_list" class="with_padding<%= params[:tagged_with].present? ? ' filtered' : '' %>">
|
17
17
|
<% if any_tags = Alchemy::Attachment.tag_counts.any? %>
|
18
18
|
<div id="library_sidebar">
|
19
|
-
<div
|
19
|
+
<div class="tag-list">
|
20
20
|
<%= render 'tag_list' %>
|
21
21
|
</div>
|
22
22
|
</div>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<% any_tags = Alchemy::Attachment.tag_counts.any? %>
|
2
|
+
|
2
3
|
<% content_for(:toolbar) do %>
|
3
4
|
<div class="toolbar_buttons">
|
4
5
|
<% if can? :create, Alchemy::Attachment %>
|
@@ -8,13 +9,15 @@
|
|
8
9
|
file_attribute: 'file' %>
|
9
10
|
<% end %>
|
10
11
|
</div>
|
12
|
+
<%= render 'alchemy/admin/partials/search_form' %>
|
11
13
|
<% end %>
|
14
|
+
|
12
15
|
<div id="archive_all" class="<%= any_tags ? 'with_tag_filter ' : nil %>resources-table-wrapper">
|
13
16
|
<%= resources_header %>
|
14
17
|
<%= render partial: 'files_list' %>
|
15
18
|
<% if any_tags %>
|
16
19
|
<div id="library_sidebar">
|
17
|
-
<div
|
20
|
+
<div class="<%= params[:tagged_with].present? ? 'tag-list filtered' : 'tag-list' %>">
|
18
21
|
<%= render partial: 'tag_list' %>
|
19
22
|
</div>
|
20
23
|
</div>
|
@@ -21,22 +21,26 @@
|
|
21
21
|
<%- end -%>
|
22
22
|
|
23
23
|
<%- if params[:action] == "index" -%>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
24
|
+
<%= alchemy_form_for([:admin, Alchemy::Page.new], id: 'create_language_tree') do |form| %>
|
25
|
+
<% if @languages_with_page_tree.size >= 1 %>
|
26
|
+
<h3><%= Alchemy.t(:create_language_tree_heading) %></h3>
|
27
|
+
<p><%= Alchemy.t(:want_to_create_new_language) %></p>
|
28
|
+
<% end %>
|
29
|
+
<%= form.input :name, input_html: {value: @language.frontpage_name} %>
|
30
|
+
<%= form.input :page_layout,
|
31
|
+
collection: @page_layouts,
|
32
|
+
selected: @language.page_layout,
|
33
|
+
label: Alchemy.t(:page_type),
|
34
|
+
include_blank: false,
|
35
|
+
required: true,
|
36
|
+
input_html: {class: 'alchemy_selectbox'} %>
|
37
|
+
<%= form.hidden_field :language_id, value: @language.id %>
|
38
|
+
<%= form.hidden_field :language_code, value: @language.code %>
|
39
|
+
<%= form.hidden_field :language_root, value: true %>
|
40
|
+
<%= form.hidden_field :parent_id, value: root.id %>
|
41
|
+
<%= form.hidden_field :public, value: Alchemy::Language.all.size == 1 %>
|
42
|
+
<%= form.submit Alchemy.t("create_tree_as_new_language", language: @language.name), autofocus: true %>
|
43
|
+
<% end %>
|
40
44
|
<%- end -%>
|
41
45
|
|
42
46
|
<%- else -%>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="library_sidebar">
|
2
2
|
<%= render :partial => 'filter_bar' %>
|
3
|
-
<div
|
3
|
+
<div class="tag-list with_filter_bar<%= params[:tagged_with].present? ? ' filtered' : '' %>">
|
4
4
|
<%= render :partial => 'tag_list' %>
|
5
5
|
</div>
|
6
6
|
</div>
|
@@ -13,8 +13,8 @@
|
|
13
13
|
<div class="input tags">
|
14
14
|
<label class="control-label"><%= Alchemy.t('Tags') %></label>
|
15
15
|
<div class="control_group" id="tags_tag_list">
|
16
|
-
<%= js_filter_field '
|
17
|
-
<ul
|
16
|
+
<%= js_filter_field '.tag-list li' %>
|
17
|
+
<ul class="tags tag-list">
|
18
18
|
<%= render partial: "radio_tag", collection: @tags, locals: {name: "tag"} %>
|
19
19
|
</ul>
|
20
20
|
</div>
|
@@ -14,10 +14,8 @@
|
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
16
|
|
17
|
-
<% file_types =
|
18
|
-
|
19
|
-
configuration(:uploader)['allowed_filetypes'][model_class.model_name.collection]
|
20
|
-
) %>
|
17
|
+
<% file_types = local_assigns[:file_types].presence ||
|
18
|
+
configuration(:uploader)['allowed_filetypes'][model_class.model_name.collection] || ['*'] %>
|
21
19
|
|
22
20
|
<script type='text/javascript'>
|
23
21
|
$(function() {
|
data/lib/alchemy/filetypes.rb
CHANGED
@@ -37,6 +37,12 @@ FactoryGirl.define do
|
|
37
37
|
language nil
|
38
38
|
end
|
39
39
|
|
40
|
+
trait :layoutpage do
|
41
|
+
name "Footer"
|
42
|
+
parent_id { Alchemy::Page.find_or_create_layout_root_for(Alchemy::Language.current.id).id }
|
43
|
+
page_layout "footer"
|
44
|
+
end
|
45
|
+
|
40
46
|
trait :restricted do
|
41
47
|
name "Restricted page"
|
42
48
|
restricted true
|
data/lib/alchemy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.0
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-05-
|
16
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: actionpack-page_caching
|
@@ -35,14 +35,14 @@ dependencies:
|
|
35
35
|
requirements:
|
36
36
|
- - "~>"
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version:
|
38
|
+
version: 0.9.0
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
43
|
- - "~>"
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.9.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: acts_as_list
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -670,7 +670,6 @@ files:
|
|
670
670
|
- app/views/alchemy/admin/pages/_tinymce_custom_config.html.erb
|
671
671
|
- app/views/alchemy/admin/pages/configure.html.erb
|
672
672
|
- app/views/alchemy/admin/pages/configure_external.html.erb
|
673
|
-
- app/views/alchemy/admin/pages/destroy.js.erb
|
674
673
|
- app/views/alchemy/admin/pages/edit.html.erb
|
675
674
|
- app/views/alchemy/admin/pages/flush.js.erb
|
676
675
|
- app/views/alchemy/admin/pages/fold.js.erb
|
@@ -988,9 +987,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
988
987
|
version: 2.0.0
|
989
988
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
990
989
|
requirements:
|
991
|
-
- - "
|
990
|
+
- - ">="
|
992
991
|
- !ruby/object:Gem::Version
|
993
|
-
version:
|
992
|
+
version: '0'
|
994
993
|
requirements:
|
995
994
|
- ImageMagick (libmagick), v6.6 or greater.
|
996
995
|
rubyforge_project:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
$('#locked_page_<%= @page_id %>').remove();
|
2
|
-
|
3
|
-
<% if @layoutpage -%>
|
4
|
-
|
5
|
-
window.location.href = '<%= alchemy.admin_layoutpages_path %>';
|
6
|
-
|
7
|
-
<% elsif @page_root -%>
|
8
|
-
|
9
|
-
$('#sitemap').replaceWith('<%= j render("sitemap") %>');
|
10
|
-
Alchemy.growl('<%= j @message %>');
|
11
|
-
|
12
|
-
<% else -%>
|
13
|
-
|
14
|
-
window.location.href = '<%= alchemy.admin_pages_path %>';
|
15
|
-
|
16
|
-
<% end -%>
|
17
|
-
|
18
|
-
Alchemy.pleaseWaitOverlay(false);
|