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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b96881451c7611c03a33ac92666841c2bd6a03e
4
- data.tar.gz: 0b5bbdccfe93eb0dd472e22bdd4bef342c5e5dfa
3
+ metadata.gz: 5b2de102b0ff3416c4b8bf164e88c121cad5b606
4
+ data.tar.gz: f9dbf2b258ed3432b88ec0a4e758fed0cb17abc1
5
5
  SHA512:
6
- metadata.gz: 83f2371b4a3f76bc1fe5fa6aa1f716aebea9105d0891b878fa7620cb5f2e75b228e579670f1a03da00b24dcc4aa666e380738bda5312889d9cc85f730b1649c0
7
- data.tar.gz: 58cf314fe01120b0bd00b18dcb891df015baed64fa0cb73611b76d50194b8227fb2d09f9185813568ad10346c3fb02f32a93f72aed54f3e0a515c32ef7600ce8
6
+ metadata.gz: 2ab2060c1bc6766ae4270371bff98e1a75ca6d373851b4ba9d998c9fee0316b95de227592d356c0d50388f5d6014572d98341492a490d9e9d524a20eb2eb618e
7
+ data.tar.gz: b54e16e8762347eadab4dd5f9aa4e0c641bf655851a572a7eb11aaa5ede8fa94451dd60d39e5024f5e4d899ff10ffc36680545a521f574ecf53e36635e8e7caa
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- ## 3.3.0 (unreleased)
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...HEAD)
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2014, magic labs GmbH, Hamburg Germany
1
+ Copyright (c) 2010-2016, magic labs GmbH, Hamburg Germany
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
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=master)](https://travis-ci.org/AlchemyCMS/alchemy_cms)
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](http://alchemy-cms.com) and in the [guidelines](http://guides.alchemy-cms.com).
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: 'master'
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: 'master'
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.github.com/magiclabs/alchemy_cms/master/LICENSE>
299
+ * BSD: <https://raw.githubusercontent.com/AlchemyCMS/alchemy_cms/master/LICENSE>
307
300
 
308
301
 
309
302
  ## Spread the love
@@ -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
- #tag_list {
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
- #tag_list ul {
284
+ .tag-list ul {
285
285
  height: 316px;
286
286
  }
287
287
 
288
- &.filtered #tag_list ul {
288
+ &.filtered .tag-list ul {
289
289
  height: 292px;
290
290
  }
291
291
  }
292
292
 
293
293
  #assign_file_list {
294
294
 
295
- #tag_list ul {
295
+ .tag-list ul {
296
296
  height: 396px;
297
297
  }
298
298
 
299
- &.filtered #tag_list ul {
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
- table.list#tag_list .tag {
377
+ .tags .list .tag {
378
378
  padding: 0;
379
379
  }
@@ -292,3 +292,11 @@ div#user_info {
292
292
  float: left;
293
293
  }
294
294
  }
295
+
296
+ .full-iframe {
297
+ position: absolute;
298
+ top: 0;
299
+ left: 0;
300
+ width: 100%;
301
+ height: 100%;
302
+ }
@@ -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
- set_root_page
120
- @message = Alchemy.t("Page deleted", name: name)
121
- flash[:notice] = @message
122
- respond_to do |format|
123
- format.js
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
- # Page redirects need to run after the page was loaded. Order is important here!
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 = strip_tags(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 id="tag_list">
19
+ <div class="tag-list">
20
20
  <%= render 'tag_list' %>
21
21
  </div>
22
22
  </div>
@@ -1,6 +1,6 @@
1
1
  <% p = params.dup %>
2
2
  <h2><%= Alchemy.t("Filter by tag") %></h2>
3
- <%= js_filter_field '#tag_list li' %>
3
+ <%= js_filter_field '.tag-list li' %>
4
4
  <ul>
5
5
  <%= render_tag_list('Alchemy::Attachment', p) %>
6
6
  </ul>
@@ -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 id="tag_list" class="<%= params[:tagged_with].present? ? 'filtered' : '' %>">
20
+ <div class="<%= params[:tagged_with].present? ? 'tag-list filtered' : 'tag-list' %>">
18
21
  <%= render partial: 'tag_list' %>
19
22
  </div>
20
23
  </div>
@@ -1,3 +1,3 @@
1
- <iframe src="<%= alchemy.show_attachment_path(@attachment) %>" frameborder=0 style="width: 100%; min-height: 90%">
1
+ <iframe src="<%= alchemy.show_attachment_path(@attachment) %>" frameborder=0 class="full-iframe">
2
2
  Your browser does not support frames.
3
3
  </iframe>
@@ -21,22 +21,26 @@
21
21
  <%- end -%>
22
22
 
23
23
  <%- if params[:action] == "index" -%>
24
-
25
- <%= form_for([:admin, Alchemy::Page.new]) do |form| %>
26
- <h3><%= Alchemy.t(:create_language_tree_heading) %></h3>
27
- <p><%= Alchemy.t(:want_to_create_new_language) %></p>
28
- <%= form.hidden_field :name, value: @language.frontpage_name %>
29
- <%= form.hidden_field :language_id, value: @language.id %>
30
- <%= form.hidden_field :language_code, value: @language.code %>
31
- <%= form.hidden_field :page_layout, value: @language.page_layout %>
32
- <%= form.hidden_field :language_root, value: true %>
33
- <%= form.hidden_field :parent_id, value: root.id %>
34
- <%= form.hidden_field :public, value: Alchemy::Language.all.size == 1 %>
35
- <div class="submit">
36
- <%= form.button Alchemy.t("create_tree_as_new_language", language: @language.name), autofocus: true %>
37
- </div>
38
- <% end %>
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 -%>
@@ -5,6 +5,7 @@
5
5
  collection: @page_layouts,
6
6
  label: Alchemy.t(:page_type),
7
7
  include_blank: false,
8
+ required: true,
8
9
  input_html: {class: 'alchemy_selectbox'} %>
9
10
  <%= f.input :name %>
10
11
  <%= f.submit Alchemy.t(:create) %>
@@ -1,6 +1,6 @@
1
1
  <div id="library_sidebar">
2
2
  <%= render :partial => 'filter_bar' %>
3
- <div id="tag_list" class="with_filter_bar<%= params[:tagged_with].present? ? ' filtered' : '' %>">
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>
@@ -4,7 +4,7 @@
4
4
  <div id="assign_image_list" class="with_padding<%= params[:tagged_with].present? ? ' filtered' : '' %>">
5
5
  <div id="library_sidebar">
6
6
  <%= render 'filter_bar' %>
7
- <div id="tag_list">
7
+ <div class="tag-list">
8
8
  <%= render 'tag_list' %>
9
9
  </div>
10
10
  </div>
@@ -1,7 +1,7 @@
1
1
  <% p = params.dup %>
2
2
  <% if Alchemy::Picture.tag_counts.any? %>
3
3
  <h2><%= Alchemy.t("Filter by tag") %></h2>
4
- <%= js_filter_field '#tag_list li' %>
4
+ <%= js_filter_field '.tag-list li' %>
5
5
  <ul>
6
6
  <%= render_tag_list('Alchemy::Picture', p) %>
7
7
  </ul>
@@ -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 '#tag_list li' %>
17
- <ul id="tag_list" class="tags">
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>
@@ -22,7 +22,7 @@
22
22
  </h1>
23
23
  <% if @tags.any? %>
24
24
 
25
- <table class="list" id="tag_list">
25
+ <table class="list">
26
26
  <thead>
27
27
  <tr>
28
28
  <th class="icon"></th>
@@ -14,10 +14,8 @@
14
14
  <% end %>
15
15
  <% end %>
16
16
 
17
- <% file_types = (
18
- local_assigns.fetch(:file_types, []).presence ||
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() {
@@ -141,6 +141,7 @@ de:
141
141
  image/gif: 'GIF-Bild'
142
142
  image/jpeg: 'JPG-Bild'
143
143
  image/png: 'PNG-Bild'
144
+ image/svg+xml: SVG-Grafik
144
145
  video/x-msvideo: 'AVI-Video'
145
146
  video/x-ms-wmv: 'Windows Media Video'
146
147
  image/tiff: 'TIFF-Bild'
@@ -13,6 +13,7 @@ module Alchemy
13
13
  "image/gif",
14
14
  "image/jpeg",
15
15
  "image/png",
16
+ "image/svg+xml",
16
17
  "image/tiff"
17
18
  ]
18
19
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
- VERSION = "3.3.0.rc2"
2
+ VERSION = "3.3.0"
3
3
 
4
4
  def self.version
5
5
  VERSION
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.rc2
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-10 00:00:00.000000000 Z
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: '0.9'
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: '0.9'
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: 1.3.1
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);