admin_layout 0.0.3

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c609a489da76ca5e1506ad259e61caa620d0522c
4
+ data.tar.gz: 731ecfd88304d96ca157d3715a138903760184c2
5
+ SHA512:
6
+ metadata.gz: afc402adf82825b6e9f1770ab1eb7ec7208a9ffa9d00fff7df833e9fdd264b22de4c602f9f7050f1c8e3f341b66cfe88c32f4db218c8c5119ffd0caa682ac9c2
7
+ data.tar.gz: 147305854072c74f992b25ea8d5672b6278471ebb3d18427d90adf92b51261e9785cbbab86b43ffeeeee5fe81fe3e0ea0aab202e1562453f2415ed6b3b8b9937
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate admin_layout Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,16 @@
1
+ class AdminLayoutGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+ argument :layout_name, :type => :string, :default => "application"
4
+ class_option :stylesheet, :type => :boolean, :default => true, :desc => "Include stylesheet file."
5
+ def generate_layout
6
+ copy_file "stylesheet.css", "public/stylesheet/#{file_name}.css"
7
+ template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb"
8
+ end
9
+
10
+
11
+ private
12
+
13
+ def file_name
14
+ layout_name.underscore
15
+ end
16
+ end
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>BelligerentEyesWebsite</title>
5
+ <link href='https://fonts.googleapis.com/css?family=Roboto+Mono:400,100,100italic,300,300italic,500,400italic,700,500italic,700italic' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Cousine:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
6
+ <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
7
+ <%%= stylesheet_link_tag '<%= file_name %>', media: 'all', 'data-turbolinks-track' => true %>
8
+ <%%= csrf_meta_tags %>
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
10
+ </head>
11
+
12
+ <body>
13
+
14
+ <nav>
15
+ <div class="container">
16
+ <ul id="slide-out" class="side-nav">
17
+ <% Dir[Rails.root.join('app/controllers/admin/*_controller.rb')].map { |path| (path.match(/(\w+)_controller.rb/); $1) }.each do |a|%>
18
+ <li><a href="/admin/<%= a %>"><%= a.gsub("_"," ") %></a></li>
19
+ <% end %>
20
+ </ul>
21
+ <a href="#" data-activates="slide-out" class="button-collapse show-on-large"><i class="mdi-navigation-menu"></i></a>
22
+ </div>
23
+
24
+ </nav>
25
+
26
+ <main>
27
+ <div id="admin_content" class="container">
28
+
29
+ <%= yield %>
30
+ </div>
31
+ </main>
32
+ <footer class="page-footer">
33
+ <div class="container">
34
+ <div class="row">
35
+ <div class="col l6 s12">
36
+ <h5 class="white-text">Belligerent Eyes Admin</h5>
37
+ <p class="grey-text text-lighten-4">Hail to the censor!</p>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div class="footer-copyright">
42
+ <div class="container">
43
+ © 2016 Crafted by display.xxx
44
+ <a class="grey-text text-lighten-4 right" href="#!">FYA</a>
45
+ </div>
46
+ </div>
47
+ </footer>
48
+
49
+ </body>
50
+ <%= javascript_include_tag 'admin' %>
51
+ </html>
@@ -0,0 +1,3 @@
1
+ .body{
2
+ background-color: black;
3
+ }
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: admin_layout
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Bobbino
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: test
14
+ email: roberto.boldi@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/generators/admin_layout/USAGE
20
+ - lib/generators/admin_layout/admin_layout_generator.rb
21
+ - lib/generators/admin_layout/templates/layout.html.erb
22
+ - lib/generators/admin_layout/templates/stylesheet.css
23
+ homepage: http://rubygems.org/gems/admin_layout
24
+ licenses:
25
+ - Display.xxx
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.4.5.1
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: test
47
+ test_files: []