rails_admin_ui_layout_taris 1.2.14 → 1.2.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0c5f39eb066de2cd7e221413c6a87a6c20fe178
4
- data.tar.gz: e3c290d5c7b7e410b81e724cd176663cc6467a1f
3
+ metadata.gz: c2bbb7167063f636bd43e40684198b3e7cc7e697
4
+ data.tar.gz: ab8ff19194c7d3bb49b6a78adaaaf87ff1d75297
5
5
  SHA512:
6
- metadata.gz: 2d194800d241f6688c4ca56111bcc20b9cfcbbc513716657224395160a1394aa21c0e592d4534e4bf292ab02d24e88c28f7a2ce475ae4fe2cd85c40f1e8f563c
7
- data.tar.gz: 346f37046dbbc83afaf8a201205db83e58b2abe7f988950536e0169bd5f1b4a62a7af1d50bb115226b6d5939d316fea43e40e9d1c27dea1b6671c3d92725a92a
6
+ metadata.gz: 22ff474654c58ad89bbcfba7316d01b3f1effee55afc10163b867d1ccd393d9685b29cbeadf7e348a4021e69318b5e3bf2da03035e1811ccb884fba14fda5845
7
+ data.tar.gz: 5cd442d0ca309dc082a01f80f13af47939f8ca5ef31487311022b8042c1ff840c4ab98a40839583ba6a413edbdce2cee6943954dd508899736016ab895298ded
@@ -1,9 +1,14 @@
1
- <%
1
+ <%-
2
2
  base_path = ''
3
- base_path << Rails.application.config.action_controller.asset_host
3
+ base_path << if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?
4
+ "http://localhost:3000"
5
+ else
6
+ "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
7
+ end
4
8
  base_path << Rails.application.config.assets.prefix
5
9
  base_path << '/ckeditor/'
6
10
  %>
7
11
  <script>
8
12
  var CKEDITOR_BASEPATH = '<%= base_path %>';
13
+ console.log(CKEDITOR_BASEPATH)
9
14
  </script>
@@ -19,7 +19,6 @@
19
19
  = favicon_link_tag 'favicon-16x16.png', rel: 'icon', sizes: "16x16"
20
20
  = favicon_link_tag 'safari-pinned-tab.svg', rel: 'mask-icon', color: "#5bbad5"
21
21
  %body.rails_admin
22
- -# = render "layouts/rails_admin/ckeditor_base_path"
23
22
  #admin-js{:'data-i18n-options' => I18n.t("admin.js").to_json}
24
23
  -# Initialize JS simple i18n
25
24
  :javascript
@@ -45,6 +44,7 @@
45
44
  .content{:'data-pjax-container' => true}
46
45
  = render template: 'layouts/rails_admin/pjax'
47
46
  = render "rails_admin/main/modal_interaction"
47
+ = render "layouts/rails_admin/ckeditor_base_path"
48
48
  -# -# Initialize JS simple i18n
49
49
  -# :javascript
50
50
  -# RailsAdmin.I18n.init('#{I18n.locale}', JSON.parse("#{j I18n.t("admin.js").to_json}"))
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiLayoutTaris
2
- VERSION = '1.2.14'.freeze
2
+ VERSION = '1.2.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_ui_layout_taris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore