spree_mobile_views 0.50.1 → 0.50.2

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.
@@ -3,6 +3,13 @@
3
3
  <title><%= title %></title>
4
4
  <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
5
5
  <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
6
+ <script type="text/javascript">
7
+ //<![CDATA[
8
+ $(document).bind("mobileinit", function(){
9
+ $.mobile.ajaxEnabled = false;
10
+ });
11
+ //]]>
12
+ </script>
6
13
  <script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
7
14
  <%= javascript_include_tag 'rails' %>
8
15
  <%= stylesheet_link_tag 'mobile' %>
@@ -11,18 +18,18 @@
11
18
  <body>
12
19
  <div data-role="page">
13
20
  <div data-role="header">
21
+ <a href="/" id='home_link' data-icon="home" data-ajax="false" class="ui-btn-left">&nbsp;</a>
14
22
  <h1><%= title %></h1>
15
23
  <a href="?mobile=0" data-icon="gear" data-ajax="false" class="ui-btn-right"><%= t(:full_site)%></a>
16
24
  <div data-role="navbar">
17
25
  <ul>
18
- <li><%= link_to t(:home), root_path, :class => css_class(root_path) %></li>
19
- <li><%= link_to t(:search), search_path, :class => css_class(search_path) %></li>
20
26
  <% if current_user %>
21
27
  <li><%= link_to t('my_account'), account_path, :class => css_class(account_path) %></li>
22
28
  <li><%= link_to t('logout'), destroy_user_session_path %></li>
23
29
  <% else %>
24
30
  <li><%= link_to t('log_in'), login_path, :class => css_class(login_path) %></li>
25
31
  <% end %>
32
+ <li><%= link_to t(:search), search_path, :class => css_class(search_path) %></li>
26
33
  <li><%= link_to_cart %></li>
27
34
  </ul>
28
35
  </div>
@@ -29,6 +29,9 @@ ol.progress-steps li.current-first, ol.progress-steps li.current {
29
29
  background-image: url(../images/step-progress/current-first.gif);
30
30
  }
31
31
 
32
+ .ui-header .ui-title .ui-link { color: white; text-decoration: none; }
33
+ .ui-header #home_link .ui-btn-inner { padding-left: 15px; }
34
+
32
35
  /* Margins */
33
36
  form { margin: 0; }
34
37
  #line_items p { margin: 0; }
@@ -36,3 +39,4 @@ form { margin: 0; }
36
39
  .ui-listview-inset { margin: 1em 0.5em; }
37
40
  .ui-content h3 { margin: 0 0 1.5em 0; }
38
41
  .ui-content div.pagination { margin-top: 2em; }
42
+ .ui-header .ui-title { margin-left: 3em; margin-right: 8em; text-align: left; }
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'spree_mobile_views'
4
- s.version = '0.50.1'
4
+ s.version = '0.50.2'
5
5
  s.summary = 'Adds support of mobile devices to Spree stores'
6
6
  s.description = 'Works through jQuery Mobile'
7
7
  s.required_ruby_version = '>= 1.8.7'
@@ -16,7 +16,5 @@ Gem::Specification.new do |s|
16
16
  s.require_path = 'lib'
17
17
  s.requirements << 'none'
18
18
 
19
- s.has_rdoc = true
20
-
21
19
  s.add_dependency('spree_core', '>= 0.50.0')
22
20
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 50
8
- - 1
9
- version: 0.50.1
8
+ - 2
9
+ version: 0.50.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Roman Smirnov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-27 00:00:00 +04:00
17
+ date: 2011-05-18 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency