flexi_generators 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- <h1><% title("Dashboard#index") %></h1>
1
+ <% title("Dashboard#index") %>
2
2
  <p>Find me in app/views/dashboard/index.html.erb</p>
3
3
 
4
4
  <div class="hero-unit">
@@ -9,7 +9,7 @@ module ErrorMessagesHelper
9
9
  # forced as error but may not abstractly always be the case
10
10
  content_tag(:div, :class => "alert alert-danger") do
11
11
  list_items = messages.map { |msg| content_tag(:li, msg.html_safe) }
12
- content_tag(:h2, options[:header_message].html_safe) + content_tag(:p, options[:message].html_safe) + content_tag(:ul, list_items.join.html_safe)
12
+ content_tag(:h3, options[:header_message].html_safe) + content_tag(:p, options[:message].html_safe) + content_tag(:ul, list_items.join.html_safe)
13
13
  end
14
14
  end
15
15
  end
@@ -1,9 +1,7 @@
1
1
  /* Your custom css stylesheets goes here */
2
- body{padding-top:60px;padding-bottom:40px;}
3
- h1{margin-bottom:20px !important;}
2
+ body{padding-top:40px;padding-bottom:40px;}
4
3
  fieldset legend{margin-bottom:0;}
5
4
  .sidebar-nav{padding:9px 0;}
6
- .navbar .brand{color:#FFFFFF !important;}
7
5
  .page-header{padding-bottom:0px !important;}
8
6
  .actions{text-align:center !important;width:15%}
9
7
  /* error fields */
@@ -55,10 +55,10 @@
55
55
  </div><!--/span-->
56
56
 
57
57
  <div class="span9">
58
- <%%= display_flash_message %>
59
58
  <div class="page-header">
60
- <%%= content_tag :h1, yield(:title) if show_title %>
59
+ <%%= content_tag :h3, yield(:title) if show_title %>
61
60
  </div>
61
+ <%%= display_flash_message %>
62
62
  <%%= yield %>
63
63
  </div><!--/span-->
64
64
  </div><!--/row-->
@@ -1,5 +1,3 @@
1
- <%% title("#{controller.action_name.capitalize} <%= singular_table_name %>") %>
2
-
3
1
  <%%= error_messages_for(@<%= singular_table_name %>) %>
4
2
 
5
3
  <%%= form_for(@<%= singular_table_name %>, :html => { :class => 'form-horizontal' }) do |f| %>
@@ -1 +1,3 @@
1
+ <%% title("Edit <%= singular_table_name %>") %>
2
+
1
3
  <%%= render :partial => 'form' %>
@@ -5,7 +5,7 @@
5
5
  <%% end %>
6
6
  </p>
7
7
 
8
- <table class="table table-striped">
8
+ <table class="table table-bordered table-striped">
9
9
  <thead>
10
10
  <tr>
11
11
  <th>ID</th>
@@ -1 +1,3 @@
1
+ <%% title("New <%= singular_table_name %>") %>
2
+
1
3
  <%%= render :partial => 'form' %>
@@ -1,5 +1,5 @@
1
1
  module FlexiGenerators
2
2
  module Rails
3
- TWITTER_BOOTSTRAP = "2.0.4"
3
+ TWITTER_BOOTSTRAP = "2.3.1"
4
4
  end
5
5
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FlexiGenerators
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end