hobo_bootstrap 2.0.0.pre7 → 2.0.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -0
- data/VERSION +1 -1
- data/taglibs/forms.dryml +1 -1
- data/taglibs/index_page.dryml +8 -7
- data/taglibs/nav.dryml +2 -5
- metadata +3 -2
data/README.md
CHANGED
@@ -105,6 +105,14 @@ Add to Gemfile
|
|
105
105
|
|
106
106
|
And run `bundle`.
|
107
107
|
|
108
|
+
Any other theme you find or buy will probably be delivered as CSS or LESS rather than SCSS. Copy the CSS into a new folder in app/assets/stylesheets, and use like this, replacing *foo* with the name of your theme:
|
109
|
+
|
110
|
+
@import "foo/bootstrap.css";
|
111
|
+
@import "hobo_bootstrap/hobo_bootstrap_main";
|
112
|
+
@import "foo/bootstrap_responsive.css";
|
113
|
+
@import "hobo_bootstrap/hobo_bootstrap_responsive";
|
114
|
+
@import "hobo_bootstrap/hobo_bootstrap_docs";
|
115
|
+
|
108
116
|
Complex forms
|
109
117
|
=============
|
110
118
|
<hr/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.pre8
|
data/taglibs/forms.dryml
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
- columns: # of columns. Default is 1.
|
34
34
|
- input-attrs: A ruby hash containing attributes to be merged onto each view. For example
|
35
35
|
|
36
|
-
|
36
|
+
`<bootstrap-fields fields="foo,bar" input-attrs="&{:class => 'span9'}"/>`
|
37
37
|
|
38
38
|
is equivalent to:
|
39
39
|
|
data/taglibs/index_page.dryml
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
</do>
|
8
8
|
<% if can_delete?(this_parent) %>
|
9
9
|
<do param="delete">
|
10
|
-
|
10
|
+
<a with="&this_parent" action="destroy" method="delete" data-confirm="&t('hobo.messages.confirm', :default=>'Are you sure?')"><i class="icon-trash"></i></a>
|
11
11
|
</do>
|
12
12
|
<% end %>
|
13
13
|
</def>
|
@@ -55,12 +55,12 @@ You will probably want to add sorting and searching options to your index page.
|
|
55
55
|
|
56
56
|
and your controller like this
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
64
|
|
65
65
|
%>
|
66
66
|
<extend tag="index-page">
|
@@ -96,6 +96,7 @@ and your controller like this
|
|
96
96
|
<bootstrap-table-actions/>
|
97
97
|
</actions-view:>
|
98
98
|
</table>
|
99
|
+
<empty-collection-message param="empty-message"/>
|
99
100
|
</collection>
|
100
101
|
</old-index-page:>
|
101
102
|
</extend>
|
data/taglibs/nav.dryml
CHANGED
@@ -33,8 +33,8 @@ The normal usage is to define your own navigation tag that calls `<navigation>`.
|
|
33
33
|
|
34
34
|
Then in your pages you can call the tag like this
|
35
35
|
|
36
|
-
- On the 'red' page:
|
37
|
-
- On the 'green' page:
|
36
|
+
- On the 'red' page: <`sub-nav current="red"/`>
|
37
|
+
- On the 'green' page: <`sub-nav current="green"/`>
|
38
38
|
- and so on.
|
39
39
|
|
40
40
|
-->
|
@@ -115,9 +115,6 @@ This is a simple tag - just look at the source if you need to know more detail.
|
|
115
115
|
<li class='nav-item' param="log-in"><a href="&login_url"><t key="hobo.actions.login">Log in</t></a></li>
|
116
116
|
<li if="&signup_url" class="nav-item" param="sign-up"><a href="&signup_url"><t key="hobo.actions.signup">Sign up</t></a></li>
|
117
117
|
</else>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
118
|
</ul>
|
122
119
|
</do>
|
123
120
|
</div>
|
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.pre8
|
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:
|
12
|
+
date: 2013-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hobo
|
@@ -148,3 +148,4 @@ signing_key:
|
|
148
148
|
specification_version: 3
|
149
149
|
summary: A bootstrap based theme for Hobo
|
150
150
|
test_files: []
|
151
|
+
has_rdoc:
|