bootstrap-generators 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/README.md +238 -21
  2. data/bootstrap-generators.gemspec +3 -3
  3. data/lib/bootstrap-generators.rb +0 -1
  4. data/lib/bootstrap/generators/version.rb +1 -1
  5. data/lib/generators/bootstrap/install/install_generator.rb +5 -12
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +5 -5
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +119 -0
  8. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +5 -5
  9. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -5
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +114 -0
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -5
  12. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +118 -40
  13. data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +24 -0
  14. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +9 -8
  15. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +8 -7
  16. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +5 -7
  17. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +6 -7
  18. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +50 -47
  19. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +75 -55
  20. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +11 -14
  21. data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +9 -11
  22. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +8 -2
  23. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +5 -2
  24. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +4 -1
  25. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +8 -2
  26. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +6 -2
  27. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +4 -2
  28. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +3 -1
  29. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +6 -2
  30. data/test/lib/generators/bootstrap/install_generator_test.rb +6 -20
  31. data/test/test_helper.rb +1 -1
  32. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  33. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  34. data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
  35. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  36. data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
  37. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  38. data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
  39. data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
  40. data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
  41. data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
  42. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  43. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  44. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  45. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  46. data/vendor/assets/javascripts/bootstrap.js +11 -6
  47. data/vendor/assets/stylesheets/bootstrap.css +2497 -1602
  48. data/vendor/assets/stylesheets/less/accordion.less +28 -0
  49. data/vendor/assets/stylesheets/less/alerts.less +70 -0
  50. data/vendor/assets/stylesheets/less/bootstrap.less +62 -0
  51. data/vendor/assets/stylesheets/less/breadcrumbs.less +22 -0
  52. data/vendor/assets/stylesheets/less/button-groups.less +147 -0
  53. data/vendor/assets/stylesheets/less/buttons.less +165 -0
  54. data/vendor/assets/stylesheets/less/carousel.less +121 -0
  55. data/vendor/assets/stylesheets/less/close.less +18 -0
  56. data/vendor/assets/stylesheets/less/code.less +44 -0
  57. data/vendor/assets/stylesheets/less/component-animations.less +18 -0
  58. data/vendor/assets/stylesheets/less/dropdowns.less +131 -0
  59. data/vendor/assets/stylesheets/less/forms.less +515 -0
  60. data/vendor/assets/stylesheets/less/grid.less +8 -0
  61. data/vendor/assets/stylesheets/less/hero-unit.less +20 -0
  62. data/vendor/assets/stylesheets/less/labels.less +16 -0
  63. data/vendor/assets/stylesheets/less/layouts.less +17 -0
  64. data/vendor/assets/stylesheets/less/mixins.less +537 -0
  65. data/vendor/assets/stylesheets/less/modals.less +72 -0
  66. data/vendor/assets/stylesheets/less/navbar.less +292 -0
  67. data/vendor/assets/stylesheets/less/navs.less +344 -0
  68. data/vendor/assets/stylesheets/less/pager.less +30 -0
  69. data/vendor/assets/stylesheets/less/pagination.less +55 -0
  70. data/vendor/assets/stylesheets/less/popovers.less +49 -0
  71. data/vendor/assets/stylesheets/less/progress-bars.less +95 -0
  72. data/vendor/assets/stylesheets/less/reset.less +126 -0
  73. data/vendor/assets/stylesheets/less/responsive.less +323 -0
  74. data/vendor/assets/stylesheets/less/scaffolding.less +29 -0
  75. data/vendor/assets/stylesheets/less/sprites.less +156 -0
  76. data/vendor/assets/stylesheets/less/tables.less +139 -0
  77. data/vendor/assets/stylesheets/less/thumbnails.less +35 -0
  78. data/vendor/assets/stylesheets/less/tooltip.less +35 -0
  79. data/vendor/assets/stylesheets/less/type.less +217 -0
  80. data/vendor/assets/stylesheets/less/utilities.less +23 -0
  81. data/vendor/assets/stylesheets/less/variables.less +99 -0
  82. data/vendor/assets/stylesheets/less/wells.less +17 -0
  83. metadata +62 -33
  84. data/lib/bootstrap/helpers/form_builder.rb +0 -26
  85. data/lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb +0 -12
  86. data/lib/generators/bootstrap/install/templates/app/inputs/collection_input.rb +0 -12
  87. data/lib/generators/bootstrap/install/templates/app/inputs/date_time_input.rb +0 -16
  88. data/lib/generators/bootstrap/install/templates/app/inputs/file_input.rb +0 -16
  89. data/lib/generators/bootstrap/install/templates/app/inputs/numeric_input.rb +0 -16
  90. data/lib/generators/bootstrap/install/templates/app/inputs/password_input.rb +0 -16
  91. data/lib/generators/bootstrap/install/templates/app/inputs/string_input.rb +0 -16
  92. data/lib/generators/bootstrap/install/templates/app/inputs/text_input.rb +0 -16
  93. data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css +0 -53
  94. data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css.scss +0 -55
  95. data/lib/generators/bootstrap/install/templates/layouts/container-app.html.erb +0 -58
  96. data/lib/generators/bootstrap/install/templates/layouts/container-app.html.haml +0 -46
  97. data/vendor/assets/javascripts/bootstrap-alerts.js +0 -113
  98. data/vendor/assets/javascripts/bootstrap-buttons.js +0 -62
  99. data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
  100. data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
  101. data/vendor/assets/stylesheets/bootstrap.min.css +0 -356
