rhodes 3.1.0.beta.4 → 3.1.0.beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/standard-css.txt +16 -0
- data/doc/tutorial.txt +1 -1
- data/res/generators/templates/application/app/index.erb +1 -1
- data/rhodes.gemspec +1 -1
- metadata +4 -4
data/doc/standard-css.txt
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## HTML Structure
|
|
4
4
|
|
|
5
|
+
### page (\<div data-role="page"\>)
|
|
6
|
+
|
|
7
|
+
The page div contain other divs for header, footer and content. For custom attributes used by jQuery Mobile look at [jQuery Mobile documentation](http://jquerymobile.com).
|
|
8
|
+
|
|
9
|
+
:::html
|
|
10
|
+
<div data-role="page">
|
|
11
|
+
<!-- page parts here -->
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
For pages which you will refer by links with controller name only and without action name, you have to use **data-url** attribute with the trailing slash in the value. Here is the sample for default start page, which is addressed by '/app' URL:
|
|
15
|
+
|
|
16
|
+
:::html
|
|
17
|
+
<div data-role="page" data-url="<%= Rho::RhoConfig.start_path %>/">
|
|
18
|
+
<!-- page parts here -->
|
|
19
|
+
</div>
|
|
20
|
+
|
|
5
21
|
### header and toolbar (\<div data-role="header"\>)
|
|
6
22
|
|
|
7
23
|
The header div contains the title of the current page, wrapped in an <code>h1</code> tag and toolbar as set of <code>a</code> tags. The page title will be displayed in the appropriate location for each device.
|
data/doc/tutorial.txt
CHANGED
|
@@ -64,7 +64,7 @@ You can edit the generated ERB files to customize the HTML as you see fit. Typi
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
:::ruby
|
|
67
|
-
<div data-role="page">
|
|
67
|
+
<div data-role="page" data-url="<%= Rho::RhoConfig.start_path %>/">
|
|
68
68
|
|
|
69
69
|
<div data-role="header" data-position="inline">
|
|
70
70
|
<h1>Storemanager</h1>
|
data/rhodes.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ require "lib/rhodes.rb"
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = %q{rhodes}
|
|
6
|
-
s.version = "3.1.0.beta.
|
|
6
|
+
s.version = "3.1.0.beta.5"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.authors = ["Rhomobile"]
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rhodes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 62196441
|
|
5
5
|
prerelease: 6
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 1
|
|
9
9
|
- 0
|
|
10
10
|
- beta
|
|
11
|
-
-
|
|
12
|
-
version: 3.1.0.beta.
|
|
11
|
+
- 5
|
|
12
|
+
version: 3.1.0.beta.5
|
|
13
13
|
platform: ruby
|
|
14
14
|
authors:
|
|
15
15
|
- Rhomobile
|
|
@@ -17,7 +17,7 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2011-08-
|
|
20
|
+
date: 2011-08-15 00:00:00 -07:00
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|