activeadmin_custom_layout 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c3c9488958c42ab32bedf6c2a1e96c95bc76841
4
- data.tar.gz: 0450fc5812eb54c574b39ce62a69888a76eb3dc5
3
+ metadata.gz: 2b5c69be3757b040d143bc4a1ea9beb6c5a32f07
4
+ data.tar.gz: f055dabbb62d088afa9479bfe89c66b75202ec7b
5
5
  SHA512:
6
- metadata.gz: 3234cb5b5d831aabd749ec19e48002075cd3f65184171648c9a4a4af8170450023cf17023ce1b2bd5e6836ddf07535882e74f8a43473267f81806a955f97fd9c
7
- data.tar.gz: 17db877b19e4bd54504a44976e897ba0ad7c1ed47ce8cc43659af79a2d9a7af7e210d10d78d9b539b4ea09d8662a6b471f2487e00ee6ff1e9b298c94b3062c31
6
+ metadata.gz: 9930d44ff869fc97d693bd6b059447ad221fe63885f323479507760fe3362ba81bb2aabd344fff7c18da8bdc6245ae274a66351ea76ad96645e69615995eed8a
7
+ data.tar.gz: 8f3bf6078f16ba1492b306569f3e91af323c2f75aa507ee266933fd09b3c1c09993c2de2f5f10824e9a838176d0cc887c27263f75fb058ba3523b91f7342fa24
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ test/dummy/db/*.sqlite3
5
5
  test/dummy/db/*.sqlite3-journal
6
6
  test/dummy/log/*.log
7
7
  test/dummy/tmp/
8
+ *.gem
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # ActiveadminCustomLayout
2
- Short description and motivation.
2
+ [![Gem Version](https://badge.fury.io/rb/activeadmin_custom_layout.svg)](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
- <title>Activeadmin custom layout</title>
5
- <%= stylesheet_link_tag "activeadmin_custom_layout/application", media: "all" %>
6
- <%= javascript_include_tag "activeadmin_custom_layout/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
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>
@@ -1,3 +1,3 @@
1
1
  module ActiveadminCustomLayout
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -1,6 +1,10 @@
1
1
  ActiveAdmin.register AdminUser do
2
2
  permit_params :email, :password, :password_confirmation
3
3
 
4
+ controller do
5
+ layout 'application'
6
+ end
7
+
4
8
  index do
5
9
  selectable_column
6
10
  id_column
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin