ack_rocket_cms 0.7.7 → 0.7.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -6
- data/app/views/blocks/_favicon.html.slim +21 -0
- data/app/views/blocks/_seo_block.html.slim +18 -0
- data/app/views/blocks/_seo_block_with_obj.html.slim +27 -0
- data/app/views/devise/sessions/new.html.slim +23 -0
- data/app/views/devise/shared/_links.html.slim +25 -0
- data/app/views/layouts/application.html.slim +2 -3
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +5 -3
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f562bee2585c443d8d86188edf4930f31dcc9d1e
|
4
|
+
data.tar.gz: 29510850bf9dd6b7bd79bde2e653c37d9aeb6ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48a915514b32c086f6e77ee06d4b614bbe7ee2ad317efd7ddb691702263b26efbd06ed06cc75e6fb42cb9119e83263062c6486ff6048923f4f4961c64fe21811
|
7
|
+
data.tar.gz: b4b15b2b11b2f39c611fa76d3447fcfa2cbf60740b017747b59504b8efaed1baf726b6036e15ec16b2154657afdd089a958230ff634e20757057e221fc732b59
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ack_rocket_cms (0.7.7)
|
4
|
+
ack_rocket_cms (0.7.7.1)
|
5
5
|
ack_rails_admin_jcrop
|
6
6
|
addressable
|
7
7
|
ckeditor
|
@@ -72,7 +72,7 @@ GEM
|
|
72
72
|
addressable (2.3.8)
|
73
73
|
arel (6.0.0)
|
74
74
|
bcrypt (3.1.10)
|
75
|
-
bson (3.0
|
75
|
+
bson (3.1.0)
|
76
76
|
builder (3.2.2)
|
77
77
|
ckeditor (4.1.2)
|
78
78
|
cocaine
|
@@ -100,7 +100,7 @@ GEM
|
|
100
100
|
execjs (2.5.2)
|
101
101
|
font-awesome-rails (4.3.0.0)
|
102
102
|
railties (>= 3.2, < 5.0)
|
103
|
-
geocoder (1.2.
|
103
|
+
geocoder (1.2.9)
|
104
104
|
glebtv-simple_captcha (0.6.7)
|
105
105
|
globalid (0.3.5)
|
106
106
|
activesupport (>= 4.1.0)
|
@@ -131,8 +131,8 @@ GEM
|
|
131
131
|
moped (~> 2.0.0)
|
132
132
|
origin (~> 2.1)
|
133
133
|
tzinfo (>= 0.3.37)
|
134
|
-
moped (2.0.
|
135
|
-
bson (~> 3.0
|
134
|
+
moped (2.0.6)
|
135
|
+
bson (~> 3.0)
|
136
136
|
connection_pool (~> 2.0)
|
137
137
|
optionable (~> 0.2.0)
|
138
138
|
nested_form (0.3.2)
|
@@ -166,7 +166,7 @@ GEM
|
|
166
166
|
rails-deprecated_sanitizer (>= 1.0.1)
|
167
167
|
rails-html-sanitizer (1.0.2)
|
168
168
|
loofah (~> 2.0)
|
169
|
-
rails_admin (0.6.
|
169
|
+
rails_admin (0.6.8)
|
170
170
|
builder (~> 3.1)
|
171
171
|
coffee-rails (~> 4.0)
|
172
172
|
font-awesome-rails (>= 3.0, < 5)
|
@@ -246,3 +246,6 @@ DEPENDENCIES
|
|
246
246
|
ack_rocket_cms!
|
247
247
|
bundler
|
248
248
|
rake
|
249
|
+
|
250
|
+
BUNDLED WITH
|
251
|
+
1.10.2
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/ For third-generation iPad with high-resolution Retina display:
|
2
|
+
/ Size should be 228 x 228 pixels
|
3
|
+
= favicon_link_tag '/apple-touch-icon-228x228-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '228x228'
|
4
|
+
/ For iPhone with high-resolution Retina display:
|
5
|
+
/ Size should be 114 x 114 pixels
|
6
|
+
= favicon_link_tag '/apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114'
|
7
|
+
/ For first- and second-generation iPad:
|
8
|
+
/ Size should be 72 x 72 pixels
|
9
|
+
= favicon_link_tag '/apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72'
|
10
|
+
/ For non-Retina iPhone, iPod Touch, and Android 2.1+ devices:
|
11
|
+
/ Size should be 57 x 57 pixels
|
12
|
+
= favicon_link_tag '/apple-touch-icon-57x57-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '57x57'
|
13
|
+
/ For non-Retina iPhone, iPod Touch, and Android 2.1+ devices:
|
14
|
+
/ Size should be 57 x 57 pixels
|
15
|
+
= favicon_link_tag '/apple-touch-icon.png', :rel => 'apple-touch-icon', :type => 'image/png'
|
16
|
+
/ For all other devices
|
17
|
+
/ Size should be 32 x 32 pixels
|
18
|
+
= favicon_link_tag '/favicon.ico', :rel => 'shortcut icon', :type => 'image/vnd.microsoft.icon'
|
19
|
+
/ For all other devices
|
20
|
+
/ Size should be 32 x 32 pixels
|
21
|
+
= favicon_link_tag '/favicon.png', :rel => 'shortcut icon', :type => 'image/png'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
- if @seo_page
|
2
|
+
- content_for :meta do
|
3
|
+
= render 'shared/meta', obj: @seo_page, alt_obj: @seo_parent_page
|
4
|
+
|
5
|
+
- og_title = (@seo_page.get_og_title.blank? and @seo_parent_page ? @seo_parent_page.get_og_title : @seo_page.get_og_title)
|
6
|
+
- og_image = (@seo_page.og_image.blank? and @seo_parent_page ? @seo_parent_page.og_image : @seo_page.og_image)
|
7
|
+
= render 'shared/og', title: @seo_page.get_og_title, image: @seo_page.og_image
|
8
|
+
- elsif @seo_parent_page
|
9
|
+
- content_for :meta do
|
10
|
+
= render 'shared/meta', obj: @seo_parent_page
|
11
|
+
= render 'shared/og', title: @seo_parent_page.get_og_title, image: @seo_parent_page.og_image
|
12
|
+
|
13
|
+
- if @seo_page and @seo_page.title
|
14
|
+
- content_for :title do
|
15
|
+
title= @seo_page.title
|
16
|
+
- elsif @seo_parent_page and @seo_parent_page.title
|
17
|
+
- content_for :title do
|
18
|
+
title= @seo_parent_page.title
|
@@ -0,0 +1,27 @@
|
|
1
|
+
- obj ||= nil
|
2
|
+
- if obj
|
3
|
+
- content_for :meta do
|
4
|
+
- seo_page = @seo_page || @seo_parent_page
|
5
|
+
= render 'shared/meta', obj: obj
|
6
|
+
|
7
|
+
- og_title = (obj.get_og_title.blank? and seo_page ? seo_page.get_og_title : obj.get_og_title)
|
8
|
+
- og_image = (obj.og_image.blank? and seo_page ? seo_page.og_image : obj.og_image)
|
9
|
+
= render 'shared/og', title: obj.get_og_title, image: obj.og_image
|
10
|
+
- if obj.title
|
11
|
+
- content_for :title do
|
12
|
+
title= obj.title
|
13
|
+
|
14
|
+
- elsif @seo_page
|
15
|
+
- content_for :meta do
|
16
|
+
= render 'shared/meta', obj: @seo_page
|
17
|
+
= render 'shared/og', title: @seo_page.get_og_title, image: @seo_page.og_image
|
18
|
+
|
19
|
+
- if obj and obj.title
|
20
|
+
- content_for :title do
|
21
|
+
title= obj.title
|
22
|
+
- elsif @seo_page and @seo_page.title
|
23
|
+
- content_for :title do
|
24
|
+
title= @seo_page.title
|
25
|
+
- elsif @seo_parent_page and @seo_parent_page.title
|
26
|
+
- content_for :title do
|
27
|
+
title= @seo_parent_page.title
|
@@ -0,0 +1,23 @@
|
|
1
|
+
main
|
2
|
+
h2 Вход на сайт
|
3
|
+
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
4
|
+
.field
|
5
|
+
= f.label :email, "E-mail"
|
6
|
+
br
|
7
|
+
= f.email_field :email, autofocus: true, title: "E-mail"
|
8
|
+
br
|
9
|
+
.field
|
10
|
+
= f.label :password, "Пароль"
|
11
|
+
br
|
12
|
+
= f.password_field :password, autocomplete: "off", title: "Пароль"
|
13
|
+
br
|
14
|
+
- if devise_mapping.rememberable?
|
15
|
+
.field
|
16
|
+
= f.check_box :remember_me, title: "Запомнить меня"
|
17
|
+
= f.label :remember_me, "Запомнить меня"
|
18
|
+
|
19
|
+
.actions
|
20
|
+
= f.submit "Войти"
|
21
|
+
br
|
22
|
+
|
23
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
- if controller_name != 'sessions'
|
2
|
+
= link_to "Войти на сайт", new_session_path(resource_name)
|
3
|
+
br
|
4
|
+
|
5
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
6
|
+
= link_to "Зарегистрироваться", new_registration_path(resource_name)
|
7
|
+
br
|
8
|
+
|
9
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
10
|
+
= link_to "Забыли пароль?", new_password_path(resource_name)
|
11
|
+
br
|
12
|
+
|
13
|
+
|
14
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
15
|
+
= link_to "Не пришли инструкции по подтверждению аккаунта?", new_confirmation_path(resource_name)
|
16
|
+
br
|
17
|
+
|
18
|
+
/- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
19
|
+
/ = link_to "Не пришли инстуркции по разблокировке аккаунта?", new_unlock_path(resource_name)
|
20
|
+
/ br
|
21
|
+
|
22
|
+
- if devise_mapping.omniauthable?
|
23
|
+
- resource_class.omniauth_providers.each do |provider|
|
24
|
+
= link_to "Войти через #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
|
25
|
+
br
|
@@ -6,7 +6,7 @@ html lang="ru"
|
|
6
6
|
title= page_title
|
7
7
|
= yield :meta
|
8
8
|
= csrf_meta_tags
|
9
|
-
=
|
9
|
+
= render partial: "blocks/favicon"
|
10
10
|
= stylesheet_link_tag "application", media: "all"
|
11
11
|
= javascript_include_tag "application"
|
12
12
|
/[if lt IE 9]
|
@@ -20,5 +20,4 @@ html lang="ru"
|
|
20
20
|
= yield
|
21
21
|
#root_footer
|
22
22
|
#footer
|
23
|
-
= render 'blocks/footer'
|
24
|
-
|
23
|
+
= render 'blocks/footer'
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -221,11 +221,11 @@ inject_into_file 'app/models/user.rb', before: /^end/ do <<-TEXT
|
|
221
221
|
|
222
222
|
AVAILABLE_ROLES.each do |r|
|
223
223
|
class_eval <<-EVAL
|
224
|
-
def
|
225
|
-
self.roles and self.roles.include?("
|
224
|
+
def \#{r}?
|
225
|
+
self.roles and self.roles.include?("\#{r}")
|
226
226
|
end
|
227
227
|
|
228
|
-
scope
|
228
|
+
scope :\#{r.pluralize}, -> { any_in(roles: "\#{r}") }
|
229
229
|
EVAL
|
230
230
|
end
|
231
231
|
|
@@ -481,6 +481,8 @@ end
|
|
481
481
|
|
482
482
|
remove_file 'app/views/layouts/application.html.erb'
|
483
483
|
|
484
|
+
gsub_file 'app/views/layouts/application.html.slim', "= favicon_link_tag '/favicon.ico'", "= render partial: 'blocks/favicon' #= favicon_link_tag '/favicon.ico'"
|
485
|
+
|
484
486
|
|
485
487
|
remove_file 'config/application.rb'
|
486
488
|
create_file 'config/application.rb' do <<-TEXT
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ack_rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.7
|
4
|
+
version: 0.7.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kiseliev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -433,11 +433,16 @@ files:
|
|
433
433
|
- app/models/menu.rb
|
434
434
|
- app/models/news.rb
|
435
435
|
- app/models/page.rb
|
436
|
+
- app/views/blocks/_favicon.html.slim
|
436
437
|
- app/views/blocks/_footer.html.slim
|
438
|
+
- app/views/blocks/_seo_block.html.slim
|
439
|
+
- app/views/blocks/_seo_block_with_obj.html.slim
|
437
440
|
- app/views/contact_mailer/new_message_email.html.slim
|
438
441
|
- app/views/contacts/index.html.slim
|
439
442
|
- app/views/contacts/new.html.slim
|
440
443
|
- app/views/contacts/sent.html.slim
|
444
|
+
- app/views/devise/sessions/new.html.slim
|
445
|
+
- app/views/devise/shared/_links.html.slim
|
441
446
|
- app/views/errors/_base.html.slim
|
442
447
|
- app/views/errors/error_403.html.slim
|
443
448
|
- app/views/errors/error_404.html.slim
|
@@ -551,7 +556,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
551
556
|
version: '0'
|
552
557
|
requirements: []
|
553
558
|
rubyforge_project:
|
554
|
-
rubygems_version: 2.4.
|
559
|
+
rubygems_version: 2.4.7
|
555
560
|
signing_key:
|
556
561
|
specification_version: 4
|
557
562
|
summary: Please DO NOT use this gem directly, use ack_rocket_cms_mongoid or ack_rocket_cms_activerecord
|