activeadmin_custom_layout 0.1.0 → 0.1.1
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: 2b5c69be3757b040d143bc4a1ea9beb6c5a32f07
|
|
4
|
+
data.tar.gz: f055dabbb62d088afa9479bfe89c66b75202ec7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9930d44ff869fc97d693bd6b059447ad221fe63885f323479507760fe3362ba81bb2aabd344fff7c18da8bdc6245ae274a66351ea76ad96645e69615995eed8a
|
|
7
|
+
data.tar.gz: 8f3bf6078f16ba1492b306569f3e91af323c2f75aa507ee266933fd09b3c1c09993c2de2f5f10824e9a838176d0cc887c27263f75fb058ba3523b91f7342fa24
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# ActiveadminCustomLayout
|
|
2
|
-
|
|
2
|
+
[](https://badge.fury.io/rb/activeadmin_custom_layout)
|
|
3
|
+
|
|
4
|
+
This gem allows to change the default layout of ActiveAdmin without monkey patching its code. You can just use standard application layout templates to organize where ActiveAdmin layout sections should be rendered.
|
|
3
5
|
|
|
4
6
|
## Usage
|
|
5
7
|
|
|
6
8
|
### Available exports
|
|
7
9
|
|
|
10
|
+
The following layout template will render the default ActiveAdmin layout:
|
|
11
|
+
|
|
8
12
|
```HTML
|
|
9
13
|
<!DOCTYPE html>
|
|
10
14
|
<html>
|
|
@@ -1,14 +1,38 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<%= yield :title %>
|
|
5
|
+
<%= yield :stylesheets %>
|
|
6
|
+
<%= yield :javascripts %>
|
|
7
|
+
<%= yield :favicon %>
|
|
8
|
+
<%= yield :meta_tags %>
|
|
9
|
+
<%= yield :favicon %>
|
|
10
|
+
<%= csrf_meta_tag %>
|
|
11
|
+
</head>
|
|
12
|
+
<body class="<%= yield :body_classes %>" >
|
|
13
|
+
<div id="wrapper">
|
|
14
|
+
<%= yield :unsupported_browser %>
|
|
15
|
+
<div class="header" id="header"> <%#= yield :header %>
|
|
16
|
+
<%= yield :site_title %>
|
|
17
|
+
<%= yield :global_navigation %>
|
|
18
|
+
<%= yield :utility_navigation %>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="title_bar" id="title_bar"> <%#= yield :title_bar %>
|
|
21
|
+
<div id="titlebar_left">
|
|
22
|
+
<%= yield :breadcrumb %>
|
|
23
|
+
<%= yield :title_tag %>
|
|
24
|
+
</div>
|
|
25
|
+
<div id="titlebar_right">
|
|
26
|
+
<%= yield :action_items %>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<%#= yield :page_content %>
|
|
30
|
+
<%= yield :flash_messages %>
|
|
31
|
+
<div id="active_admin_content" class="<%= (content_for? :sidebar) ? "with_sidebar" : "without_sidebar" %>" >
|
|
32
|
+
<%= yield :main_content %>
|
|
33
|
+
<%= yield :sidebar %>
|
|
34
|
+
</div>
|
|
35
|
+
<%= yield :footer %>
|
|
36
|
+
</div>
|
|
37
|
+
</body>
|
|
14
38
|
</html>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_custom_layout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ByS Sistemas de Control
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeadmin
|