@@ -1,18 +1,16 @@
1
- <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
1
+ <%%= simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f| %>
2
2
  <%% if @<%= singular_table_name %>.errors.any? %>
3
- <div class="alert-message error">
3
+ <div class="alert alert-error">
4
+ <a class="close" data-dismiss="alert" href="#">×</a>
4
5
  <%%= f.error_notification %>
5
6
  </div>
6
7
  <%% end %>
7
8
 
8
- <div class="inputs">
9
9
  <%- attributes.each do |attribute| -%>
10
10
  <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
11
11
  <%- end -%>
12
- </div>
13
12
 
14
- <div class="actions">
15
- <%%= f.button :submit, :class => "btn primary" %>
13
+ <div class="form-actions">
14
+ <%%= f.button :submit, :class => "btn btn-primary" %>
16
15
  </div>
17
16
  <%% end %>
18
-
@@ -1,13 +1,12 @@
1
- = simple_form_for(@<%= singular_table_name %>) do |f|
1
+ = simple_form_for(@<%= singular_table_name %>, :defaults => { :input_html => { :class => 'input-xxlarge' } }) do |f|
2
2
  -if @<%= singular_table_name %>.errors.any?
3
- .alert-message.error
3
+ .alert.alert-error
4
+ %a.close{:href => "#", :"data-dismiss" => "alert"} ×
4
5
  = f.error_notification
5
6
 
6
- .inputs
7
7
  <%- attributes.each do |attribute| -%>
8
- = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
8
+ = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
9
9
  <%- end -%>
10
10
 
11
- .actions
12
- = f.button :submit, :class => "btn primary"
13
-
11
+ .form-actions
12
+ = f.button :submit, :class => "btn btn-primary"
@@ -16,61 +16,64 @@
16
16
  <%%= csrf_meta_tags %>
17
17
  </head>
18
18
  <body>
19
- <div class="topbar">
20
- <div class="topbar-inner">
19
+ <div class="navbar navbar-fixed-top">
20
+ <div class="navbar-inner">
21
21
  <div class="container-fluid">
22
- <a class="brand" href="#">Project name</a>
23
- <ul class="nav">
24
- <li class="active"><a href="#">Home</a></li>
25
- <li><a href="#about">About</a></li>
26
- <li><a href="#contact">Contact</a></li>
27
- </ul>
28
- <p class="pull-right">Logged in as <a href="#">username</a></p>
22
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
23
+ <span class="icon-bar"></span>
24
+ <span class="icon-bar"></span>
25
+ <span class="icon-bar"></span>
26
+ </a>
27
+ <%%= link_to "Project name", "#", :class => "brand" %>
28
+ <div class="nav-collapse">
29
+ <ul class="nav">
30
+ <li class="active"><a href="#">Home</a></li>
31
+ <li><a href="#about">About</a></li>
32
+ <li><a href="#contact">Contact</a></li>
33
+ </ul>
34
+ <p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
35
+ </div>
29
36
  </div>
30
37
  </div>
31
38
  </div>
32
39
  <div class="container-fluid">
