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 +4 -4
- data/app/controllers/c/front_end/projects_controller.rb +19 -0
- data/config/routes.rb +1 -0
- data/lib/c/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dbf43d7497698109a3e5758c99714595a87fe23
|
4
|
+
data.tar.gz: da27bddf83dbf261a1ff660760dea71bf848b8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/c/version.rb
CHANGED
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.
|
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
|