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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24649ce7d552b3ddcf673c8e4c9031f7da52fad2
|
4
|
+
data.tar.gz: 6a8f81bbc35061ad3826c2ec42c127fa5d1e21fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
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 %>">
|
data/lib/arctic_admin.rb
CHANGED
data/lib/arctic_admin/version.rb
CHANGED
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.
|
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:
|
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:
|
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
|