33
- <div class="sidebar">
34
- <div class="well">
35
- <h5>Sidebar</h5>
36
- <ul>
37
- <li><a href="#">Link</a></li>
38
- <li><a href="#">Link</a></li>
39
- <li><a href="#">Link</a></li>
40
- <li><a href="#">Link</a></li>
41
- </ul>
42
- <h5>Sidebar</h5>
43
- <ul>
44
- <li><a href="#">Link</a></li>
45
- <li><a href="#">Link</a></li>
46
- <li><a href="#">Link</a></li>
47
- <li><a href="#">Link</a></li>
48
- <li><a href="#">Link</a></li>
49
- <li><a href="#">Link</a></li>
50
- </ul>
51
- <h5>Sidebar</h5>
52
- <ul>
53
- <li><a href="#">Link</a></li>
54
- <li><a href="#">Link</a></li>
55
- </ul>
56
- </div>
57
- </div>
58
- <%% flash.each do |name, msg| %>
59
- <%%= content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do %>
60
- <a class="close" href="#">×</a>
61
- <p><%%= msg %></p>
62
- <%% end %>
63
- <%% end %>
64
- <div class="content">
65
- <div class="row">
66
- <div class="span16">
67
- <%%= yield %>
40
+ <div class="row-fluid">
41
+ <div class="span3">
42
+ <div class="well sidebar-nav">
43
+ <ul class="nav nav-list">
44
+ <li class="nav-header">Sidebar</li>
45
+ <li class="active"><a href="#">Link</a></li>
46
+ <li><a href="#">Link</a></li>
47
+ <li><a href="#">Link</a></li>
48
+ <li><a href="#">Link</a></li>
49
+ <li class="nav-header">Sidebar</li>
50
+ <li><a href="#">Link</a></li>
51
+ <li><a href="#">Link</a></li>
52
+ <li><a href="#">Link</a></li>
53
+ <li><a href="#">Link</a></li>
54
+ <li><a href="#">Link</a></li>
55
+ <li><a href="#">Link</a></li>
56
+ <li class="nav-header">Sidebar</li>
57
+ <li><a href="#">Link</a></li>
58
+ <li><a href="#">Link</a></li>
59
+ <li><a href="#">Link</a></li>
60
+ </ul>
68
61
  </div>
69
62
  </div>
70
- <footer>
71
- <p>&copy; Company 2011</p>
72
- </footer>
63
+ <div class="span9">
64
+ <%% flash.each do |name, msg| %>
65
+ <%%= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do %>
66
+ <a class="close" data-dismiss="alert" href="#">×</a>
67
+ <%%= msg %>
68
+ <%% end %>
69
+ <%% end %>
70
+ <%%= yield %>
71
+ </div>
73
72
  </div>
73
+ <hr>
74
+ <footer>
75
+ <p>&copy; Company 2012</p>
76
+ </footer>
74
77
  </div>
75
78
  </body>
76
79
  </html>
@@ -13,61 +13,81 @@
13
13
  = javascript_include_tag "application"
14
14
  = csrf_meta_tags
15
15
  %body
16
- .topbar
17
- .topbar-inner
16
+ .navbar.navbar-fixed-top
17
+ .navbar-inner
18
18
  .container-fluid
19
+ %a.btn.btn-navbar{:"data-toggle" => "collapse", :"data-target" => ".nav-collapse"}
20
+ %span.icon-bar
21
+ %span.icon-bar
22
+ %span.icon-bar
19
23
  %a.brand{:href => "#"} Project name
20
- %ul.nav
21
- %li.active
22
- %a{:href => "#"} Home
23
- %li
24
- %a{:href => "#about"} About
25
- %li
26
- %a{:href => "#contact"} Contact
27
- %p.pull-right
28
- Logged in as
29
- %a{:href => "#"} username
24
+ .nav-collapse
25
+ %ul.nav
26
+ %li.active
27
+ %a{:href => "#"} Home
28
+ %li
29
+ %a{:href => "#about"} About
30
+ %li
31
+ %a{:href => "#contact"} Contact
32
+ %p.navbar-text.pull-right
33
+ Logged in as
34
+ %a{:href => "#"} username
30
35
  .container-fluid
