arctic_admin 1.3.3 → 1.4.0

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: 974ebc99d97dfa88384b56f58e0cd3dafdfd3517
4
- data.tar.gz: aaa6ca30c58b5b05a88f70af53a2403ade0e5a0a
3
+ metadata.gz: 24649ce7d552b3ddcf673c8e4c9031f7da52fad2
4
+ data.tar.gz: 6a8f81bbc35061ad3826c2ec42c127fa5d1e21fe
5
5
  SHA512:
6
- metadata.gz: 6f92e41845bef56c41af5bd02f89f8074876cbdff4323e477d632d99eff1bd7e8cf05da55f50d3833c3afee1c1d89d7b2af4d8576ad8de294c38954756d3d028
7
- data.tar.gz: eed3920e1daba93a43a0c4222546b6167a97ff12f0dd79338badc4cb611e961d578a63a55040edb3267151eab69d88385bc67d88387370abf4b749955d859217
6
+ metadata.gz: 9dd14542d333b55ebaadcd8b73e3daae4b49b4a1365f4821d79e632e2509dcad0724d93065d68296e1519064dd39981257843c012aae9ad3bf58e3b3743402f7
7
+ data.tar.gz: fa16e2cede3daf268e661d38632c5b2ed89d940ed0a553d8142037d13e9e0ccbf36888d90172e6ebecabff2644f5cb6b59294d37562b14c98de92d7dd7a17ac5
data/Readme.md CHANGED
@@ -13,13 +13,21 @@ admin user : admin@example.com / password
13
13
 
14
14
  ## Installation
15
15
 
16
- Add this to your Gemfile:
16
+ - Add this to your Gemfile:
17
17
 
18
18
  ```ruby
19
19
  gem 'arctic_admin'
20
20
  ```
21
21
 
22
- and run `bundle install`.
22
+ - Run `bundle install`.
23
+
24
+ - Add this line to the file `config/application.rb`
25
+
26
+ ```ruby
27
+ meta_tags_options = { viewport: 'width=device-width, initial-scale=1' }
28
+ ActiveAdmin.application.meta_tags = meta_tags_options
29
+ ActiveAdmin.application.meta_tags_for_logged_out_pages = meta_tags_options
30
+ ```
23
31
 
24
32
  if you use ActiveAdmin from Github, use the branch `2-0-alpha` like this :
25
33
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
6
 
7
- <title><%= [@page_title, render_or_call_method_or_proc_on(self, ActiveAdmin.application.site_title)].compact.join(" | ") %></title>
7
+ <title><%= [@page_title, ActiveAdmin.application.site_title(self)].compact.join(" | ") %></title>
8
8
 
9
9
  <% ActiveAdmin.application.stylesheets.each do |style, options| %>
10
10
  <%= stylesheet_link_tag style, options %>
@@ -20,7 +20,6 @@
20
20
  <% end %>
21
21
 
22
22
  <%= csrf_meta_tag %>
23
-
24
23
  <meta name='viewport' content='width=device-width, initial-scale=1'>
25
24
  </head>
26
25
  <body class="active_admin logged_out <%= controller.action_name %>">
@@ -1,6 +1,5 @@
1
1
  require "arctic_admin/version"
2
2
  require 'font-awesome-rails'
3
- require 'arctic_admin/active_admin/views/pages/bases'
4
3
 
5
4
  module ArcticAdmin
6
5
  module Rails
@@ -1,3 +1,3 @@
1
1
  module ArcticAdmin
2
- VERSION = "1.3.3"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arctic_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clément Prod'homme
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.0
47
+ version: 2.0.0.alpha
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.1.0
54
+ version: 2.0.0.alpha
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jquery-rails
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +141,6 @@ files:
141
141
  - app/assets/stylesheets/arctic_admin/variables/_variables.scss
142
142
  - app/views/layouts/active_admin_logged_out.html.erb
143
143
  - lib/arctic_admin.rb
144
- - lib/arctic_admin/active_admin/views/pages/bases.rb
145
144
  - lib/arctic_admin/version.rb
146
145
  homepage: https://github.com/cle61/arctic_admin
147
146
  licenses:
@@ -1,29 +0,0 @@
1
- module ActiveAdmin
2
- module Views
3
- module Pages
4
- class Base < Arbre::HTML::Document
5
- alias_method :_build_active_admin_head, :build_active_admin_head
6
- def build_active_admin_head
7
- _build_active_admin_head
8
-
9
- within @head do
10
- meta name: 'viewport', content: 'width=device-width, initial-scale=1'
11
- end
12
- end
13
-
14
- def build_page_content
15
- # build_flash_messages - move this call in the method 'build_title_bar'
16
- div id: "active_admin_content", class: (skip_sidebar? ? "without_sidebar" : "with_sidebar") do
17
- build_main_content_wrapper
18
- build_sidebar unless skip_sidebar?
19
- end
20
- end
21
-
22
- def build_title_bar
23
- build_flash_messages
24
- insert_tag view_factory.title_bar, title, action_items_for_action
25
- end
26
- end
27
- end
28
- end
29
- end