enjoy_cms 0.2.0.beta → 0.2.0.1.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/locales/ru.enjoy.yml +1 -1
- data/config/locales/ru.models.yml +21 -15
- data/config/routes.rb +6 -1
- data/lib/enjoy/configuration.rb +6 -0
- data/lib/enjoy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26b0452cf8af5107eae3be611c08d68b26a92b50
|
|
4
|
+
data.tar.gz: 38fb060c589e4037d07a87404dc55529ed02d35f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c9221308b4077a83a790a439f7229ec7719f2b15244d36e8939d12bbcb44e06b7d51f6ec046e607a56d1cd86bd08e688c001cc836da97dfcc68712f85ebe8ce
|
|
7
|
+
data.tar.gz: 2e13becd2c888556cf21e73305987b2f9f6216fd1efec997056985c585838eca7d212b7d02cf279daa6a59643c0bc3a07d245963e50b662090af2420673c69de
|
data/Gemfile.lock
CHANGED
data/config/locales/ru.enjoy.yml
CHANGED
|
@@ -35,18 +35,26 @@ ru:
|
|
|
35
35
|
robots: Robots
|
|
36
36
|
title: Title
|
|
37
37
|
version: Version
|
|
38
|
-
|
|
38
|
+
sitemap_data_field: Родительский элемент/страница
|
|
39
|
+
seoable: Родительский элемент/страница
|
|
40
|
+
sitemap_show: Отображать в карте сайта
|
|
41
|
+
sitemap_lastmod: lastmod
|
|
42
|
+
sitemap_changefreq: changefreq
|
|
43
|
+
sitemap_priority: priority
|
|
44
|
+
|
|
39
45
|
mongoid: &mongoid
|
|
40
46
|
models:
|
|
41
47
|
user: Пользователь
|
|
42
|
-
menu: Меню
|
|
43
|
-
page: Страница
|
|
44
|
-
contact_message: Сообщение
|
|
45
|
-
news: Новость
|
|
48
|
+
enjoy/menu: Меню
|
|
49
|
+
enjoy/page: Страница
|
|
50
|
+
enjoy/contact_message: Сообщение
|
|
51
|
+
enjoy/news: Новость
|
|
46
52
|
|
|
47
|
-
gallery: Фотогалерея
|
|
48
|
-
gallery_image: Фото в фотогалерее
|
|
49
|
-
embeddede_gallery_image: Фото в фотогалерее
|
|
53
|
+
enjoy/gallery: Фотогалерея
|
|
54
|
+
enjoy/gallery_image: Фото в фотогалерее
|
|
55
|
+
enjoy/embeddede_gallery_image: Фото в фотогалерее
|
|
56
|
+
enjoy/seo: SEO
|
|
57
|
+
enjoy/sitemap_data: Карта сайта
|
|
50
58
|
attributes:
|
|
51
59
|
user:
|
|
52
60
|
email: E-mail
|
|
@@ -63,23 +71,22 @@ ru:
|
|
|
63
71
|
first_name: Имя
|
|
64
72
|
last_name: Фамилия
|
|
65
73
|
phone: Телефон
|
|
66
|
-
page:
|
|
74
|
+
enjoy/page:
|
|
67
75
|
fullpath: URL
|
|
68
76
|
regexp: Подсветка меню
|
|
69
77
|
redirect: Редирект
|
|
70
78
|
image: Картинка
|
|
71
79
|
hidden: Скрытая
|
|
72
80
|
menus: Меню
|
|
73
|
-
|
|
74
|
-
contact_message:
|
|
81
|
+
enjoy/contact_message:
|
|
75
82
|
name: Ваше имя
|
|
76
83
|
email: Ваш е-мейл
|
|
77
84
|
phone: Ваш телефон
|
|
78
85
|
content: Ваше сообщение
|
|
79
|
-
gallery:
|
|
80
|
-
gallery_image:
|
|
86
|
+
enjoy/gallery:
|
|
87
|
+
enjoy/gallery_image:
|
|
81
88
|
gallery: Фотогалерея
|
|
82
|
-
embeddede_gallery_image:
|
|
89
|
+
enjoy/embeddede_gallery_image:
|
|
83
90
|
errors:
|
|
84
91
|
models:
|
|
85
92
|
contact_message:
|
|
@@ -100,4 +107,3 @@ ru:
|
|
|
100
107
|
sorted: "Сортированные"
|
|
101
108
|
enabled: "Доступные"
|
|
102
109
|
_all: "Все"
|
|
103
|
-
|
data/config/routes.rb
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
Enjoy::Engine.routes.draw do
|
|
2
|
+
routes_config = Enjoy.configuration.routes_config
|
|
3
|
+
|
|
4
|
+
|
|
2
5
|
get 'contacts' => 'contacts#new', as: :contacts
|
|
3
6
|
post 'contacts' => 'contacts#create', as: :create_contacts
|
|
4
7
|
get 'contacts/sent' => 'contacts#sent', as: :contacts_sent
|
|
@@ -7,7 +10,9 @@ Enjoy::Engine.routes.draw do
|
|
|
7
10
|
|
|
8
11
|
resources :news, only: [:index, :show]
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
if routes_config and routes_config[:root_path]
|
|
14
|
+
root to: routes_config[:root_path]
|
|
15
|
+
end
|
|
11
16
|
|
|
12
17
|
get '*slug' => 'pages#show'
|
|
13
18
|
resources :pages, only: [:show]
|
data/lib/enjoy/configuration.rb
CHANGED
|
@@ -34,6 +34,8 @@ module Enjoy
|
|
|
34
34
|
|
|
35
35
|
attr_accessor :recreate_contact_message_action
|
|
36
36
|
|
|
37
|
+
attr_accessor :routes_config
|
|
38
|
+
|
|
37
39
|
def initialize
|
|
38
40
|
@news_image_styles = {
|
|
39
41
|
main: '400x200>',
|
|
@@ -60,6 +62,10 @@ module Enjoy
|
|
|
60
62
|
@localize = false
|
|
61
63
|
|
|
62
64
|
@separate_seo_table = false
|
|
65
|
+
|
|
66
|
+
@routes_config = {
|
|
67
|
+
root_path: "home#index"
|
|
68
|
+
}
|
|
63
69
|
end
|
|
64
70
|
|
|
65
71
|
def search_enabled=(val)
|
data/lib/enjoy/version.rb
CHANGED