31
- .sidebar
32
- .well
33
- %h5 Sidebar
34
- %ul
35
- %li
36
- %a{:href => "#"} Link
37
- %li
38
- %a{:href => "#"} Link
39
- %li
40
- %a{:href => "#"} Link
41
- %li
42
- %a{:href => "#"} Link
43
- %h5 Sidebar
44
- %ul
45
- %li
46
- %a{:href => "#"} Link
47
- %li
48
- %a{:href => "#"} Link
49
- %li
50
- %a{:href => "#"} Link
51
- %li
52
- %a{:href => "#"} Link
53
- %li
54
- %a{:href => "#"} Link
55
- %li
56
- %a{:href => "#"} Link
57
- %h5 Sidebar
58
- %ul
59
- %li
60
- %a{:href => "#"} Link
61
- %li
62
- %a{:href => "#"} Link
63
- - flash.each do |name, msg|
64
- = content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do
65
- %a.close{:href => "#"} ×
66
- %p= msg
67
- .content
68
- .row
69
- .span16
70
- = yield
71
- %footer
72
- %p © Company 2011 (haml)
73
-
36
+ .row-fluid
37
+ .span3
38
+ .well.sidebar-nav
39
+ %ul.nav.nav-list
40
+ %li.nav-header
41
+ Sidebar
42
+ %li.active
43
+ %a{:href => "#"}
44
+ Link
45
+ %li
46
+ %a{:href => "#"}
47
+ Link
48
+ %li
49
+ %a{:href => "#"}
50
+ Link
51
+ %li
52
+ %a{:href => "#"}
53
+ Link
54
+ %li.nav-header
55
+ Sidebar
56
+ %li
57
+ %a{:href => "#"}
58
+ Link
59
+ %li
60
+ %a{:href => "#"}
61
+ Link
62
+ %li
63
+ %a{:href => "#"}
64
+ Link
65
+ %li
66
+ %a{:href => "#"}
67
+ Link
68
+ %li
69
+ %a{:href => "#"}
70
+ Link
71
+ %li
72
+ %a{:href => "#"}
73
+ Link
74
+ %li.nav-header
75
+ Sidebar
76
+ %li
77
+ %a{:href => "#"}
78
+ Link
79
+ %li
80
+ %a{:href => "#"}
81
+ Link
82
+ %li
83
+ %a{:href => "#"}
84
+ Link
85
+ .span9
86
+ - flash.each do |name, msg|
87
+ = content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do
88
+ %a.close{:href => "#", :"data-dismiss" => "alert"} ×
89
+ = msg
90
+ = yield
91
+ %hr
92
+ %footer
93
+ %p &copy; Company 2012
@@ -16,8 +16,8 @@
16
16
  <%%= csrf_meta_tags %>
17
17
  </head>
18
18
  <body>
19
- <div class="topbar">
20
- <div class="fill">
19
+ <div class="navbar navbar-fixed-top">
20
+ <div class="navbar-inner">
21
21
  <div class="container">
22
22
  <%%= link_to "Project name", "#", :class => "brand" %>
23
23
  <ul class="nav">
@@ -28,20 +28,17 @@
28
28
  </div>
29
29
  </div>
30
30
  </div>
31
- <%% flash.each do |name, msg| %>
32
- <%%= content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do %>
33
- <a class="close" href="#">×</a>
34
- <p><%%= msg %></p>
35
- <%% end %>
36
- <%% end %>
37
31
  <div class="container">
38
- <div class="row">
39
- <div class="span16">
40
- <%%= yield %>
41
- </div>
42
- </div>
32
+ <%% flash.each do |name, msg| %>
33
+ <%%= content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do %>
34
+ <a class="close" data-dismiss="alert" href="#">×</a>
35
+ <%%= msg %>
36
+ <%% end %>
37
+ <%% end %>
38
+ <%%= yield %>
39
+ <hr>
43
40
  <footer>
44
- <p>&copy; Company 2011</p>
41
+ <p>&copy; Company 2012</p>
45
42
  </footer>
46
43
  </div>
47
44
  </body>
@@ -13,8 +13,8 @@
13
13
  = javascript_include_tag "application"
14
14
  = csrf_meta_tags
15
15
  %body
16
- .topbar
17
- .fill
16
+ .navbar.navbar-fixed-top
17
+ .navbar-inner
18
18
  .container
19
19
  = link_to "Project name", "#", :class => "brand"
20
20
  %ul.nav
