spree_home_page_features 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +218 -0
- data/app/assets/javascripts/store/spree_home_page_features.js +6 -0
- data/app/assets/stylesheets/store/spree_home_page_features.css +1 -5
- data/app/models/spree/home_page_feature.rb +11 -7
- data/app/views/spree/admin/home_page_features/_form.erb +6 -4
- data/app/views/spree/admin/home_page_features/edit.html.erb +1 -1
- data/app/views/spree/admin/home_page_features/index.html.erb +5 -4
- data/app/views/spree/admin/home_page_features/new.html.erb +1 -1
- data/app/views/spree/home_page_features/_features.erb +3 -3
- data/config/locales/en.yml +13 -1
- data/config/locales/hu.yml +14 -0
- data/db/migrate/20120711073050_create_home_page_features.rb +5 -3
- data/lib/assets/images/bg_direction_nav.png +0 -0
- data/lib/assets/javascripts/jquery.flexslider-min.js +34 -33
- data/lib/assets/stylesheets/flexslider.css +6 -5
- data/spree_home_page_features.gemspec +1 -1
- metadata +18 -15
- data/app/assets/javascripts/store/spree_home_page_features.js.coffee +0 -6
data/Gemfile.lock
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
spree_home_page_features (1.2.1)
|
5
|
+
spree_core (~> 1.2)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (3.2.8)
|
11
|
+
actionpack (= 3.2.8)
|
12
|
+
mail (~> 2.4.4)
|
13
|
+
actionpack (3.2.8)
|
14
|
+
activemodel (= 3.2.8)
|
15
|
+
activesupport (= 3.2.8)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.4)
|
19
|
+
rack (~> 1.4.0)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.1.3)
|
23
|
+
active_utils (1.0.5)
|
24
|
+
activesupport (>= 2.3.11)
|
25
|
+
i18n
|
26
|
+
activemerchant (1.28.0)
|
27
|
+
active_utils (>= 1.0.2)
|
28
|
+
activesupport (>= 2.3.11)
|
29
|
+
builder (>= 2.0.0)
|
30
|
+
i18n
|
31
|
+
json (>= 1.5.1)
|
32
|
+
money
|
33
|
+
nokogiri
|
34
|
+
activemodel (3.2.8)
|
35
|
+
activesupport (= 3.2.8)
|
36
|
+
builder (~> 3.0.0)
|
37
|
+
activerecord (3.2.8)
|
38
|
+
activemodel (= 3.2.8)
|
39
|
+
activesupport (= 3.2.8)
|
40
|
+
arel (~> 3.0.2)
|
41
|
+
tzinfo (~> 0.3.29)
|
42
|
+
activeresource (3.2.8)
|
43
|
+
activemodel (= 3.2.8)
|
44
|
+
activesupport (= 3.2.8)
|
45
|
+
activesupport (3.2.8)
|
46
|
+
i18n (~> 0.6)
|
47
|
+
multi_json (~> 1.0)
|
48
|
+
acts_as_list (0.1.4)
|
49
|
+
addressable (2.3.2)
|
50
|
+
arel (3.0.2)
|
51
|
+
aws-sdk (1.3.9)
|
52
|
+
httparty (~> 0.7)
|
53
|
+
json (~> 1.4)
|
54
|
+
nokogiri (>= 1.4.4)
|
55
|
+
uuidtools (~> 2.1)
|
56
|
+
builder (3.0.3)
|
57
|
+
cancan (1.6.7)
|
58
|
+
capybara (1.0.1)
|
59
|
+
mime-types (>= 1.16)
|
60
|
+
nokogiri (>= 1.3.3)
|
61
|
+
rack (>= 1.0.0)
|
62
|
+
rack-test (>= 0.5.4)
|
63
|
+
selenium-webdriver (~> 2.0)
|
64
|
+
xpath (~> 0.1.4)
|
65
|
+
childprocess (0.3.5)
|
66
|
+
ffi (~> 1.0, >= 1.0.6)
|
67
|
+
cocaine (0.3.0)
|
68
|
+
columnize (0.3.6)
|
69
|
+
debugger (1.2.0)
|
70
|
+
columnize (>= 0.3.1)
|
71
|
+
debugger-linecache (~> 1.1.1)
|
72
|
+
debugger-ruby_core_source (~> 1.1.3)
|
73
|
+
debugger-linecache (1.1.2)
|
74
|
+
debugger-ruby_core_source (>= 1.1.1)
|
75
|
+
debugger-ruby_core_source (1.1.3)
|
76
|
+
deface (0.9.1)
|
77
|
+
nokogiri (~> 1.5.0)
|
78
|
+
rails (~> 3.1)
|
79
|
+
diff-lcs (1.1.3)
|
80
|
+
erubis (2.7.0)
|
81
|
+
factory_girl (2.6.4)
|
82
|
+
activesupport (>= 2.3.9)
|
83
|
+
ffaker (1.12.1)
|
84
|
+
ffi (1.1.5)
|
85
|
+
highline (1.6.11)
|
86
|
+
hike (1.2.1)
|
87
|
+
httparty (0.9.0)
|
88
|
+
multi_json (~> 1.0)
|
89
|
+
multi_xml
|
90
|
+
i18n (0.6.1)
|
91
|
+
journey (1.0.4)
|
92
|
+
jquery-rails (2.1.2)
|
93
|
+
railties (>= 3.1.0, < 5.0)
|
94
|
+
thor (~> 0.14)
|
95
|
+
json (1.7.5)
|
96
|
+
kaminari (0.14.1)
|
97
|
+
actionpack (>= 3.0.0)
|
98
|
+
activesupport (>= 3.0.0)
|
99
|
+
libwebsocket (0.1.5)
|
100
|
+
addressable
|
101
|
+
mail (2.4.4)
|
102
|
+
i18n (>= 0.4.0)
|
103
|
+
mime-types (~> 1.16)
|
104
|
+
treetop (~> 1.4.8)
|
105
|
+
mime-types (1.19)
|
106
|
+
money (5.0.0)
|
107
|
+
i18n (~> 0.4)
|
108
|
+
json
|
109
|
+
multi_json (1.3.6)
|
110
|
+
multi_xml (0.5.1)
|
111
|
+
nested_set (1.7.0)
|
112
|
+
activerecord (>= 3.0.0)
|
113
|
+
railties (>= 3.0.0)
|
114
|
+
nokogiri (1.5.5)
|
115
|
+
paperclip (2.7.0)
|
116
|
+
activerecord (>= 2.3.0)
|
117
|
+
activesupport (>= 2.3.2)
|
118
|
+
cocaine (>= 0.0.2)
|
119
|
+
mime-types
|
120
|
+
polyamorous (0.5.0)
|
121
|
+
activerecord (~> 3.0)
|
122
|
+
polyglot (0.3.3)
|
123
|
+
rack (1.4.1)
|
124
|
+
rack-cache (1.2)
|
125
|
+
rack (>= 0.4)
|
126
|
+
rack-ssl (1.3.2)
|
127
|
+
rack
|
128
|
+
rack-test (0.6.1)
|
129
|
+
rack (>= 1.0)
|
130
|
+
rails (3.2.8)
|
131
|
+
actionmailer (= 3.2.8)
|
132
|
+
actionpack (= 3.2.8)
|
133
|
+
activerecord (= 3.2.8)
|
134
|
+
activeresource (= 3.2.8)
|
135
|
+
activesupport (= 3.2.8)
|
136
|
+
bundler (~> 1.0)
|
137
|
+
railties (= 3.2.8)
|
138
|
+
railties (3.2.8)
|
139
|
+
actionpack (= 3.2.8)
|
140
|
+
activesupport (= 3.2.8)
|
141
|
+
rack-ssl (~> 1.3.2)
|
142
|
+
rake (>= 0.8.7)
|
143
|
+
rdoc (~> 3.4)
|
144
|
+
thor (>= 0.14.6, < 2.0)
|
145
|
+
rake (0.9.2.2)
|
146
|
+
ransack (0.7.0)
|
147
|
+
actionpack (~> 3.0)
|
148
|
+
activerecord (~> 3.0)
|
149
|
+
polyamorous (~> 0.5.0)
|
150
|
+
rdoc (3.12)
|
151
|
+
json (~> 1.4)
|
152
|
+
rspec (2.11.0)
|
153
|
+
rspec-core (~> 2.11.0)
|
154
|
+
rspec-expectations (~> 2.11.0)
|
155
|
+
rspec-mocks (~> 2.11.0)
|
156
|
+
rspec-core (2.11.1)
|
157
|
+
rspec-expectations (2.11.3)
|
158
|
+
diff-lcs (~> 1.1.3)
|
159
|
+
rspec-mocks (2.11.2)
|
160
|
+
rspec-rails (2.11.0)
|
161
|
+
actionpack (>= 3.0)
|
162
|
+
activesupport (>= 3.0)
|
163
|
+
railties (>= 3.0)
|
164
|
+
rspec (~> 2.11.0)
|
165
|
+
rubyzip (0.9.9)
|
166
|
+
select2-rails (0.0.9)
|
167
|
+
thor (~> 0.14)
|
168
|
+
selenium-webdriver (2.25.0)
|
169
|
+
childprocess (>= 0.2.5)
|
170
|
+
libwebsocket (~> 0.1.3)
|
171
|
+
multi_json (~> 1.0)
|
172
|
+
rubyzip
|
173
|
+
spree_core (1.2.0)
|
174
|
+
activemerchant (= 1.28.0)
|
175
|
+
acts_as_list (= 0.1.4)
|
176
|
+
aws-sdk (~> 1.3.4)
|
177
|
+
cancan (= 1.6.7)
|
178
|
+
deface (>= 0.9.0)
|
179
|
+
ffaker (~> 1.12.0)
|
180
|
+
highline (= 1.6.11)
|
181
|
+
jquery-rails (~> 2.0)
|
182
|
+
kaminari (>= 0.13.0)
|
183
|
+
money (= 5.0.0)
|
184
|
+
nested_set (= 1.7.0)
|
185
|
+
paperclip (~> 2.7)
|
186
|
+
rails (~> 3.2.8)
|
187
|
+
ransack (~> 0.7.0)
|
188
|
+
select2-rails (= 0.0.9)
|
189
|
+
state_machine (= 1.1.2)
|
190
|
+
stringex (~> 1.3.2)
|
191
|
+
sprockets (2.1.3)
|
192
|
+
hike (~> 1.2)
|
193
|
+
rack (~> 1.0)
|
194
|
+
tilt (~> 1.1, != 1.3.0)
|
195
|
+
sqlite3 (1.3.6)
|
196
|
+
state_machine (1.1.2)
|
197
|
+
stringex (1.3.3)
|
198
|
+
thor (0.16.0)
|
199
|
+
tilt (1.3.3)
|
200
|
+
treetop (1.4.10)
|
201
|
+
polyglot
|
202
|
+
polyglot (>= 0.3.1)
|
203
|
+
tzinfo (0.3.33)
|
204
|
+
uuidtools (2.1.3)
|
205
|
+
xpath (0.1.4)
|
206
|
+
nokogiri (~> 1.3)
|
207
|
+
|
208
|
+
PLATFORMS
|
209
|
+
ruby
|
210
|
+
|
211
|
+
DEPENDENCIES
|
212
|
+
capybara (= 1.0.1)
|
213
|
+
debugger
|
214
|
+
factory_girl (~> 2.6.4)
|
215
|
+
ffaker
|
216
|
+
rspec-rails (~> 2.9)
|
217
|
+
spree_home_page_features!
|
218
|
+
sqlite3
|
@@ -10,12 +10,8 @@
|
|
10
10
|
|
11
11
|
.flexslider, .section-header {
|
12
12
|
height: 257px;
|
13
|
-
background-color: #bbb;
|
14
13
|
}
|
15
14
|
|
16
|
-
|
17
|
-
#wrapper .section-header, .flexslider .feature{
|
15
|
+
#wrapper .section-header, .flexslider .feature {
|
18
16
|
height: 257px;
|
19
|
-
border-bottom-style: solid;
|
20
|
-
border-bottom-width: 5px;
|
21
17
|
}
|
@@ -1,13 +1,16 @@
|
|
1
1
|
module Spree
|
2
2
|
class HomePageFeature < ActiveRecord::Base
|
3
3
|
self.table_name = 'home_page_features'
|
4
|
-
attr_accessible :body, :publish, :style
|
4
|
+
attr_accessible :title, :body, :publish, :style
|
5
5
|
|
6
|
-
|
6
|
+
validates :title,
|
7
|
+
presence: true,
|
8
|
+
length: { minimum: 1 }
|
9
|
+
validates :body,
|
10
|
+
presence: true,
|
11
|
+
length: { minimum: 1 }
|
7
12
|
|
8
|
-
|
9
|
-
self.style || ""
|
10
|
-
end
|
13
|
+
scope :published, where(publish: true)
|
11
14
|
|
12
15
|
class << self
|
13
16
|
def styles
|
@@ -19,8 +22,9 @@ module Spree
|
|
19
22
|
end
|
20
23
|
|
21
24
|
def styles_dropdown
|
22
|
-
styles.map {|s| [s.humanize, s]}
|
25
|
+
styles.map { |s| [ s.humanize, s ] }
|
23
26
|
end
|
24
27
|
end
|
28
|
+
|
25
29
|
end
|
26
|
-
end
|
30
|
+
end
|
@@ -1,16 +1,18 @@
|
|
1
|
+
<% scope = 'activerecord.attributes.spree/home_page_feature' -%>
|
2
|
+
|
1
3
|
<%= f.field_container :title do %>
|
2
|
-
<%= f.label :title, t(:title) %><br />
|
4
|
+
<%= f.label :title, t(:title, :scope => scope) %><br />
|
3
5
|
<%= f.text_field :title %>
|
4
6
|
<% end %>
|
5
7
|
<%= f.field_container :body do %>
|
6
|
-
<%= f.label :body, t(:body) %><br />
|
8
|
+
<%= f.label :body, t(:body, :scope => scope) %><br />
|
7
9
|
<%= f.text_area :body %>
|
8
10
|
<% end %>
|
9
11
|
<%= f.field_container :style do %>
|
10
|
-
<%= f.label :style, t(:style) %><br />
|
12
|
+
<%= f.label :style, t(:style, :scope => scope) %><br />
|
11
13
|
<%= f.select :style, Spree::HomePageFeature.styles_dropdown %>
|
12
14
|
<% end %>
|
13
15
|
<%= f.field_container :publish do %>
|
14
|
-
<%= f.label :publish, t(:
|
16
|
+
<%= f.label :publish, t(:published, :scope => scope) %><br />
|
15
17
|
<%= f.check_box :publish %>
|
16
18
|
<% end %>
|
@@ -1,9 +1,10 @@
|
|
1
|
+
<% scope = 'activerecord.attributes.spree/home_page_feature' -%>
|
1
2
|
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
3
|
|
3
4
|
<div class="toolbar" data-hook="toolbar">
|
4
5
|
<ul class="actions">
|
5
6
|
<li>
|
6
|
-
<p><%= button_link_to
|
7
|
+
<p><%= button_link_to t(:new_home_page_feature), spree.new_admin_home_page_feature_path, :icon => 'add', :id => 'admin_new_home_page_feature_link' %>
|
7
8
|
</p>
|
8
9
|
</li>
|
9
10
|
</ul>
|
@@ -15,9 +16,9 @@
|
|
15
16
|
<table class="index" id='listing_home_page_features'>
|
16
17
|
<thead>
|
17
18
|
<tr>
|
18
|
-
<th><%= t(:title) %></th>
|
19
|
-
<th><%= t(:style) %></th>
|
20
|
-
<th><%= t(:published) %></th>
|
19
|
+
<th><%= t(:title, :scope => scope) %></th>
|
20
|
+
<th><%= t(:style, :scope => scope) %></th>
|
21
|
+
<th><%= t(:published, :scope => scope) %></th>
|
21
22
|
<th></th>
|
22
23
|
</tr>
|
23
24
|
</thead>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="flexslider">
|
2
2
|
<ul class="slides">
|
3
3
|
<% Spree::HomePageFeature.published.each do |feature| %>
|
4
|
-
<li class="feature <%= feature.
|
4
|
+
<li class="feature <%= feature.style? ? feature.style : "" %>">
|
5
5
|
<div class="hero padded vertical-margin">
|
6
|
-
<
|
7
|
-
<div
|
6
|
+
<h4><%= feature.title %></h4>
|
7
|
+
<div><%= feature.body %></div>
|
8
8
|
</div>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
data/config/locales/en.yml
CHANGED
@@ -2,4 +2,16 @@
|
|
2
2
|
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
3
|
|
4
4
|
en:
|
5
|
-
|
5
|
+
new_home_page_feature: "New Feature"
|
6
|
+
home_page_feature: "Home Page Feature"
|
7
|
+
home_page_features: "Home Page Features"
|
8
|
+
listing_home_page_features: "Listing Home Page Features"
|
9
|
+
editing_home_page_feature: "Editing Home Page Feature"
|
10
|
+
|
11
|
+
activerecord:
|
12
|
+
attributes:
|
13
|
+
spree/home_page_feature:
|
14
|
+
title: "Title"
|
15
|
+
body: "Body"
|
16
|
+
style: "Style"
|
17
|
+
published: "Published"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
hu:
|
2
|
+
new_home_page_feature: "Új kiemelés"
|
3
|
+
home_page_feature: "Kiemelés"
|
4
|
+
home_page_features: "Kiemelések"
|
5
|
+
listing_home_page_features: "Kiemelések listázása"
|
6
|
+
editing_home_page_feature: "Kiemelés szerkesztése"
|
7
|
+
|
8
|
+
activerecord:
|
9
|
+
attributes:
|
10
|
+
spree/home_page_feature:
|
11
|
+
title: "Cím"
|
12
|
+
body: "Törzs"
|
13
|
+
style: "Stílus"
|
14
|
+
published: "Publikálva"
|
@@ -1,12 +1,14 @@
|
|
1
1
|
class CreateHomePageFeatures < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :home_page_features do |t|
|
4
|
-
t.string :title
|
5
|
-
t.text :body
|
4
|
+
t.string :title, :null => false
|
5
|
+
t.text :body, :null => false
|
6
6
|
t.string :style
|
7
|
-
t.boolean :publish
|
7
|
+
t.boolean :publish, :null => false, :default => false
|
8
8
|
|
9
9
|
t.timestamps
|
10
10
|
end
|
11
|
+
|
12
|
+
add_index :home_page_features, :publish
|
11
13
|
end
|
12
14
|
end
|
Binary file
|
@@ -1,37 +1,38 @@
|
|
1
1
|
/*
|
2
|
-
* jQuery FlexSlider v2.
|
2
|
+
* jQuery FlexSlider v2.1
|
3
3
|
* Copyright 2012 WooThemes
|
4
4
|
* Contributing Author: Tyler Smith
|
5
5
|
*/
|
6
|
-
;(function(d){d.flexslider=function(
|
7
|
-
c.selector.search(" "));a.slides=d(c.selector,a);a.container=d(a.containerSelector,a);a.count=a.slides.length;a.syncExists=0<d(c.sync).length;"slide"===c.animation&&(c.animation="swing");a.prop=l?"top":"marginLeft";a.args={};a.manualPause=!1;a
|
8
|
-
a.prop="-"+a.pfx+"-transform";
|
9
|
-
(1===d(a.containerSelector).length||c.multipleKeyboard)&&d(document).bind("keyup",function(b){b=b.keyCode;if(!a.animating&&(b===
|
10
|
-
a.play()}),0<c.initDelay?setTimeout(a.play,c.initDelay):a.play());
|
11
|
-
!b.hasClass("active")&&(a.direction=a.currentItem<g?"next":"prev",a.flexAnimate(g,c.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){a.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var b=1,g;a.controlNavScaffold=d('<ol class="'+e+"control-nav "+e+("thumbnails"===c.controlNav?"control-thumbs":"control-paging")+'"></ol>');if(1<a.pagingCount)for(var
|
12
|
-
'"/>':"<a>"+b+"</a>",a.controlNavScaffold.append("<li>"+g+"</li>"),b++;a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);f.controlNav.set();f.controlNav.active();a.controlNavScaffold.delegate("a, img",
|
13
|
-
setupManual:function(){a.controlNav=a.manualControls;f.controlNav.active();a.controlNav.live(
|
14
|
-
"active").eq(a.animatingTo).addClass(e+"active")},update:function(b,c){1<a.pagingCount&&"add"===b?a.controlNavScaffold.append(d("<li><a>"+a.count+"</a></li>")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();f.controlNav.set();1<a.pagingCount&&a.pagingCount!==a.controlNav.length?a.update(c,b):f.controlNav.active()}},directionNav:{setup:function(){var b=d('<ul class="'+
|
15
|
-
e+'next" href="#">'+c.nextText+"</a></li></ul>");a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+e+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+e+"direction-nav li a",a));f.directionNav.update();a.directionNav.bind(
|
16
|
-
e+"disabled";
|
17
|
-
a));f.pausePlay.update(c.slideshow?e+"pause":e+"play");a.pausePlay.bind(
|
18
|
-
d-b.touches[0].pageX;
|
19
|
-
c.pauseOnAction):a.flexAnimate(a.currentSlide,c.pauseOnAction,!0)}
|
20
|
-
a.cloneOffset)*
|
21
|
-
"setTotal")))},smoothHeight:function(b){if(!l||
|
22
|
-
a.atEnd=0===b||b===a.count-1,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
b
|
29
|
-
b
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
6
|
+
;(function(d){d.flexslider=function(i,k){var a=d(i),c=d.extend({},d.flexslider.defaults,k),e=c.namespace,p="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,t=p?"touchend":"click",l="vertical"===c.direction,m=c.reverse,h=0<c.itemWidth,r="fade"===c.animation,s=""!==c.asNavFor,f={};d.data(i,"flexslider",a);f={init:function(){a.animating=!1;a.currentSlide=c.startAt;a.animatingTo=a.currentSlide;a.atEnd=0===a.currentSlide||a.currentSlide===a.last;a.containerSelector=c.selector.substr(0,
|
7
|
+
c.selector.search(" "));a.slides=d(c.selector,a);a.container=d(a.containerSelector,a);a.count=a.slides.length;a.syncExists=0<d(c.sync).length;"slide"===c.animation&&(c.animation="swing");a.prop=l?"top":"marginLeft";a.args={};a.manualPause=!1;var b=a,g;if(g=!c.video)if(g=!r)if(g=c.useCSS)a:{g=document.createElement("div");var n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],e;for(e in n)if(void 0!==g.style[n[e]]){a.pfx=n[e].replace("Perspective","").toLowerCase();
|
8
|
+
a.prop="-"+a.pfx+"-transform";g=!0;break a}g=!1}b.transitions=g;""!==c.controlsContainer&&(a.controlsContainer=0<d(c.controlsContainer).length&&d(c.controlsContainer));""!==c.manualControls&&(a.manualControls=0<d(c.manualControls).length&&d(c.manualControls));c.randomize&&(a.slides.sort(function(){return Math.round(Math.random())-0.5}),a.container.empty().append(a.slides));a.doMath();s&&f.asNav.setup();a.setup("init");c.controlNav&&f.controlNav.setup();c.directionNav&&f.directionNav.setup();c.keyboard&&
|
9
|
+
(1===d(a.containerSelector).length||c.multipleKeyboard)&&d(document).bind("keyup",function(b){b=b.keyCode;if(!a.animating&&(39===b||37===b))b=39===b?a.getTarget("next"):37===b?a.getTarget("prev"):!1,a.flexAnimate(b,c.pauseOnAction)});c.mousewheel&&a.bind("mousewheel",function(b,g){b.preventDefault();var d=0>g?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(d,c.pauseOnAction)});c.pausePlay&&f.pausePlay.setup();c.slideshow&&(c.pauseOnHover&&a.hover(function(){!a.manualPlay&&!a.manualPause&&a.pause()},
|
10
|
+
function(){!a.manualPause&&!a.manualPlay&&a.play()}),0<c.initDelay?setTimeout(a.play,c.initDelay):a.play());p&&c.touch&&f.touch();(!r||r&&c.smoothHeight)&&d(window).bind("resize focus",f.resize);setTimeout(function(){c.start(a)},200)},asNav:{setup:function(){a.asNav=!0;a.animatingTo=Math.floor(a.currentSlide/a.move);a.currentItem=a.currentSlide;a.slides.removeClass(e+"active-slide").eq(a.currentItem).addClass(e+"active-slide");a.slides.click(function(b){b.preventDefault();var b=d(this),g=b.index();
|
11
|
+
!d(c.asNavFor).data("flexslider").animating&&!b.hasClass("active")&&(a.direction=a.currentItem<g?"next":"prev",a.flexAnimate(g,c.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){a.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var b=1,g;a.controlNavScaffold=d('<ol class="'+e+"control-nav "+e+("thumbnails"===c.controlNav?"control-thumbs":"control-paging")+'"></ol>');if(1<a.pagingCount)for(var n=0;n<a.pagingCount;n++)g="thumbnails"===c.controlNav?
|
12
|
+
'<img src="'+a.slides.eq(n).attr("data-thumb")+'"/>':"<a>"+b+"</a>",a.controlNavScaffold.append("<li>"+g+"</li>"),b++;a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);f.controlNav.set();f.controlNav.active();a.controlNavScaffold.delegate("a, img",t,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(a.direction=g>a.currentSlide?"next":"prev",a.flexAnimate(g,c.pauseOnAction))});p&&a.controlNavScaffold.delegate("a",
|
13
|
+
"click touchstart",function(a){a.preventDefault()})},setupManual:function(){a.controlNav=a.manualControls;f.controlNav.active();a.controlNav.live(t,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(g>a.currentSlide?a.direction="next":a.direction="prev",a.flexAnimate(g,c.pauseOnAction))});p&&a.controlNav.live("click touchstart",function(a){a.preventDefault()})},set:function(){a.controlNav=d("."+e+"control-nav li "+("thumbnails"===c.controlNav?"img":"a"),
|
14
|
+
a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(e+"active").eq(a.animatingTo).addClass(e+"active")},update:function(b,c){1<a.pagingCount&&"add"===b?a.controlNavScaffold.append(d("<li><a>"+a.count+"</a></li>")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();f.controlNav.set();1<a.pagingCount&&a.pagingCount!==a.controlNav.length?a.update(c,b):f.controlNav.active()}},directionNav:{setup:function(){var b=d('<ul class="'+
|
15
|
+
e+'direction-nav"><li><a class="'+e+'prev" href="#">'+c.prevText+'</a></li><li><a class="'+e+'next" href="#">'+c.nextText+"</a></li></ul>");a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+e+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+e+"direction-nav li a",a));f.directionNav.update();a.directionNav.bind(t,function(b){b.preventDefault();b=d(this).hasClass(e+"next")?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(b,c.pauseOnAction)});
|
16
|
+
p&&a.directionNav.bind("click touchstart",function(a){a.preventDefault()})},update:function(){var b=e+"disabled";1===a.pagingCount?a.directionNav.addClass(b):c.animationLoop?a.directionNav.removeClass(b):0===a.animatingTo?a.directionNav.removeClass(b).filter("."+e+"prev").addClass(b):a.animatingTo===a.last?a.directionNav.removeClass(b).filter("."+e+"next").addClass(b):a.directionNav.removeClass(b)}},pausePlay:{setup:function(){var b=d('<div class="'+e+'pauseplay"><a></a></div>');a.controlsContainer?
|
17
|
+
(a.controlsContainer.append(b),a.pausePlay=d("."+e+"pauseplay a",a.controlsContainer)):(a.append(b),a.pausePlay=d("."+e+"pauseplay a",a));f.pausePlay.update(c.slideshow?e+"pause":e+"play");a.pausePlay.bind(t,function(b){b.preventDefault();d(this).hasClass(e+"pause")?(a.manualPause=!0,a.manualPlay=!1,a.pause()):(a.manualPause=!1,a.manualPlay=!0,a.play())});p&&a.pausePlay.bind("click touchstart",function(a){a.preventDefault()})},update:function(b){"play"===b?a.pausePlay.removeClass(e+"pause").addClass(e+
|
18
|
+
"play").text(c.playText):a.pausePlay.removeClass(e+"play").addClass(e+"pause").text(c.pauseText)}},touch:function(){function b(b){j=l?d-b.touches[0].pageY:d-b.touches[0].pageX;p=l?Math.abs(j)<Math.abs(b.touches[0].pageX-e):Math.abs(j)<Math.abs(b.touches[0].pageY-e);if(!p||500<Number(new Date)-k)b.preventDefault(),!r&&a.transitions&&(c.animationLoop||(j/=0===a.currentSlide&&0>j||a.currentSlide===a.last&&0<j?Math.abs(j)/q+2:1),a.setProps(f+j,"setTouch"))}function g(){i.removeEventListener("touchmove",
|
19
|
+
b,!1);if(a.animatingTo===a.currentSlide&&!p&&null!==j){var h=m?-j:j,l=0<h?a.getTarget("next"):a.getTarget("prev");a.canAdvance(l)&&(550>Number(new Date)-k&&50<Math.abs(h)||Math.abs(h)>q/2)?a.flexAnimate(l,c.pauseOnAction):r||a.flexAnimate(a.currentSlide,c.pauseOnAction,!0)}i.removeEventListener("touchend",g,!1);f=j=e=d=null}var d,e,f,q,j,k,p=!1;i.addEventListener("touchstart",function(j){a.animating?j.preventDefault():1===j.touches.length&&(a.pause(),q=l?a.h:a.w,k=Number(new Date),f=h&&m&&a.animatingTo===
|
20
|
+
a.last?0:h&&m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:h&&a.currentSlide===a.last?a.limit:h?(a.itemW+c.itemMargin)*a.move*a.currentSlide:m?(a.last-a.currentSlide+a.cloneOffset)*q:(a.currentSlide+a.cloneOffset)*q,d=l?j.touches[0].pageY:j.touches[0].pageX,e=l?j.touches[0].pageX:j.touches[0].pageY,i.addEventListener("touchmove",b,!1),i.addEventListener("touchend",g,!1))},!1)},resize:function(){!a.animating&&a.is(":visible")&&(h||a.doMath(),r?f.smoothHeight():h?(a.slides.width(a.computedW),
|
21
|
+
a.update(a.pagingCount),a.setProps()):l?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(c.smoothHeight&&f.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,"setTotal")))},smoothHeight:function(b){if(!l||r){var c=r?a:a.viewport;b?c.animate({height:a.slides.eq(a.animatingTo).height()},b):c.height(a.slides.eq(a.animatingTo).height())}},sync:function(b){var g=d(c.sync).data("flexslider"),e=a.animatingTo;switch(b){case "animate":g.flexAnimate(e,c.pauseOnAction,!1,!0);break;case "play":!g.playing&&
|
22
|
+
!g.asNav&&g.play();break;case "pause":g.pause()}}};a.flexAnimate=function(b,g,n,i,k){s&&1===a.pagingCount&&(a.direction=a.currentItem<b?"next":"prev");if(!a.animating&&(a.canAdvance(b,k)||n)&&a.is(":visible")){if(s&&i)if(n=d(c.asNavFor).data("flexslider"),a.atEnd=0===b||b===a.count-1,n.flexAnimate(b,!0,!1,!0,k),a.direction=a.currentItem<b?"next":"prev",n.direction=a.direction,Math.ceil((b+1)/a.visible)-1!==a.currentSlide&&0!==b)a.currentItem=b,a.slides.removeClass(e+"active-slide").eq(b).addClass(e+
|
23
|
+
"active-slide"),b=Math.floor(b/a.visible);else return a.currentItem=b,a.slides.removeClass(e+"active-slide").eq(b).addClass(e+"active-slide"),!1;a.animating=!0;a.animatingTo=b;c.before(a);g&&a.pause();a.syncExists&&!k&&f.sync("animate");c.controlNav&&f.controlNav.active();h||a.slides.removeClass(e+"active-slide").eq(b).addClass(e+"active-slide");a.atEnd=0===b||b===a.last;c.directionNav&&f.directionNav.update();b===a.last&&(c.end(a),c.animationLoop||a.pause());if(r)p?(a.slides.eq(a.currentSlide).css({opacity:0}),
|
24
|
+
a.slides.eq(b).css({opacity:1}),a.animating=!1,a.currentSlide=a.animatingTo):(a.slides.eq(a.currentSlide).fadeOut(c.animationSpeed,c.easing),a.slides.eq(b).fadeIn(c.animationSpeed,c.easing,a.wrapup));else{var q=l?a.slides.filter(":first").height():a.computedW;h?(b=c.itemWidth>a.w?2*c.itemMargin:c.itemMargin,b=(a.itemW+b)*a.move*a.animatingTo,b=b>a.limit&&1!==a.visible?a.limit:b):b=0===a.currentSlide&&b===a.count-1&&c.animationLoop&&"next"!==a.direction?m?(a.count+a.cloneOffset)*q:0:a.currentSlide===
|
25
|
+
a.last&&0===b&&c.animationLoop&&"prev"!==a.direction?m?0:(a.count+1)*q:m?(a.count-1-b+a.cloneOffset)*q:(b+a.cloneOffset)*q;a.setProps(b,"",c.animationSpeed);if(a.transitions){if(!c.animationLoop||!a.atEnd)a.animating=!1,a.currentSlide=a.animatingTo;a.container.unbind("webkitTransitionEnd transitionend");a.container.bind("webkitTransitionEnd transitionend",function(){a.wrapup(q)})}else a.container.animate(a.args,c.animationSpeed,c.easing,function(){a.wrapup(q)})}c.smoothHeight&&f.smoothHeight(c.animationSpeed)}};
|
26
|
+
a.wrapup=function(b){!r&&!h&&(0===a.currentSlide&&a.animatingTo===a.last&&c.animationLoop?a.setProps(b,"jumpEnd"):a.currentSlide===a.last&&(0===a.animatingTo&&c.animationLoop)&&a.setProps(b,"jumpStart"));a.animating=!1;a.currentSlide=a.animatingTo;c.after(a)};a.animateSlides=function(){a.animating||a.flexAnimate(a.getTarget("next"))};a.pause=function(){clearInterval(a.animatedSlides);a.playing=!1;c.pausePlay&&f.pausePlay.update("play");a.syncExists&&f.sync("pause")};a.play=function(){a.animatedSlides=
|
27
|
+
setInterval(a.animateSlides,c.slideshowSpeed);a.playing=!0;c.pausePlay&&f.pausePlay.update("pause");a.syncExists&&f.sync("play")};a.canAdvance=function(b,g){var d=s?a.pagingCount-1:a.last;return g?!0:s&&a.currentItem===a.count-1&&0===b&&"prev"===a.direction?!0:s&&0===a.currentItem&&b===a.pagingCount-1&&"next"!==a.direction?!1:b===a.currentSlide&&!s?!1:c.animationLoop?!0:a.atEnd&&0===a.currentSlide&&b===d&&"next"!==a.direction?!1:a.atEnd&&a.currentSlide===d&&0===b&&"next"===a.direction?!1:!0};a.getTarget=
|
28
|
+
function(b){a.direction=b;return"next"===b?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1};a.setProps=function(b,g,d){var e,f=b?b:(a.itemW+c.itemMargin)*a.move*a.animatingTo;e=-1*function(){if(h)return"setTouch"===g?b:m&&a.animatingTo===a.last?0:m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:f;switch(g){case "setTotal":return m?(a.count-1-a.currentSlide+a.cloneOffset)*b:(a.currentSlide+a.cloneOffset)*b;case "setTouch":return b;
|
29
|
+
case "jumpEnd":return m?b:a.count*b;case "jumpStart":return m?a.count*b:b;default:return b}}()+"px";a.transitions&&(e=l?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",d=void 0!==d?d/1E3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",d));a.args[a.prop]=e;(a.transitions||void 0===d)&&a.container.css(a.args)};a.setup=function(b){if(r)a.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(p?a.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+
|
30
|
+
c.animationSpeed/1E3+"s ease"}).eq(a.currentSlide).css({opacity:1}):a.slides.eq(a.currentSlide).fadeIn(c.animationSpeed,c.easing)),c.smoothHeight&&f.smoothHeight();else{var g,n;"init"===b&&(a.viewport=d('<div class="'+e+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset=0,m&&(n=d.makeArray(a.slides).reverse(),a.slides=d(n),a.container.empty().append(a.slides)));c.animationLoop&&!h&&(a.cloneCount=2,a.cloneOffset=1,"init"!==
|
31
|
+
b&&a.container.find(".clone").remove(),a.container.append(a.slides.first().clone().addClass("clone")).prepend(a.slides.last().clone().addClass("clone")));a.newSlides=d(c.selector,a);g=m?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset;l&&!h?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){a.newSlides.css({display:"block"});a.doMath();a.viewport.height(a.h);a.setProps(g*a.h,"init")},"init"===b?100:0)):(a.container.width(200*
|
32
|
+
(a.count+a.cloneCount)+"%"),a.setProps(g*a.computedW,"init"),setTimeout(function(){a.doMath();a.newSlides.css({width:a.computedW,"float":"left",display:"block"});c.smoothHeight&&f.smoothHeight()},"init"===b?100:0))}h||a.slides.removeClass(e+"active-slide").eq(a.currentSlide).addClass(e+"active-slide")};a.doMath=function(){var b=a.slides.first(),d=c.itemMargin,e=c.minItems,f=c.maxItems;a.w=a.width();a.h=b.height();a.boxPadding=b.outerWidth()-b.width();h?(a.itemT=c.itemWidth+d,a.minW=e?e*a.itemT:a.w,
|
33
|
+
a.maxW=f?f*a.itemT:a.w,a.itemW=a.minW>a.w?(a.w-d*e)/e:a.maxW<a.w?(a.w-d*f)/f:c.itemWidth>a.w?a.w:c.itemWidth,a.visible=Math.floor(a.w/(a.itemW+d)),a.move=0<c.move&&c.move<a.visible?c.move:a.visible,a.pagingCount=Math.ceil((a.count-a.visible)/a.move+1),a.last=a.pagingCount-1,a.limit=1===a.pagingCount?0:c.itemWidth>a.w?(a.itemW+2*d)*a.count-a.w-d:(a.itemW+d)*a.count-a.w-d):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1);a.computedW=a.itemW-a.boxPadding};a.update=function(b,d){a.doMath();h||(b<
|
34
|
+
a.currentSlide?a.currentSlide+=1:b<=a.currentSlide&&0!==b&&(a.currentSlide-=1),a.animatingTo=a.currentSlide);if(c.controlNav&&!a.manualControls)if("add"===d&&!h||a.pagingCount>a.controlNav.length)f.controlNav.update("add");else if("remove"===d&&!h||a.pagingCount<a.controlNav.length)h&&a.currentSlide>a.last&&(a.currentSlide-=1,a.animatingTo-=1),f.controlNav.update("remove",a.last);c.directionNav&&f.directionNav.update()};a.addSlide=function(b,e){var f=d(b);a.count+=1;a.last=a.count-1;l&&m?void 0!==
|
35
|
+
e?a.slides.eq(a.count-e).after(f):a.container.prepend(f):void 0!==e?a.slides.eq(e).before(f):a.container.append(f);a.update(e,"add");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.added(a)};a.removeSlide=function(b){var e=isNaN(b)?a.slides.index(d(b)):b;a.count-=1;a.last=a.count-1;isNaN(b)?d(b,a.slides).remove():l&&m?a.slides.eq(a.last).remove():a.slides.eq(b).remove();a.doMath();a.update(e,"remove");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.removed(a)};f.init()};d.flexslider.defaults=
|
36
|
+
{namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7E3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",
|
37
|
+
itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};d.fn.flexslider=function(i){void 0===i&&(i={});if("object"===typeof i)return this.each(function(){var a=d(this),c=a.find(i.selector?i.selector:".slides > li");1===c.length?(c.fadeIn(400),i.start&&i.start(a)):void 0===a.data("flexslider")&&new d.flexslider(this,i)});var k=d(this).data("flexslider");switch(i){case "play":k.play();break;
|
38
|
+
case "pause":k.pause();break;case "next":k.flexAnimate(k.getTarget("next"),!0);break;case "prev":case "previous":k.flexAnimate(k.getTarget("prev"),!0);break;default:"number"===typeof i&&k.flexAnimate(i,!0)}}})(jQuery);
|
@@ -39,7 +39,7 @@ html[xmlns] .slides {display: block;}
|
|
39
39
|
|
40
40
|
/* FlexSlider Default Theme
|
41
41
|
*********************************/
|
42
|
-
.flexslider {margin: 0 0 60px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1;}
|
42
|
+
.flexslider {margin: 0 0 60px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.2); -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); -o-box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1;}
|
43
43
|
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
|
44
44
|
.loading .flex-viewport {max-height: 300px;}
|
45
45
|
.flexslider .slides {zoom: 1;}
|
@@ -48,13 +48,14 @@ html[xmlns] .slides {display: block;}
|
|
48
48
|
|
49
49
|
|
50
50
|
/* Direction Nav */
|
51
|
-
.flex-direction-nav
|
51
|
+
.flex-direction-nav {*height: 0;}
|
52
|
+
.flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
|
52
53
|
.flex-direction-nav .flex-next {background-position: 100% 0; right: -36px; }
|
53
54
|
.flex-direction-nav .flex-prev {left: -36px;}
|
54
55
|
.flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
|
55
56
|
.flexslider:hover .flex-prev {opacity: 0.8; left: 5px;}
|
56
57
|
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
|
57
|
-
.flex-direction-nav .disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}
|
58
|
+
.flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}
|
58
59
|
|
59
60
|
/* Control Nav */
|
60
61
|
.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
|
@@ -67,9 +68,9 @@ html[xmlns] .slides {display: block;}
|
|
67
68
|
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
|
68
69
|
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
|
69
70
|
.flex-control-thumbs img:hover {opacity: 1;}
|
70
|
-
.flex-control-thumbs .active {opacity: 1; cursor: default;}
|
71
|
+
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}
|
71
72
|
|
72
73
|
@media screen and (max-width: 860px) {
|
73
74
|
.flex-direction-nav .flex-prev {opacity: 1; left: 0;}
|
74
75
|
.flex-direction-nav .flex-next {opacity: 1; right: 0;}
|
75
|
-
}
|
76
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_home_page_features'
|
5
|
-
s.version = '1.2.
|
5
|
+
s.version = '1.2.2'
|
6
6
|
s.summary = 'Adds feature articles to the spree home page'
|
7
7
|
s.description = 'Allows you to edit articles in the spree admin, which will be displayed on your homepage'
|
8
8
|
s.required_ruby_version = '>= 1.9.2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_home_page_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-04 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
16
|
-
requirement: &
|
16
|
+
requirement: &70284200408480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70284200408480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capybara
|
27
|
-
requirement: &
|
27
|
+
requirement: &70284200408020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - =
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.1
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70284200408020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: factory_girl
|
38
|
-
requirement: &
|
38
|
+
requirement: &70284200407560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.6.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70284200407560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ffaker
|
49
|
-
requirement: &
|
49
|
+
requirement: &70284200407180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70284200407180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70284200406640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '2.9'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70284200406640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
|
-
requirement: &
|
71
|
+
requirement: &70284200406220 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70284200406220
|
80
80
|
description: Allows you to edit articles in the spree admin, which will be displayed
|
81
81
|
on your homepage
|
82
82
|
email: robertoles@me.com
|
@@ -87,12 +87,13 @@ files:
|
|
87
87
|
- .gitignore
|
88
88
|
- .rspec
|
89
89
|
- Gemfile
|
90
|
+
- Gemfile.lock
|
90
91
|
- LICENSE
|
91
92
|
- README.md
|
92
93
|
- Rakefile
|
93
94
|
- Versionfile
|
94
95
|
- app/assets/javascripts/admin/spree_home_page_features.js
|
95
|
-
- app/assets/javascripts/store/spree_home_page_features.js
|
96
|
+
- app/assets/javascripts/store/spree_home_page_features.js
|
96
97
|
- app/assets/stylesheets/admin/spree_home_page_features.css
|
97
98
|
- app/assets/stylesheets/store/spree_home_page_features.css
|
98
99
|
- app/controllers/spree/admin/home_page_features_controller.rb
|
@@ -106,8 +107,10 @@ files:
|
|
106
107
|
- app/views/spree/admin/home_page_features/new.html.erb
|
107
108
|
- app/views/spree/home_page_features/_features.erb
|
108
109
|
- config/locales/en.yml
|
110
|
+
- config/locales/hu.yml
|
109
111
|
- config/routes.rb
|
110
112
|
- db/migrate/20120711073050_create_home_page_features.rb
|
113
|
+
- lib/assets/images/bg_direction_nav.png
|
111
114
|
- lib/assets/javascripts/jquery.flexslider-min.js
|
112
115
|
- lib/assets/stylesheets/flexslider.css
|
113
116
|
- lib/generators/spree_home_page_features/install/install_generator.rb
|