bootstrap2-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
1
|
<%= form_tag({action: "index"}, {method: :get, class: 'form-search'}) do %>
|
2
|
-
<%= text_field_tag("search", params[:search], {size: 70, placeholder: placeholder, class: 'input-medium search-query'}) %>
|
3
|
-
<%= submit_tag("Search", class: 'btn') %>
|
2
|
+
<%= text_field_tag("search", params[:search], {size: 70, placeholder: placeholder, class: 'input-medium search-query span4'}) %>
|
3
|
+
<%= submit_tag("Search", class: 'btn btn-warning') %>
|
4
4
|
<% end %>
|
@@ -6,10 +6,10 @@ module BootstrapHelper
|
|
6
6
|
link_to title, sort: column, direction: direction
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def sort_icon(direction, column, table_column)
|
10
10
|
return nil if column != table_column
|
11
|
-
return '
|
12
|
-
return '
|
11
|
+
return content_tag(:i, nil, {class: 'icon-chevron-up', style: 'float: right'}) if direction == 'asc'
|
12
|
+
return content_tag(:i, nil, {class: 'icon-chevron-down', style: 'float: right'}) if direction == 'desc'
|
13
13
|
end
|
14
14
|
|
15
15
|
# display a message using the JQuery Toast Message plugin
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<thead>
|
22
22
|
<tr>
|
23
23
|
<% attributes.each do |attribute| -%>
|
24
|
-
<th
|
24
|
+
<th><%%= sortable('<%= attribute.name %>') + sort_icon(@sort_direction, @sort_column, '<%= attribute.name %>') %></th>
|
25
25
|
<% end -%>
|
26
26
|
<th width="140px"><a href="#">Actions</a></th>
|
27
27
|
</tr>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap2-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,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: will_paginate
|
16
|
-
requirement: &
|
16
|
+
requirement: &83905240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *83905240
|
25
25
|
description: This is a scaffold replacement with a Twitter Bootstrap look
|
26
26
|
email:
|
27
27
|
- stapait@gmail.com
|