humdrum-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/humdrum-rails.gemspec +3 -0
- data/lib/humdrum/version.rb +1 -1
- data/lib/rails/generators/humdrum/layout/layout_generator.rb +53 -39
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/application.css +25 -0
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/gumby.css +1845 -0
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/overrides-bootstrap.css +4 -0
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/overrides-gumby.css +11 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/admin/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/admin/_header.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/admin/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/admin.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/common/_flash_message.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/common/_meta_tags.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/common/_overlays.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/public/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/public/_header.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/public/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/public.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/user/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/user/_header.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/user/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/user.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap/welcome/index.html.erb +5 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_header.html.erb +43 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin.html.erb +65 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_flash_message.html.erb +24 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_meta_tags.html.erb +42 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_overlays.html.erb +9 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_header.html.erb +43 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public.html.erb +63 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_footer.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_header.html.erb +43 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_navbar.html.erb +0 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user.html.erb +65 -0
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/welcome/index.html.erb +5 -0
- metadata +69 -28
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/bootstrap-responsive.css +0 -1109
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/boilerplate.css.scss +0 -299
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/box.css.scss +0 -57
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/caligraphy.css.scss +0 -30
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/dividers.css.scss +0 -18
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/form.css.scss +0 -80
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/misc.css.scss +0 -9
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/normalize.css.scss +0 -533
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/palettes.css.scss +0 -66
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/positioning.css.scss +0 -702
- data/lib/rails/generators/humdrum/layout/templates/views/welcome/index.html.erb +0 -5
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
Ensure that you load this file in application.css after gumby (backword slash to escape)
|
3
|
+
*/
|
4
|
+
|
5
|
+
body {font-size:12px;}
|
6
|
+
|
7
|
+
/* handy CSS will insist a margin and padding for all ul and li. Overriding handy css behaviour for ul and li in .navbar class*/
|
8
|
+
.navbar ul, .navbar ul > li, .navbar ul > li > div.dropdown > ul {margin:0px !important; padding:0px !important;}
|
9
|
+
|
10
|
+
/* logo left padding is not required */
|
11
|
+
.navbar .logo a {padding:0px; color:#fff;}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/rails/generators/humdrum/layout/templates/views/{layouts → bootstrap/layouts}/user.html.erb
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="navbar" id="nav1">
|
2
|
+
<div class="row">
|
3
|
+
<a class="toggle" gumby-trigger="#nav1 > .row > ul" href="#"><i class="icon-menu"></i></a>
|
4
|
+
<h1 class="four columns logo">
|
5
|
+
<a href="#">
|
6
|
+
<!-- <img src="img/gumby_mainlogo.png" gumby-retina=""> -->
|
7
|
+
<%= application_name -%>
|
8
|
+
</a>
|
9
|
+
</h1><!-- /.four columns logo -->
|
10
|
+
<ul class="eight columns">
|
11
|
+
<li><a href="#">Home</a></li>
|
12
|
+
<li><a href="#">Menu 1</a></li>
|
13
|
+
<li><a href="#">Menu 2</a></li>
|
14
|
+
<li>
|
15
|
+
<a href="#">Dropdown</a>
|
16
|
+
<div class="dropdown">
|
17
|
+
<ul>
|
18
|
+
<li><a href="#">Item 1</a></li>
|
19
|
+
<li><a href="#">Item 2</a></li>
|
20
|
+
<li><a href="#">Item 3</a></li>
|
21
|
+
<li><a href="#">Item 4</a></li>
|
22
|
+
<li><a href="#">Item 5</a></li>
|
23
|
+
<li>
|
24
|
+
<a href="#">Item 6 - (Nested)</a>
|
25
|
+
<div class="dropdown">
|
26
|
+
<ul>
|
27
|
+
<li><a href="">Nested Item 1</a></li>
|
28
|
+
<li><a href="">Nested Item 2</a></li>
|
29
|
+
<li><a href="">Nested Item 3</a></li>
|
30
|
+
<li><a href="">Nested Item 4</a></li>
|
31
|
+
<li><a href="">Nested Item 5</a></li>
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
</li>
|
35
|
+
|
36
|
+
</ul>
|
37
|
+
</div>
|
38
|
+
</li>
|
39
|
+
<li class="field"><input class="search input" type="search" placeholder="Search"></li>
|
40
|
+
</ul><!-- /.eight columns -->
|
41
|
+
</div><!-- /.row -->
|
42
|
+
</div><!-- /.navbar -->
|
43
|
+
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
|
8
|
+
<title><%%= title -%></title>
|
9
|
+
|
10
|
+
<%%= render :partial=>"/layouts/common/meta_tags" -%>
|
11
|
+
|
12
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
13
|
+
<link rel="icon" href="/assets/favicon.ico" type="image/png">
|
14
|
+
|
15
|
+
<%%= stylesheet_link_tag "application", :media => "all" -%>
|
16
|
+
|
17
|
+
<%%= csrf_meta_tags -%>
|
18
|
+
|
19
|
+
<%%# Modernizr should be loaded first -%>
|
20
|
+
<script src="/assets/humdrum/modernizr.2.6.2.js"></script>
|
21
|
+
|
22
|
+
</head>
|
23
|
+
|
24
|
+
<body>
|
25
|
+
|
26
|
+
<!--[if lt IE 7]>
|
27
|
+
<p class="chromeframe">You are using an <strong>outdated</strong> browser.
|
28
|
+
Please <a href="http://browsehappy.com/">upgrade your browser</a> or
|
29
|
+
<a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a>
|
30
|
+
to improve your experience.</p>
|
31
|
+
<![endif]-->
|
32
|
+
|
33
|
+
<div class="header-block clearfix">
|
34
|
+
<div id="div_page_header">
|
35
|
+
<%%= render :partial=>"/layouts/admin/header" -%>
|
36
|
+
</div>
|
37
|
+
<div id="div_page_navbar">
|
38
|
+
<%%= render :partial=>"/layouts/admin/navbar" -%>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<%%#* Show flash messages if controller has set any. -%>
|
43
|
+
<div id="div_flash_message">
|
44
|
+
<%%= render :partial=>"/layouts/common/flash_message" -%>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="<%= container_class %> padding-top-10" style="min-height:400px;">
|
48
|
+
<%%= yield %>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<%%#* Display Footer -%>
|
52
|
+
<%%= render :partial=>"/layouts/admin/footer" -%>
|
53
|
+
|
54
|
+
<%%#* Display Hidden Overlays -%>
|
55
|
+
<%%= render :partial=>"/layouts/common/overlays" -%>
|
56
|
+
|
57
|
+
<%%#* Loading Javascripts -%>
|
58
|
+
<%%= javascript_include_tag "application" -%>
|
59
|
+
|
60
|
+
<script type='text/javascript'>
|
61
|
+
<%%= yield :javascript -%>
|
62
|
+
</script>
|
63
|
+
|
64
|
+
</body>
|
65
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
<%# Used to render a unique flash message styling %>
|
3
|
+
<%%
|
4
|
+
if request.xhr?
|
5
|
+
flash_message = flash.now[:success] || flash.now[:notice] || flash.now[:alert]
|
6
|
+
style_classes = ""
|
7
|
+
else
|
8
|
+
style_classes = "margin-top-10 margin-bottom-5 margin-left-40 margin-right-40"
|
9
|
+
flash_message = flash[:success] || flash[:notice] || flash[:alert]
|
10
|
+
end
|
11
|
+
cls_name = "alert"
|
12
|
+
cls_name = 'alert-success' if flash.now[:success] || flash[:success]
|
13
|
+
cls_name = 'alert-notice' if flash.now[:notice] || flash[:notice]
|
14
|
+
cls_name = 'alert-error' if flash.now[:alert] || flash[:alert]
|
15
|
+
|
16
|
+
flash_message = flash_message.strip if flash_message
|
17
|
+
|
18
|
+
%>
|
19
|
+
<%% unless flash_message.blank? %>
|
20
|
+
<div class="<%%= style_classes %> alert <%%= cls_name %> fade in" data-alert="alert" style="margin-bottom:5px;">
|
21
|
+
<a class="close" data-dismiss='alert' href="#">×</a>
|
22
|
+
<p><%%= flash_message %></p>
|
23
|
+
</div>
|
24
|
+
<%% end %>
|
data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_meta_tags.html.erb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
<%%# meta tags%>
|
3
|
+
<%% if @meta_tags %>
|
4
|
+
<%% if @meta_tags[:rel_prev] %>
|
5
|
+
<link rel="prev" href="<%%%= @meta_tags[:rel_prev] %>" />
|
6
|
+
<%% end %>
|
7
|
+
<%% if @meta_tags[:rel_next] %>
|
8
|
+
<link rel="next" href="<%%%= @meta_tags[:rel_next] %>" />
|
9
|
+
<%% end %>
|
10
|
+
<%% if @meta_tags[:canonical] %>
|
11
|
+
<link rel="canonical" href="<%%%= @meta_tags[:canonical] %>" />
|
12
|
+
<%% end %>
|
13
|
+
<%% if @meta_tags[:meta_description] %>
|
14
|
+
<meta name="description" content="<%%%= @meta_tags[:meta_description] %>"></meta>
|
15
|
+
<%% else %>
|
16
|
+
<meta name="description" content="Twitter Like App = A learning app."></meta>
|
17
|
+
<%% end %>
|
18
|
+
<%% if @meta_tags[:meta_keywords] %>
|
19
|
+
<meta name="keywords" content="<%%%= @meta_tags[:meta_keywords] %>"></meta>
|
20
|
+
<%% else %>
|
21
|
+
<%% meta_keywords = "Twitter Like App = A learning app." %>
|
22
|
+
<meta name="keywords" content="<%%%= meta_keywords %>"></meta>
|
23
|
+
<%% end %>
|
24
|
+
<%% if @meta_tags[:robots] %>
|
25
|
+
<meta name="robots" content="<%%%= @meta_tags[:robots] %>" />
|
26
|
+
<%% else %>
|
27
|
+
<meta name="robots" content="all" />
|
28
|
+
<%% end %>
|
29
|
+
<%% end %>
|
30
|
+
|
31
|
+
<meta charset="utf-8">
|
32
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
33
|
+
<meta name="copyright" content="2012 kpvarma" />
|
34
|
+
<meta name="content-language" content="en" />
|
35
|
+
<meta name="author" content="K.P. Varma" />
|
36
|
+
<meta name="resource-type" content="document" />
|
37
|
+
<meta name="distribution" content="global" />
|
38
|
+
<meta name="rating" content="general" />
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_overlays.html.erb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<%%#* Modal for showing popups (in general) -%>
|
2
|
+
<div id="div_modal_popup" class="modal wider-modals hide fade" tabindex="-3" role="dialog" aria-labelledby="Show Message" aria-hidden="true"></div>
|
3
|
+
|
4
|
+
<%%#* Modal for showing popup messages -%>
|
5
|
+
<div id="div_modal_popup_message" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="Show Message" aria-hidden="true">
|
6
|
+
<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h3 id="h3_modal_popup_message_header">Modal header</h3></div>
|
7
|
+
<div class="modal-body"><p>One fine body…</p></div>
|
8
|
+
<div class="modal-footer"><button class="btn" data-dismiss="modal" aria-hidden="true">Close</button></div>
|
9
|
+
</div>
|
data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_footer.html.erb
ADDED
File without changes
|
data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_header.html.erb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="navbar" id="nav1">
|
2
|
+
<div class="row">
|
3
|
+
<a class="toggle" gumby-trigger="#nav1 > .row > ul" href="#"><i class="icon-menu"></i></a>
|
4
|
+
<h1 class="four columns logo">
|
5
|
+
<a href="#">
|
6
|
+
<!-- <img src="img/gumby_mainlogo.png" gumby-retina=""> -->
|
7
|
+
<%= application_name -%>
|
8
|
+
</a>
|
9
|
+
</h1><!-- /.four columns logo -->
|
10
|
+
<ul class="eight columns">
|
11
|
+
<li><a href="#">Home</a></li>
|
12
|
+
<li><a href="#">Menu 1</a></li>
|
13
|
+
<li><a href="#">Menu 2</a></li>
|
14
|
+
<li>
|
15
|
+
<a href="#">Dropdown</a>
|
16
|
+
<div class="dropdown">
|
17
|
+
<ul>
|
18
|
+
<li><a href="#">Item 1</a></li>
|
19
|
+
<li><a href="#">Item 2</a></li>
|
20
|
+
<li><a href="#">Item 3</a></li>
|
21
|
+
<li><a href="#">Item 4</a></li>
|
22
|
+
<li><a href="#">Item 5</a></li>
|
23
|
+
<li>
|
24
|
+
<a href="#">Item 6 - (Nested)</a>
|
25
|
+
<div class="dropdown">
|
26
|
+
<ul>
|
27
|
+
<li><a href="">Nested Item 1</a></li>
|
28
|
+
<li><a href="">Nested Item 2</a></li>
|
29
|
+
<li><a href="">Nested Item 3</a></li>
|
30
|
+
<li><a href="">Nested Item 4</a></li>
|
31
|
+
<li><a href="">Nested Item 5</a></li>
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
</li>
|
35
|
+
|
36
|
+
</ul>
|
37
|
+
</div>
|
38
|
+
</li>
|
39
|
+
<li class="field"><input class="search input" type="search" placeholder="Search"></li>
|
40
|
+
</ul><!-- /.eight columns -->
|
41
|
+
</div><!-- /.row -->
|
42
|
+
</div><!-- /.navbar -->
|
43
|
+
|
data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_navbar.html.erb
ADDED
File without changes
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
|
8
|
+
<title><%%= title -%></title>
|
9
|
+
|
10
|
+
<%%= render :partial=>"/layouts/common/meta_tags" -%>
|
11
|
+
|
12
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
13
|
+
<link rel="icon" href="/assets/favicon.ico" type="image/png">
|
14
|
+
|
15
|
+
<%%= stylesheet_link_tag "application", :media => "all" -%>
|
16
|
+
|
17
|
+
<%%= csrf_meta_tags -%>
|
18
|
+
|
19
|
+
<%# Modernizr should be loaded first -%>
|
20
|
+
<script src="/assets/humdrum/modernizr.2.6.2.js"></script>
|
21
|
+
|
22
|
+
</head>
|
23
|
+
|
24
|
+
<body>
|
25
|
+
|
26
|
+
<!--[if lt IE 7]>
|
27
|
+
<p class="chromeframe">You are using an <strong>outdated</strong> browser.
|
28
|
+
Please <a href="http://browsehappy.com/">upgrade your browser</a> or
|
29
|
+
<a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a>
|
30
|
+
to improve your experience.</p>
|
31
|
+
<![endif]-->
|
32
|
+
|
33
|
+
<div id="div_page_header" class="header-block">
|
34
|
+
<%%= render :partial=>"/layouts/public/header" -%>
|
35
|
+
</div>
|
36
|
+
<div id="div_page_navbar" class="header-block">
|
37
|
+
<%%= render :partial=>"/layouts/public/navbar" -%>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<%%#* Show flash messages if controller has set any. %>
|
41
|
+
<div id="div_flash_message">
|
42
|
+
<%%= render :partial=>"/layouts/common/flash_message" -%>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class="<%= container_class %> padding-top-10" style="min-height:400px;">
|
46
|
+
<%%= yield %>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<%%#* Display Footer -%>
|
50
|
+
<%%= render :partial=>"/layouts/public/footer" -%>
|
51
|
+
|
52
|
+
<%%#* Display Hidden Overlays -%>
|
53
|
+
<%%= render :partial=>"/layouts/common/overlays" -%>
|
54
|
+
|
55
|
+
<%%#* Loading Javascripts -%>
|
56
|
+
<%%= javascript_include_tag "application" -%>
|
57
|
+
|
58
|
+
<script type='text/javascript'>
|
59
|
+
<%%= yield :javascript -%>
|
60
|
+
</script>
|
61
|
+
|
62
|
+
</body>
|
63
|
+
</html>
|
File without changes
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="navbar" id="nav1">
|
2
|
+
<div class="row">
|
3
|
+
<a class="toggle" gumby-trigger="#nav1 > .row > ul" href="#"><i class="icon-menu"></i></a>
|
4
|
+
<h1 class="four columns logo">
|
5
|
+
<a href="#">
|
6
|
+
<!-- <img src="img/gumby_mainlogo.png" gumby-retina=""> -->
|
7
|
+
<%= application_name -%>
|
8
|
+
</a>
|
9
|
+
</h1><!-- /.four columns logo -->
|
10
|
+
<ul class="eight columns">
|
11
|
+
<li><a href="#">Home</a></li>
|
12
|
+
<li><a href="#">Menu 1</a></li>
|
13
|
+
<li><a href="#">Menu 2</a></li>
|
14
|
+
<li>
|
15
|
+
<a href="#">Dropdown</a>
|
16
|
+
<div class="dropdown">
|
17
|
+
<ul>
|
18
|
+
<li><a href="#">Item 1</a></li>
|
19
|
+
<li><a href="#">Item 2</a></li>
|
20
|
+
<li><a href="#">Item 3</a></li>
|
21
|
+
<li><a href="#">Item 4</a></li>
|
22
|
+
<li><a href="#">Item 5</a></li>
|
23
|
+
<li>
|
24
|
+
<a href="#">Item 6 - (Nested)</a>
|
25
|
+
<div class="dropdown">
|
26
|
+
<ul>
|
27
|
+
<li><a href="">Nested Item 1</a></li>
|
28
|
+
<li><a href="">Nested Item 2</a></li>
|
29
|
+
<li><a href="">Nested Item 3</a></li>
|
30
|
+
<li><a href="">Nested Item 4</a></li>
|
31
|
+
<li><a href="">Nested Item 5</a></li>
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
</li>
|
35
|
+
|
36
|
+
</ul>
|
37
|
+
</div>
|
38
|
+
</li>
|
39
|
+
<li class="field"><input class="search input" type="search" placeholder="Search"></li>
|
40
|
+
</ul><!-- /.eight columns -->
|
41
|
+
</div><!-- /.row -->
|
42
|
+
</div><!-- /.navbar -->
|
43
|
+
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
|
8
|
+
<title><%%= title -%></title>
|
9
|
+
|
10
|
+
<%%= render :partial=>"/layouts/common/meta_tags" -%>
|
11
|
+
|
12
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
13
|
+
<link rel="icon" href="/assets/favicon.ico" type="image/png">
|
14
|
+
|
15
|
+
<%%= stylesheet_link_tag "application", :media => "all" -%>
|
16
|
+
|
17
|
+
<%%= csrf_meta_tags -%>
|
18
|
+
|
19
|
+
<%# Modernizr should be loaded first -%>
|
20
|
+
<script src="/assets/humdrum/modernizr.2.6.2.js"></script>
|
21
|
+
|
22
|
+
</head>
|
23
|
+
|
24
|
+
<body>
|
25
|
+
|
26
|
+
<!--[if lt IE 7]>
|
27
|
+
<p class="chromeframe">You are using an <strong>outdated</strong> browser.
|
28
|
+
Please <a href="http://browsehappy.com/">upgrade your browser</a> or
|
29
|
+
<a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a>
|
30
|
+
to improve your experience.</p>
|
31
|
+
<![endif]-->
|
32
|
+
|
33
|
+
<div class="header-block clearfix">
|
34
|
+
<div id="div_page_header">
|
35
|
+
<%%= render :partial=>"/layouts/user/header" -%>
|
36
|
+
</div>
|
37
|
+
<div id="div_page_navbar">
|
38
|
+
<%%= render :partial=>"/layouts/user/navbar" -%>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<%%#* Show flash messages if controller has set any. %>
|
43
|
+
<div id="div_flash_message">
|
44
|
+
<%%= render :partial=>"/layouts/common/flash_message" -%>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="<%= container_class %> padding-top-10" style="min-height:400px;">
|
48
|
+
<%%= yield %>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<%%#* Display Footer -%>
|
52
|
+
<%%= render :partial=>"/layouts/user/footer" -%>
|
53
|
+
|
54
|
+
<%%#* Display Hidden Overlays -%>
|
55
|
+
<%%= render :partial=>"/layouts/common/overlays" -%>
|
56
|
+
|
57
|
+
<%%#* Loading Javascripts -%>
|
58
|
+
<%%= javascript_include_tag "application" -%>
|
59
|
+
|
60
|
+
<script type='text/javascript'>
|
61
|
+
<%%= yield :javascript -%>
|
62
|
+
</script>
|
63
|
+
|
64
|
+
</body>
|
65
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humdrum-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
@@ -59,6 +59,38 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rainbow
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: handy-css-rails
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - '='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.0.3
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - '='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.0.3
|
62
94
|
description: humdrum-rails is a collection of useful generators which are quite handy
|
63
95
|
for starting up a project in ruby on railgem.
|
64
96
|
email: krishnaprasadvarma@gmail.com
|
@@ -90,34 +122,43 @@ files:
|
|
90
122
|
- lib/rails/generators/humdrum/layout/templates/images/glyphicons-halflings.png
|
91
123
|
- lib/rails/generators/humdrum/layout/templates/javascripts/bootstrap.js
|
92
124
|
- lib/rails/generators/humdrum/layout/templates/javascripts/modernizr.2.6.2.js
|
93
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/
|
125
|
+
- lib/rails/generators/humdrum/layout/templates/stylesheets/application.css
|
94
126
|
- lib/rails/generators/humdrum/layout/templates/stylesheets/bootstrap.css
|
95
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/
|
96
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/box.css.scss
|
97
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/caligraphy.css.scss
|
98
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/dividers.css.scss
|
99
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/form.css.scss
|
100
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/misc.css.scss
|
101
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/normalize.css.scss
|
102
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/palettes.css.scss
|
103
|
-
- lib/rails/generators/humdrum/layout/templates/stylesheets/humdrum/positioning.css.scss
|
127
|
+
- lib/rails/generators/humdrum/layout/templates/stylesheets/gumby.css
|
104
128
|
- lib/rails/generators/humdrum/layout/templates/stylesheets/overrides-bootstrap.css
|
105
|
-
- lib/rails/generators/humdrum/layout/templates/
|
106
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/admin
|
107
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/admin/
|
108
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/admin/
|
109
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/
|
110
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/common/
|
111
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/common/
|
112
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/
|
113
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/public
|
114
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/public/
|
115
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/public/
|
116
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/
|
117
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/user
|
118
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/user/
|
119
|
-
- lib/rails/generators/humdrum/layout/templates/views/layouts/user/
|
120
|
-
- lib/rails/generators/humdrum/layout/templates/views/
|
129
|
+
- lib/rails/generators/humdrum/layout/templates/stylesheets/overrides-gumby.css
|
130
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/admin.html.erb
|
131
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/admin/_footer.html.erb
|
132
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/admin/_header.html.erb
|
133
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/admin/_navbar.html.erb
|
134
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/common/_flash_message.html.erb
|
135
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/common/_meta_tags.html.erb
|
136
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/common/_overlays.html.erb
|
137
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/public.html.erb
|
138
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/public/_footer.html.erb
|
139
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/public/_header.html.erb
|
140
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/public/_navbar.html.erb
|
141
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/user.html.erb
|
142
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/user/_footer.html.erb
|
143
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/user/_header.html.erb
|
144
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/layouts/user/_navbar.html.erb
|
145
|
+
- lib/rails/generators/humdrum/layout/templates/views/bootstrap/welcome/index.html.erb
|
146
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin.html.erb
|
147
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_footer.html.erb
|
148
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_header.html.erb
|
149
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/admin/_navbar.html.erb
|
150
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_flash_message.html.erb
|
151
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_meta_tags.html.erb
|
152
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_overlays.html.erb
|
153
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public.html.erb
|
154
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_footer.html.erb
|
155
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_header.html.erb
|
156
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/public/_navbar.html.erb
|
157
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user.html.erb
|
158
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_footer.html.erb
|
159
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_header.html.erb
|
160
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/user/_navbar.html.erb
|
161
|
+
- lib/rails/generators/humdrum/layout/templates/views/gumby/welcome/index.html.erb
|
121
162
|
- lib/rails/generators/humdrum/resource/resource_generator.rb
|
122
163
|
- lib/rails/generators/humdrum/resource/templates/config/locales/humdrum.en.yml
|
123
164
|
- lib/rails/generators/humdrum/resource/templates/controllers/resource_controller.rb
|