cd2_catton_cms 1.1.31 → 1.1.32

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: 3a7de87933be7c4693bb82adab065bd745b9d586
4
- data.tar.gz: e3d9f46db1ef2f61cfacf9bc49b3c133d318f059
3
+ metadata.gz: 2dbf43d7497698109a3e5758c99714595a87fe23
4
+ data.tar.gz: da27bddf83dbf261a1ff660760dea71bf848b8ad
5
5
  SHA512:
6
- metadata.gz: '09775d08cd7ac35e5a3fca84372ee75071599e2902e200905ad20d798685af29f55d58f392948bb3041d80b2b0e6939c15fe7169e7b1ac05fa76d6e86089644d'
7
- data.tar.gz: 2cc783f3cef4f75962417a63c93d05715bd175f5fae91638ffe1e97568aea92bad3ead30a564031ffdcfbdfd9a3415dd0503c590bc4cbe3d248291fa58341041
6
+ metadata.gz: a18ab634c2143709aebcd6ef493e6b20a5119075c9d59535bcc09220535ba38fdbbae0d433cc04ad020916476d691935c21301c688c5a033f9a46aa93f0bfbae
7
+ data.tar.gz: 2c1d2395088d3871c1b51cf1bda814f0a15aa23939ee226b377a64ef426783ad92abf40e108742a4f71a8896003b57c6828e1570874f7f1e936d2882ac29acee
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+ require_dependency 'c/application_controller'
3
+
4
+ module C
5
+ class FrontEnd::ProjectsController < MainApplicationController
6
+
7
+ def index
8
+ get_page C::Page, 'projects'
9
+ @projects = C::Project.order(created_at: 'DESC')
10
+ end
11
+
12
+ def show
13
+ get_page C::Project
14
+ @project = @page
15
+ redirect_to root_url unless @project.published || user_signed_in?
16
+ force_clean_url @project
17
+ end
18
+ end
19
+ end
data/config/routes.rb CHANGED
@@ -139,6 +139,7 @@ C::Engine.routes.draw do
139
139
  end
140
140
  end
141
141
  resources :blogs, only: [:index, :show]
142
+ resources :projects, only: [:index, :show]
142
143
  resources :pages, only: [:show], path: '/' do
143
144
  collection do
144
145
  get :search
data/lib/c/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module C
3
- VERSION = '1.1.31'
3
+ VERSION = '1.1.32'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cd2_catton_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.31
4
+ version: 1.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - CD2
@@ -412,6 +412,7 @@ files:
412
412
  - app/controllers/c/front_end/blogs_controller.rb
413
413
  - app/controllers/c/front_end/enquiries_controller.rb
414
414
  - app/controllers/c/front_end/pages_controller.rb
415
+ - app/controllers/c/front_end/projects_controller.rb
415
416
  - app/controllers/c/main_application_controller.rb
416
417
  - app/helpers/c/application_helper.rb
417
418
  - app/helpers/c/blogs_helper.rb