@@ -24,14 +24,12 @@
24
24
  %a{:href => "#about"} About
25
25
  %li
26
26
  %a{:href => "#contact"} Contact
27
- - flash.each do |name, msg|
28
- = content_tag :div, :class => "container alert-message #{name == :error ? "error" : "success" }", :"data-alert" => "alert" do
29
- %a.close{:href => "#"} ×
30
- %p= msg
31
27
  .container
32
- .row
33
- .span16
34
- = yield
28
+ - flash.each do |name, msg|
29
+ = content_tag :div, :class => "alert #{name == :error ? "alert-error" : "alert-success" }" do
30
+ %a.close{:href => "#", :"data-dismiss" => "alert"} ×
31
+ = msg
32
+ = yield
33
+ %hr
35
34
  %footer
36
- %p © Company 2011 (haml)
37
-
35
+ %p &copy; Company 2012
@@ -1,6 +1,12 @@
1
1
  <div class="page-header">
2
- <%%= link_to 'Back', <%= index_helper %>_path, :class => 'btn' %>
3
- <%%= link_to 'Show', @<%= singular_table_name %>, :class => 'btn primary' %>
2
+ <%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
3
+ <i class="icon-list-alt"></i>
4
+ Back
5
+ <%% end %>
6
+ <%%= link_to @<%= singular_table_name %>, :class => 'btn btn-primary' do %>
7
+ <i class="icon-info-sign icon-white"></i>
8
+ Show
9
+ <%% end %>
4
10
  <h1>Editing <%= singular_table_name %></h1>
5
11
  </div>
6
12
 
@@ -1,9 +1,12 @@
1
1
  <div class="page-header">
2
- <%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary' %>
2
+ <%%= link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do %>
3
+ <i class="icon-plus icon-white"></i>
4
+ New <%= human_name %>
5
+ <%% end %>
3
6
  <h1>Listing <%= plural_table_name %></h1>
4
7
  </div>
5
8
 
6
- <table class="zebra-striped">
9
+ <table class="table table-bordered table-striped">
7
10
  <thead>
8
11
  <tr>
9
12
  <% attributes.each do |attribute| -%>
@@ -1,5 +1,8 @@
1
1
  <div class="page-header">
2
- <%%= link_to 'Back', <%= index_helper %>_path, :class => 'btn' %>
2
+ <%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
3
+ <i class="icon-list-alt"></i>
4
+ Back
5
+ <%% end %>
3
6
  <h1>New <%= singular_table_name %></h1>
4
7
  </div>
5
8
 
@@ -1,6 +1,12 @@
1
1
  <div class="page-header">
2
- <%%= link_to 'Back', <%= index_helper %>_path, :class => 'btn' %>
3
- <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class => 'btn primary' %>
2
+ <%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
3
+ <i class="icon-list-alt"></i>
4
+ Back
5
+ <%% end %>
6
+ <%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class => 'btn btn-primary' do %>
7
+ <i class="icon-pencil icon-white"></i>
8
+ Edit
9
+ <%% end %>
4
10
  <h1>Listing <%= plural_table_name %></h1>
5
11
  </div>
6
12
 
@@ -1,6 +1,10 @@
1
1
  .page-header
2
- = link_to 'Back', <%= index_helper %>_path, :class => 'btn'
3
- = link_to 'Show', @<%= singular_table_name %>, :class => 'btn primary'
2
+ = link_to <%= index_helper %>_path, :class => 'btn' do
3
+ %i.icon-list-alt
4
+ Back
5
+ = link_to @<%= singular_table_name %>, :class => 'btn btn-primary' do
6
+ %i.icon-info-sign.icon-white
7
+ Show
4
8
  %h1 Editing <%= singular_table_name %>
5
9
 
6
10
  = render 'form'
@@ -1,8 +1,10 @@
1
1
  .page-header
2
- = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary'
2
+ = link_to new_<%= singular_table_name %>_path, :class => 'btn btn-primary' do
3
+ %i.icon-plus.icon-white
4
+ New <%= human_name %>
3
5
  %h1 Listing <%= plural_table_name %>
4
6
 
5
- %table.zebra-striped
7
+ %table.table.table-bordered.table-striped
6
8
  %thead
7
9
  %tr
8
10
  <% for attribute in attributes -%>