hobo_bootstrap 2.0.0.pre6 → 2.0.0.pre7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/taglibs/index_page.dryml +20 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.pre7
|
data/taglibs/index_page.dryml
CHANGED
@@ -42,6 +42,26 @@ The best way to remove any of the actions is to adjust your permission functions
|
|
42
42
|
</actions-view:>
|
43
43
|
</collection:>
|
44
44
|
|
45
|
+
You will probably want to add sorting and searching options to your index page. These are not enabled by default since they require controller support. To do so, customize your index.dryml like this:
|
46
|
+
|
47
|
+
<index-page>
|
48
|
+
<collection: replace>
|
49
|
+
<table-plus without-page-nav fields="this, quantity, actions">
|
50
|
+
<actions-heading:></actions-heading:>
|
51
|
+
<actions-view:><bootstrap-table-actions/></actions-view:>
|
52
|
+
</table-plus>
|
53
|
+
</collection:>
|
54
|
+
</index-page>
|
55
|
+
|
56
|
+
and your controller like this
|
57
|
+
|
58
|
+
def index
|
59
|
+
self.this = Widget.paginate(:page => params[:page]).
|
60
|
+
search(params[:search], :name).
|
61
|
+
order_by(parse_sort_param(:name, :quantity))
|
62
|
+
hobo_index
|
63
|
+
end
|
64
|
+
|
45
65
|
%>
|
46
66
|
<extend tag="index-page">
|
47
67
|
<old-index-page: without-count without-top-page-nav merge>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre7
|
5
5
|
prerelease: 6
|
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: 2012-
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hobo
|