synergy_bootstrap_theme 0.0.1 → 0.0.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.
@@ -41,10 +41,10 @@
41
41
  <!-- javascript -->
42
42
  <%= javascript_include_tag 'jquery.min.js' %>
43
43
  <%= javascript_include_tag 'rails' %>
44
- <%= javascript_include_tag 'application' %>
45
44
  <%= javascript_include_tag 'bootstrap.min.js' %>
46
45
  <%= javascript_include_tag 'load-image.min.js' %>
47
46
  <%= javascript_include_tag 'bootstrap-image-gallery.min.js' %>
47
+ <%= javascript_include_tag 'theme' %>
48
48
  <% unless I18n.locale.to_s[0..1] == 'en' %>
49
49
  <%#= javascript_include_tag ['localization/messages_', I18n.locale.to_s[0..1], '.js'].join %>
50
50
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <% image ||= @product.images.first
2
2
  if image %>
3
- <a href="<%= image.attachment.url(:large) %>" class="thumbnail gallery-item">
3
+ <a href="<%= image.attachment.url(:large) %>" class="thumbnail gallery-item" title="<%= t(:click_to_enlarge) %>">
4
4
  <%= image_tag(image.attachment.url(:product)) %>
5
5
  </a>
6
6
  <% else %>
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
  <div class="modal-body"><div class="modal-image"></div></div>
17
17
  <div class="modal-footer">
18
- <a class="btn btn-primary modal-next"><%= t(:next) %> <i class="icon-arrow-right icon-white"></i></a>
19
18
  <a class="btn btn-info modal-prev"><i class="icon-arrow-left icon-white"></i> <%= t(:previous) %></a>
19
+ <a class="btn btn-primary modal-next"><%= t(:next) %> <i class="icon-arrow-right icon-white"></i></a>
20
20
  </div>
21
21
  </div>
@@ -0,0 +1,34 @@
1
+ # extends will_paginate to play well with Twitter's Bootstrap
2
+ require 'will_paginate/view_helpers/action_view'
3
+
4
+ module WillPaginate
5
+ module ActionView
6
+ def will_paginate(collection = nil, options = {})
7
+ options, collection = collection, nil if collection.is_a? Hash
8
+ collection ||= infer_collection_from_controller
9
+ options[:renderer] ||= BootstrapLinkRenderer
10
+ super.try :html_safe
11
+ end
12
+
13
+ class BootstrapLinkRenderer < LinkRenderer
14
+ protected
15
+
16
+ def html_container(html)
17
+ tag :div, tag(:ul, html), container_attributes
18
+ end
19
+
20
+ def page_number(page)
21
+ tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page)
22
+ end
23
+
24
+ def gap
25
+ tag :li, link(super, '#'), :class => 'disabled'
26
+ end
27
+
28
+ def previous_or_next_page(page, text, classname)
29
+ tag :li, link(text, page || '#'),
30
+ :class => [(classname[0..3] if @options[:page_links]), (classname if @options[:page_links]), ('disabled' unless page)].join(' ')
31
+ end
32
+ end
33
+ end
34
+ end
@@ -44,4 +44,5 @@ ru:
44
44
  similar_products: "Похожие товары"
45
45
  search: "Поиск"
46
46
  find: "Искать"
47
+ click_to_enlarge: "Нажмите для увеличения"
47
48
 
@@ -8,5 +8,7 @@
8
8
  e.preventDefault();
9
9
  });
10
10
 
11
+ $("a[title]").tooltip();
12
+
11
13
  });
12
14
  })(jQuery);
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'synergy_bootstrap_theme'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = '2012-04-23'
5
5
  s.summary = "Synergy theme with twitter bootstrap"
6
6
  s.description = "A simple synergy theme based on synergy_default_theme with twitter bootstrap"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synergy_bootstrap_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dalli
16
- requirement: &21001240 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: 1.0.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21001240
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.3
25
30
  description: A simple synergy theme based on synergy_default_theme with twitter bootstrap
26
31
  email: rommel.rmm@gmail.com
27
32
  executables: []
@@ -86,6 +91,7 @@ files:
86
91
  - app/views/users/show.html.erb
87
92
  - config/initializers/advanced_cart.rb
88
93
  - config/initializers/constants.rb
94
+ - config/initializers/will_paginate.rb
89
95
  - config/locales/ru.yml
90
96
  - config/routes.rb
91
97
  - db/migrate/20110330125354_add_show_on_main_page_flag_to_taxonomies.rb
@@ -101,12 +107,12 @@ files:
101
107
  - public/images/glyphicons-halflings-white.png
102
108
  - public/images/glyphicons-halflings.png
103
109
  - public/images/noimage/taxon.png
104
- - public/javascripts/application.js
105
110
  - public/javascripts/bootstrap-image-gallery.min.js
106
111
  - public/javascripts/bootstrap.min.js
107
112
  - public/javascripts/jquery.min.js
108
113
  - public/javascripts/load-image.min.js
109
114
  - public/javascripts/rails.js
115
+ - public/javascripts/theme.js
110
116
  - public/stylesheets/bootstrap-image-gallery.min.css
111
117
  - public/stylesheets/bootstrap.min.css
112
118
  - public/stylesheets/main.css
@@ -132,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
138
  requirements:
133
139
  - none
134
140
  rubyforge_project:
135
- rubygems_version: 1.8.10
141
+ rubygems_version: 1.8.21
136
142
  signing_key:
137
143
  specification_version: 3
138
144
  summary: Synergy theme with twitter bootstrap