pages_cms 2.3.2 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/uploaders/pages_cms/image_uploader.rb +1 -1
- data/app/views/pages_cms/pages/show.html.haml +3 -3
- data/config/routes.rb +4 -4
- data/lib/pages_cms/engine.rb +0 -1
- data/lib/pages_cms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df03db2b84dec9deba9ffa7e475eac0678bbd9ef
|
4
|
+
data.tar.gz: 1e08cf7bba373bc6ace91cda09d5b5e05bccb9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab2b84aae81bf1f9142f3f5cbbd1f20f70069a42447f15ce6d4bfd34d0630a734f6d5052c3d94db814a32fb134b6e003739647fc662bbcca390e416302a2f6c
|
7
|
+
data.tar.gz: b875f102c6452e22d0d8faa5aaa67a21e1a5d2bf0f9efb59ea117ad835c6a21d6b7ba5351a65e3cbbaa85a7cb11ec038ce6c9b55375e5cb5d7f6725151091fc4
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#[PagesCms](
|
1
|
+
#[PagesCms](https://pages-cms.herokuapp.com/)
|
2
2
|
|
3
3
|
Pages CMS uses nested forms and draggable items to allow the user to build a site within the predefined layout from a designer. It incorporates an image management system as well as a page management system. It's like a wordpress page builder on rails.
|
4
4
|
|
5
|
-
Check out http://www.colinw.info/projects/pagescms for screenshots, gifs and to see a site built entirely with PagesCMS!
|
5
|
+
Check out http://www.colinw.info/projects/pagescms for screenshots, gifs and to see a site built entirely with PagesCMS! Or go to [https://pages-cms.herokuapp.com/accounts/new](https://pages-cms.herokuapp.com/) and create your very own PagesCMS built site.
|
6
6
|
|
7
7
|
## About
|
8
8
|
|
@@ -33,7 +33,7 @@ These content types can be interpreted by a designer to create a unique look and
|
|
33
33
|
|
34
34
|
## Installation
|
35
35
|
|
36
|
-
1. Add: `gem 'pages_cms', '~> 2.3.
|
36
|
+
1. Add: `gem 'pages_cms', '~> 2.3.2'` to your `Gemfile`
|
37
37
|
2. Run: `$ rails generate pages_cms:install`
|
38
38
|
|
39
39
|
This has built everything that PagesCMS needs to work, but to get hacking with some default styling and layout included, follow the next steps:
|
@@ -42,7 +42,7 @@ module PagesCms
|
|
42
42
|
# Add a white list of extensions which are allowed to be uploaded.
|
43
43
|
# For images you might use something like this:
|
44
44
|
def extension_white_list
|
45
|
-
%w(jpg jpeg gif png)
|
45
|
+
%w(jpg jpeg gif png pdf)
|
46
46
|
end
|
47
47
|
|
48
48
|
# Override the filename of the uploaded files:
|
@@ -31,18 +31,18 @@
|
|
31
31
|
%hr
|
32
32
|
- if @sidebar.all_posts
|
33
33
|
%h5 Blog Posts
|
34
|
-
-
|
34
|
+
- @page.account.articles.all.each do |article|
|
35
35
|
= link_to article.title, article_path(article), class: 'btn btn-xs btn-default'
|
36
36
|
%hr
|
37
37
|
- if @sidebar.all_tags
|
38
38
|
%h5 Tagged
|
39
|
-
-
|
39
|
+
- @page.account.articles.pluck(:tags).flatten.uniq.each do |tag|
|
40
40
|
= link_to tag, blog_path(current_site, tag), class: 'btn btn-xs btn-default'
|
41
41
|
%hr
|
42
42
|
- if @sidebar.all_pages
|
43
43
|
%h5 Pages
|
44
44
|
%ul.nav.nav-pills.nav-stacked
|
45
|
-
-
|
45
|
+
- @page.account.pages.where(sidebar_show: true).each do |link|
|
46
46
|
%li
|
47
47
|
= link_to link.title, slugged_path(link)
|
48
48
|
- @sidebar.links.each_line do |line|
|
data/config/routes.rb
CHANGED
@@ -19,14 +19,14 @@ PagesCms::Engine.routes.draw do
|
|
19
19
|
raccount = PagesCms::Account.find_by(mount_location: '/')
|
20
20
|
if accounts
|
21
21
|
accounts.each do |account|
|
22
|
-
get "/#{account.mount_location}/:parent/:slug" => 'pages#show', account: account.id
|
23
|
-
get "/#{account.mount_location}
|
22
|
+
# get "/#{account.mount_location}/:parent/:slug" => 'pages#show', account: account.id
|
23
|
+
get "/#{account.mount_location}/*slug" => 'pages#show', account: account.id
|
24
24
|
get "/#{account.mount_location}/" => 'pages#home', account: account.id
|
25
25
|
end
|
26
26
|
end
|
27
27
|
if raccount
|
28
|
-
get '/:parent/:slug' => 'pages#show', account: raccount.id, root: true
|
29
|
-
get '
|
28
|
+
# get '/:parent/:slug' => 'pages#show', account: raccount.id, root: true
|
29
|
+
get '/*slug' => 'pages#show', account: raccount.id, root: true
|
30
30
|
get '/' => 'pages#home', account: raccount.id, root: true, as: :root
|
31
31
|
end
|
32
32
|
end
|
data/lib/pages_cms/engine.rb
CHANGED
data/lib/pages_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pages_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|