opay 1.1.3 → 1.1.4
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.
- checksums.yaml +4 -4
- data/app/controllers/opay/payu_controller.rb +13 -0
- data/app/views/layouts/opay/application.html.erb +684 -1
- data/app/views/opay/payu/paygw.html.erb +26 -0
- data/config/routes.rb +7 -0
- data/lib/generators/opay/templates/opay_config.rb +1 -0
- data/lib/opay/configuration.rb +2 -0
- data/lib/opay/providers/payu.rb +5 -3
- data/lib/opay/version.rb +1 -1
- data/spec/dummy/app/controllers/orders_controller.rb +1 -1
- data/spec/dummy/app/views/orders/index.html.erb +3 -2
- data/spec/dummy/app/views/orders/show.html.erb +4 -17
- data/spec/dummy/config/application.rb +2 -0
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy/config/environments/production.rb +2 -0
- data/spec/dummy/config/environments/test.rb +2 -3
- data/spec/dummy/config/initializers/opay_config.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +4235 -0
- data/spec/dummy/log/test.log +4826 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1fc2b354620da55608ad4bf7a57b059e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2295cf953adec16b5ee9f1891269f5da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2df7c9201dfcf3bb8319bc763dc6325b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/313b925b52821f6184888a3b9ffbbb7c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/329e394cdca67727d6c4d9049c4452b0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/345bb47c39d786f4a694ce97f26477dc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4e48994f6ba87a03aa4e1ba20b79b19e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/77e4fd6f6032b81ff3c2e3f0ca72114b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b0b41d982e5eb5bd591410271650de30 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b11db81238a16c37a7191a913cd80492 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c66353c846781f8e9c594cbfac040854 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/caeefd4794fe08cd142ef7001a21eb38 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/{support → fixtures}/xml/error.xml.erb +0 -0
- data/spec/{support → fixtures}/xml/success.xml.erb +0 -0
- data/spec/lib/opay/helpers/payu_helper_spec.rb +11 -0
- data/spec/lib/opay/providers/payu_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -1
- metadata +48 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3f5bbf36524a9ca798c42f167d031a482c93e67
|
|
4
|
+
data.tar.gz: 0983c3441b5cbf10c16aef53339bb5e37c0ca676
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 120d023e9232ee6b223620247bc771193c6ac9560c185c64397e7cc473090492d0f40cafa8f174d165316f14ec03197086013176f4e15aef766b5371c96ebd37
|
|
7
|
+
data.tar.gz: f8ad2bc02ba81555513a527ace6d0d8fe032bb40d2175b4eed74ed931e2c9b94694f6e3343122792a116a1db5f51968425526ee2f9efdab25ad24966101bf80b
|
|
@@ -5,5 +5,18 @@ module Opay
|
|
|
5
5
|
def online
|
|
6
6
|
render text: Providers::Payu.process(params[:pos_id], params[:session_id], params[:ts], params[:sig]) ? 'OK' : ''
|
|
7
7
|
end
|
|
8
|
+
|
|
9
|
+
def paygw
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def correct_authorization
|
|
13
|
+
payment = Opay::Payment.where(session_id: params[:session_id]).first!
|
|
14
|
+
payment.payable.finish
|
|
15
|
+
redirect_to '/?success'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def wrong_authorizationt
|
|
19
|
+
redirect_to '/?error'
|
|
20
|
+
end
|
|
8
21
|
end
|
|
9
22
|
end
|
|
@@ -5,10 +5,693 @@
|
|
|
5
5
|
<%= stylesheet_link_tag "opay/application", :media => "all" %>
|
|
6
6
|
<%= javascript_include_tag "opay/application" %>
|
|
7
7
|
<%= csrf_meta_tags %>
|
|
8
|
+
|
|
9
|
+
<style>
|
|
10
|
+
.wraper {
|
|
11
|
+
width: 400px;
|
|
12
|
+
margin: 0 auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pull-left {float: left;}
|
|
16
|
+
.pull-right {float: right;}
|
|
17
|
+
|
|
18
|
+
a {text-decoration: none;}
|
|
19
|
+
|
|
20
|
+
/*!
|
|
21
|
+
* Bootstrap v2.3.2
|
|
22
|
+
*
|
|
23
|
+
* Copyright 2013 Twitter, Inc
|
|
24
|
+
* Licensed under the Apache License v2.0
|
|
25
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
+
*
|
|
27
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
|
28
|
+
*/
|
|
29
|
+
.clearfix {
|
|
30
|
+
*zoom: 1;
|
|
31
|
+
}
|
|
32
|
+
.clearfix:before,
|
|
33
|
+
.clearfix:after {
|
|
34
|
+
display: table;
|
|
35
|
+
content: "";
|
|
36
|
+
line-height: 0;
|
|
37
|
+
}
|
|
38
|
+
.clearfix:after {
|
|
39
|
+
clear: both;
|
|
40
|
+
}
|
|
41
|
+
.hide-text {
|
|
42
|
+
font: 0/0 a;
|
|
43
|
+
color: transparent;
|
|
44
|
+
text-shadow: none;
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
border: 0;
|
|
47
|
+
}
|
|
48
|
+
.input-block-level {
|
|
49
|
+
display: block;
|
|
50
|
+
width: 100%;
|
|
51
|
+
min-height: 30px;
|
|
52
|
+
-webkit-box-sizing: border-box;
|
|
53
|
+
-moz-box-sizing: border-box;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
}
|
|
56
|
+
table {
|
|
57
|
+
max-width: 100%;
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
border-collapse: collapse;
|
|
60
|
+
border-spacing: 0;
|
|
61
|
+
}
|
|
62
|
+
.table {
|
|
63
|
+
width: 100%;
|
|
64
|
+
margin-bottom: 20px;
|
|
65
|
+
}
|
|
66
|
+
.table th,
|
|
67
|
+
.table td {
|
|
68
|
+
padding: 8px;
|
|
69
|
+
line-height: 20px;
|
|
70
|
+
text-align: left;
|
|
71
|
+
vertical-align: top;
|
|
72
|
+
border-top: 1px solid #dddddd;
|
|
73
|
+
}
|
|
74
|
+
.table th {
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
}
|
|
77
|
+
.table thead th {
|
|
78
|
+
vertical-align: bottom;
|
|
79
|
+
}
|
|
80
|
+
.table caption + thead tr:first-child th,
|
|
81
|
+
.table caption + thead tr:first-child td,
|
|
82
|
+
.table colgroup + thead tr:first-child th,
|
|
83
|
+
.table colgroup + thead tr:first-child td,
|
|
84
|
+
.table thead:first-child tr:first-child th,
|
|
85
|
+
.table thead:first-child tr:first-child td {
|
|
86
|
+
border-top: 0;
|
|
87
|
+
}
|
|
88
|
+
.table tbody + tbody {
|
|
89
|
+
border-top: 2px solid #dddddd;
|
|
90
|
+
}
|
|
91
|
+
.table .table {
|
|
92
|
+
background-color: #ffffff;
|
|
93
|
+
}
|
|
94
|
+
.table-condensed th,
|
|
95
|
+
.table-condensed td {
|
|
96
|
+
padding: 4px 5px;
|
|
97
|
+
}
|
|
98
|
+
.table-bordered {
|
|
99
|
+
border: 1px solid #dddddd;
|
|
100
|
+
border-collapse: separate;
|
|
101
|
+
*border-collapse: collapse;
|
|
102
|
+
border-left: 0;
|
|
103
|
+
-webkit-border-radius: 4px;
|
|
104
|
+
-moz-border-radius: 4px;
|
|
105
|
+
border-radius: 4px;
|
|
106
|
+
}
|
|
107
|
+
.table-bordered th,
|
|
108
|
+
.table-bordered td {
|
|
109
|
+
border-left: 1px solid #dddddd;
|
|
110
|
+
}
|
|
111
|
+
.table-bordered caption + thead tr:first-child th,
|
|
112
|
+
.table-bordered caption + tbody tr:first-child th,
|
|
113
|
+
.table-bordered caption + tbody tr:first-child td,
|
|
114
|
+
.table-bordered colgroup + thead tr:first-child th,
|
|
115
|
+
.table-bordered colgroup + tbody tr:first-child th,
|
|
116
|
+
.table-bordered colgroup + tbody tr:first-child td,
|
|
117
|
+
.table-bordered thead:first-child tr:first-child th,
|
|
118
|
+
.table-bordered tbody:first-child tr:first-child th,
|
|
119
|
+
.table-bordered tbody:first-child tr:first-child td {
|
|
120
|
+
border-top: 0;
|
|
121
|
+
}
|
|
122
|
+
.table-bordered thead:first-child tr:first-child > th:first-child,
|
|
123
|
+
.table-bordered tbody:first-child tr:first-child > td:first-child,
|
|
124
|
+
.table-bordered tbody:first-child tr:first-child > th:first-child {
|
|
125
|
+
-webkit-border-top-left-radius: 4px;
|
|
126
|
+
-moz-border-radius-topleft: 4px;
|
|
127
|
+
border-top-left-radius: 4px;
|
|
128
|
+
}
|
|
129
|
+
.table-bordered thead:first-child tr:first-child > th:last-child,
|
|
130
|
+
.table-bordered tbody:first-child tr:first-child > td:last-child,
|
|
131
|
+
.table-bordered tbody:first-child tr:first-child > th:last-child {
|
|
132
|
+
-webkit-border-top-right-radius: 4px;
|
|
133
|
+
-moz-border-radius-topright: 4px;
|
|
134
|
+
border-top-right-radius: 4px;
|
|
135
|
+
}
|
|
136
|
+
.table-bordered thead:last-child tr:last-child > th:first-child,
|
|
137
|
+
.table-bordered tbody:last-child tr:last-child > td:first-child,
|
|
138
|
+
.table-bordered tbody:last-child tr:last-child > th:first-child,
|
|
139
|
+
.table-bordered tfoot:last-child tr:last-child > td:first-child,
|
|
140
|
+
.table-bordered tfoot:last-child tr:last-child > th:first-child {
|
|
141
|
+
-webkit-border-bottom-left-radius: 4px;
|
|
142
|
+
-moz-border-radius-bottomleft: 4px;
|
|
143
|
+
border-bottom-left-radius: 4px;
|
|
144
|
+
}
|
|
145
|
+
.table-bordered thead:last-child tr:last-child > th:last-child,
|
|
146
|
+
.table-bordered tbody:last-child tr:last-child > td:last-child,
|
|
147
|
+
.table-bordered tbody:last-child tr:last-child > th:last-child,
|
|
148
|
+
.table-bordered tfoot:last-child tr:last-child > td:last-child,
|
|
149
|
+
.table-bordered tfoot:last-child tr:last-child > th:last-child {
|
|
150
|
+
-webkit-border-bottom-right-radius: 4px;
|
|
151
|
+
-moz-border-radius-bottomright: 4px;
|
|
152
|
+
border-bottom-right-radius: 4px;
|
|
153
|
+
}
|
|
154
|
+
.table-bordered tfoot + tbody:last-child tr:last-child td:first-child {
|
|
155
|
+
-webkit-border-bottom-left-radius: 0;
|
|
156
|
+
-moz-border-radius-bottomleft: 0;
|
|
157
|
+
border-bottom-left-radius: 0;
|
|
158
|
+
}
|
|
159
|
+
.table-bordered tfoot + tbody:last-child tr:last-child td:last-child {
|
|
160
|
+
-webkit-border-bottom-right-radius: 0;
|
|
161
|
+
-moz-border-radius-bottomright: 0;
|
|
162
|
+
border-bottom-right-radius: 0;
|
|
163
|
+
}
|
|
164
|
+
.table-bordered caption + thead tr:first-child th:first-child,
|
|
165
|
+
.table-bordered caption + tbody tr:first-child td:first-child,
|
|
166
|
+
.table-bordered colgroup + thead tr:first-child th:first-child,
|
|
167
|
+
.table-bordered colgroup + tbody tr:first-child td:first-child {
|
|
168
|
+
-webkit-border-top-left-radius: 4px;
|
|
169
|
+
-moz-border-radius-topleft: 4px;
|
|
170
|
+
border-top-left-radius: 4px;
|
|
171
|
+
}
|
|
172
|
+
.table-bordered caption + thead tr:first-child th:last-child,
|
|
173
|
+
.table-bordered caption + tbody tr:first-child td:last-child,
|
|
174
|
+
.table-bordered colgroup + thead tr:first-child th:last-child,
|
|
175
|
+
.table-bordered colgroup + tbody tr:first-child td:last-child {
|
|
176
|
+
-webkit-border-top-right-radius: 4px;
|
|
177
|
+
-moz-border-radius-topright: 4px;
|
|
178
|
+
border-top-right-radius: 4px;
|
|
179
|
+
}
|
|
180
|
+
.table-striped tbody > tr:nth-child(odd) > td,
|
|
181
|
+
.table-striped tbody > tr:nth-child(odd) > th {
|
|
182
|
+
background-color: #f9f9f9;
|
|
183
|
+
}
|
|
184
|
+
.table-hover tbody tr:hover > td,
|
|
185
|
+
.table-hover tbody tr:hover > th {
|
|
186
|
+
background-color: #f5f5f5;
|
|
187
|
+
}
|
|
188
|
+
table td[class*="span"],
|
|
189
|
+
table th[class*="span"],
|
|
190
|
+
.row-fluid table td[class*="span"],
|
|
191
|
+
.row-fluid table th[class*="span"] {
|
|
192
|
+
display: table-cell;
|
|
193
|
+
float: none;
|
|
194
|
+
margin-left: 0;
|
|
195
|
+
}
|
|
196
|
+
.table td.span1,
|
|
197
|
+
.table th.span1 {
|
|
198
|
+
float: none;
|
|
199
|
+
width: 44px;
|
|
200
|
+
margin-left: 0;
|
|
201
|
+
}
|
|
202
|
+
.table td.span2,
|
|
203
|
+
.table th.span2 {
|
|
204
|
+
float: none;
|
|
205
|
+
width: 124px;
|
|
206
|
+
margin-left: 0;
|
|
207
|
+
}
|
|
208
|
+
.table td.span3,
|
|
209
|
+
.table th.span3 {
|
|
210
|
+
float: none;
|
|
211
|
+
width: 204px;
|
|
212
|
+
margin-left: 0;
|
|
213
|
+
}
|
|
214
|
+
.table td.span4,
|
|
215
|
+
.table th.span4 {
|
|
216
|
+
float: none;
|
|
217
|
+
width: 284px;
|
|
218
|
+
margin-left: 0;
|
|
219
|
+
}
|
|
220
|
+
.table td.span5,
|
|
221
|
+
.table th.span5 {
|
|
222
|
+
float: none;
|
|
223
|
+
width: 364px;
|
|
224
|
+
margin-left: 0;
|
|
225
|
+
}
|
|
226
|
+
.table td.span6,
|
|
227
|
+
.table th.span6 {
|
|
228
|
+
float: none;
|
|
229
|
+
width: 444px;
|
|
230
|
+
margin-left: 0;
|
|
231
|
+
}
|
|
232
|
+
.table td.span7,
|
|
233
|
+
.table th.span7 {
|
|
234
|
+
float: none;
|
|
235
|
+
width: 524px;
|
|
236
|
+
margin-left: 0;
|
|
237
|
+
}
|
|
238
|
+
.table td.span8,
|
|
239
|
+
.table th.span8 {
|
|
240
|
+
float: none;
|
|
241
|
+
width: 604px;
|
|
242
|
+
margin-left: 0;
|
|
243
|
+
}
|
|
244
|
+
.table td.span9,
|
|
245
|
+
.table th.span9 {
|
|
246
|
+
float: none;
|
|
247
|
+
width: 684px;
|
|
248
|
+
margin-left: 0;
|
|
249
|
+
}
|
|
250
|
+
.table td.span10,
|
|
251
|
+
.table th.span10 {
|
|
252
|
+
float: none;
|
|
253
|
+
width: 764px;
|
|
254
|
+
margin-left: 0;
|
|
255
|
+
}
|
|
256
|
+
.table td.span11,
|
|
257
|
+
.table th.span11 {
|
|
258
|
+
float: none;
|
|
259
|
+
width: 844px;
|
|
260
|
+
margin-left: 0;
|
|
261
|
+
}
|
|
262
|
+
.table td.span12,
|
|
263
|
+
.table th.span12 {
|
|
264
|
+
float: none;
|
|
265
|
+
width: 924px;
|
|
266
|
+
margin-left: 0;
|
|
267
|
+
}
|
|
268
|
+
.table tbody tr.success > td {
|
|
269
|
+
background-color: #dff0d8;
|
|
270
|
+
}
|
|
271
|
+
.table tbody tr.error > td {
|
|
272
|
+
background-color: #f2dede;
|
|
273
|
+
}
|
|
274
|
+
.table tbody tr.warning > td {
|
|
275
|
+
background-color: #fcf8e3;
|
|
276
|
+
}
|
|
277
|
+
.table tbody tr.info > td {
|
|
278
|
+
background-color: #d9edf7;
|
|
279
|
+
}
|
|
280
|
+
.table-hover tbody tr.success:hover > td {
|
|
281
|
+
background-color: #d0e9c6;
|
|
282
|
+
}
|
|
283
|
+
.table-hover tbody tr.error:hover > td {
|
|
284
|
+
background-color: #ebcccc;
|
|
285
|
+
}
|
|
286
|
+
.table-hover tbody tr.warning:hover > td {
|
|
287
|
+
background-color: #faf2cc;
|
|
288
|
+
}
|
|
289
|
+
.table-hover tbody tr.info:hover > td {
|
|
290
|
+
background-color: #c4e3f3;
|
|
291
|
+
}
|
|
292
|
+
.btn {
|
|
293
|
+
display: inline-block;
|
|
294
|
+
*display: inline;
|
|
295
|
+
/* IE7 inline-block hack */
|
|
296
|
+
|
|
297
|
+
*zoom: 1;
|
|
298
|
+
padding: 4px 12px;
|
|
299
|
+
margin-bottom: 0;
|
|
300
|
+
font-size: 14px;
|
|
301
|
+
line-height: 20px;
|
|
302
|
+
text-align: center;
|
|
303
|
+
vertical-align: middle;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
color: #333333;
|
|
306
|
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
|
307
|
+
background-color: #f5f5f5;
|
|
308
|
+
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
|
309
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
|
310
|
+
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
|
311
|
+
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
|
312
|
+
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
|
313
|
+
background-repeat: repeat-x;
|
|
314
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
|
315
|
+
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
|
316
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
317
|
+
*background-color: #e6e6e6;
|
|
318
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
319
|
+
|
|
320
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
321
|
+
border: 1px solid #cccccc;
|
|
322
|
+
*border: 0;
|
|
323
|
+
border-bottom-color: #b3b3b3;
|
|
324
|
+
-webkit-border-radius: 4px;
|
|
325
|
+
-moz-border-radius: 4px;
|
|
326
|
+
border-radius: 4px;
|
|
327
|
+
*margin-left: .3em;
|
|
328
|
+
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
|
329
|
+
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
|
330
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
|
331
|
+
}
|
|
332
|
+
.btn:hover,
|
|
333
|
+
.btn:focus,
|
|
334
|
+
.btn:active,
|
|
335
|
+
.btn.active,
|
|
336
|
+
.btn.disabled,
|
|
337
|
+
.btn[disabled] {
|
|
338
|
+
color: #333333;
|
|
339
|
+
background-color: #e6e6e6;
|
|
340
|
+
*background-color: #d9d9d9;
|
|
341
|
+
}
|
|
342
|
+
.btn:active,
|
|
343
|
+
.btn.active {
|
|
344
|
+
background-color: #cccccc \9;
|
|
345
|
+
}
|
|
346
|
+
.btn:first-child {
|
|
347
|
+
*margin-left: 0;
|
|
348
|
+
}
|
|
349
|
+
.btn:hover,
|
|
350
|
+
.btn:focus {
|
|
351
|
+
color: #333333;
|
|
352
|
+
text-decoration: none;
|
|
353
|
+
background-position: 0 -15px;
|
|
354
|
+
-webkit-transition: background-position 0.1s linear;
|
|
355
|
+
-moz-transition: background-position 0.1s linear;
|
|
356
|
+
-o-transition: background-position 0.1s linear;
|
|
357
|
+
transition: background-position 0.1s linear;
|
|
358
|
+
}
|
|
359
|
+
.btn:focus {
|
|
360
|
+
outline: thin dotted #333;
|
|
361
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
362
|
+
outline-offset: -2px;
|
|
363
|
+
}
|
|
364
|
+
.btn.active,
|
|
365
|
+
.btn:active {
|
|
366
|
+
background-image: none;
|
|
367
|
+
outline: 0;
|
|
368
|
+
-webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
|
369
|
+
-moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
|
370
|
+
box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
|
371
|
+
}
|
|
372
|
+
.btn.disabled,
|
|
373
|
+
.btn[disabled] {
|
|
374
|
+
cursor: default;
|
|
375
|
+
background-image: none;
|
|
376
|
+
opacity: 0.65;
|
|
377
|
+
filter: alpha(opacity=65);
|
|
378
|
+
-webkit-box-shadow: none;
|
|
379
|
+
-moz-box-shadow: none;
|
|
380
|
+
box-shadow: none;
|
|
381
|
+
}
|
|
382
|
+
.btn-large {
|
|
383
|
+
padding: 11px 19px;
|
|
384
|
+
font-size: 17.5px;
|
|
385
|
+
-webkit-border-radius: 6px;
|
|
386
|
+
-moz-border-radius: 6px;
|
|
387
|
+
border-radius: 6px;
|
|
388
|
+
}
|
|
389
|
+
.btn-large [class^="icon-"],
|
|
390
|
+
.btn-large [class*=" icon-"] {
|
|
391
|
+
margin-top: 4px;
|
|
392
|
+
}
|
|
393
|
+
.btn-small {
|
|
394
|
+
padding: 2px 10px;
|
|
395
|
+
font-size: 11.9px;
|
|
396
|
+
-webkit-border-radius: 3px;
|
|
397
|
+
-moz-border-radius: 3px;
|
|
398
|
+
border-radius: 3px;
|
|
399
|
+
}
|
|
400
|
+
.btn-small [class^="icon-"],
|
|
401
|
+
.btn-small [class*=" icon-"] {
|
|
402
|
+
margin-top: 0;
|
|
403
|
+
}
|
|
404
|
+
.btn-mini [class^="icon-"],
|
|
405
|
+
.btn-mini [class*=" icon-"] {
|
|
406
|
+
margin-top: -1px;
|
|
407
|
+
}
|
|
408
|
+
.btn-mini {
|
|
409
|
+
padding: 0 6px;
|
|
410
|
+
font-size: 10.5px;
|
|
411
|
+
-webkit-border-radius: 3px;
|
|
412
|
+
-moz-border-radius: 3px;
|
|
413
|
+
border-radius: 3px;
|
|
414
|
+
}
|
|
415
|
+
.btn-block {
|
|
416
|
+
display: block;
|
|
417
|
+
width: 100%;
|
|
418
|
+
padding-left: 0;
|
|
419
|
+
padding-right: 0;
|
|
420
|
+
-webkit-box-sizing: border-box;
|
|
421
|
+
-moz-box-sizing: border-box;
|
|
422
|
+
box-sizing: border-box;
|
|
423
|
+
}
|
|
424
|
+
.btn-block + .btn-block {
|
|
425
|
+
margin-top: 5px;
|
|
426
|
+
}
|
|
427
|
+
input[type="submit"].btn-block,
|
|
428
|
+
input[type="reset"].btn-block,
|
|
429
|
+
input[type="button"].btn-block {
|
|
430
|
+
width: 100%;
|
|
431
|
+
}
|
|
432
|
+
.btn-primary.active,
|
|
433
|
+
.btn-warning.active,
|
|
434
|
+
.btn-danger.active,
|
|
435
|
+
.btn-success.active,
|
|
436
|
+
.btn-info.active,
|
|
437
|
+
.btn-inverse.active {
|
|
438
|
+
color: rgba(255, 255, 255, 0.75);
|
|
439
|
+
}
|
|
440
|
+
.btn-primary {
|
|
441
|
+
color: #ffffff;
|
|
442
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
443
|
+
background-color: #006dcc;
|
|
444
|
+
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
|
445
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
|
446
|
+
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
|
447
|
+
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
|
448
|
+
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
|
449
|
+
background-repeat: repeat-x;
|
|
450
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
|
|
451
|
+
border-color: #0044cc #0044cc #002a80;
|
|
452
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
453
|
+
*background-color: #0044cc;
|
|
454
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
455
|
+
|
|
456
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
457
|
+
}
|
|
458
|
+
.btn-primary:hover,
|
|
459
|
+
.btn-primary:focus,
|
|
460
|
+
.btn-primary:active,
|
|
461
|
+
.btn-primary.active,
|
|
462
|
+
.btn-primary.disabled,
|
|
463
|
+
.btn-primary[disabled] {
|
|
464
|
+
color: #ffffff;
|
|
465
|
+
background-color: #0044cc;
|
|
466
|
+
*background-color: #003bb3;
|
|
467
|
+
}
|
|
468
|
+
.btn-primary:active,
|
|
469
|
+
.btn-primary.active {
|
|
470
|
+
background-color: #003399 \9;
|
|
471
|
+
}
|
|
472
|
+
.btn-warning {
|
|
473
|
+
color: #ffffff;
|
|
474
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
475
|
+
background-color: #faa732;
|
|
476
|
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
|
477
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
|
478
|
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
|
479
|
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
|
480
|
+
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
|
481
|
+
background-repeat: repeat-x;
|
|
482
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
|
483
|
+
border-color: #f89406 #f89406 #ad6704;
|
|
484
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
485
|
+
*background-color: #f89406;
|
|
486
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
487
|
+
|
|
488
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
489
|
+
}
|
|
490
|
+
.btn-warning:hover,
|
|
491
|
+
.btn-warning:focus,
|
|
492
|
+
.btn-warning:active,
|
|
493
|
+
.btn-warning.active,
|
|
494
|
+
.btn-warning.disabled,
|
|
495
|
+
.btn-warning[disabled] {
|
|
496
|
+
color: #ffffff;
|
|
497
|
+
background-color: #f89406;
|
|
498
|
+
*background-color: #df8505;
|
|
499
|
+
}
|
|
500
|
+
.btn-warning:active,
|
|
501
|
+
.btn-warning.active {
|
|
502
|
+
background-color: #c67605 \9;
|
|
503
|
+
}
|
|
504
|
+
.btn-danger {
|
|
505
|
+
color: #ffffff;
|
|
506
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
507
|
+
background-color: #da4f49;
|
|
508
|
+
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
|
509
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
|
510
|
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
|
511
|
+
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
|
512
|
+
background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
|
|
513
|
+
background-repeat: repeat-x;
|
|
514
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
|
|
515
|
+
border-color: #bd362f #bd362f #802420;
|
|
516
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
517
|
+
*background-color: #bd362f;
|
|
518
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
519
|
+
|
|
520
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
521
|
+
}
|
|
522
|
+
.btn-danger:hover,
|
|
523
|
+
.btn-danger:focus,
|
|
524
|
+
.btn-danger:active,
|
|
525
|
+
.btn-danger.active,
|
|
526
|
+
.btn-danger.disabled,
|
|
527
|
+
.btn-danger[disabled] {
|
|
528
|
+
color: #ffffff;
|
|
529
|
+
background-color: #bd362f;
|
|
530
|
+
*background-color: #a9302a;
|
|
531
|
+
}
|
|
532
|
+
.btn-danger:active,
|
|
533
|
+
.btn-danger.active {
|
|
534
|
+
background-color: #942a25 \9;
|
|
535
|
+
}
|
|
536
|
+
.btn-success {
|
|
537
|
+
color: #ffffff;
|
|
538
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
539
|
+
background-color: #5bb75b;
|
|
540
|
+
background-image: -moz-linear-gradient(top, #62c462, #51a351);
|
|
541
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
|
|
542
|
+
background-image: -webkit-linear-gradient(top, #62c462, #51a351);
|
|
543
|
+
background-image: -o-linear-gradient(top, #62c462, #51a351);
|
|
544
|
+
background-image: linear-gradient(to bottom, #62c462, #51a351);
|
|
545
|
+
background-repeat: repeat-x;
|
|
546
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
|
|
547
|
+
border-color: #51a351 #51a351 #387038;
|
|
548
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
549
|
+
*background-color: #51a351;
|
|
550
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
551
|
+
|
|
552
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
553
|
+
}
|
|
554
|
+
.btn-success:hover,
|
|
555
|
+
.btn-success:focus,
|
|
556
|
+
.btn-success:active,
|
|
557
|
+
.btn-success.active,
|
|
558
|
+
.btn-success.disabled,
|
|
559
|
+
.btn-success[disabled] {
|
|
560
|
+
color: #ffffff;
|
|
561
|
+
background-color: #51a351;
|
|
562
|
+
*background-color: #499249;
|
|
563
|
+
}
|
|
564
|
+
.btn-success:active,
|
|
565
|
+
.btn-success.active {
|
|
566
|
+
background-color: #408140 \9;
|
|
567
|
+
}
|
|
568
|
+
.btn-info {
|
|
569
|
+
color: #ffffff;
|
|
570
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
571
|
+
background-color: #49afcd;
|
|
572
|
+
background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
|
|
573
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
|
|
574
|
+
background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
|
|
575
|
+
background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
|
|
576
|
+
background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);
|
|
577
|
+
background-repeat: repeat-x;
|
|
578
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
|
|
579
|
+
border-color: #2f96b4 #2f96b4 #1f6377;
|
|
580
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
581
|
+
*background-color: #2f96b4;
|
|
582
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
583
|
+
|
|
584
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
585
|
+
}
|
|
586
|
+
.btn-info:hover,
|
|
587
|
+
.btn-info:focus,
|
|
588
|
+
.btn-info:active,
|
|
589
|
+
.btn-info.active,
|
|
590
|
+
.btn-info.disabled,
|
|
591
|
+
.btn-info[disabled] {
|
|
592
|
+
color: #ffffff;
|
|
593
|
+
background-color: #2f96b4;
|
|
594
|
+
*background-color: #2a85a0;
|
|
595
|
+
}
|
|
596
|
+
.btn-info:active,
|
|
597
|
+
.btn-info.active {
|
|
598
|
+
background-color: #24748c \9;
|
|
599
|
+
}
|
|
600
|
+
.btn-inverse {
|
|
601
|
+
color: #ffffff;
|
|
602
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
603
|
+
background-color: #363636;
|
|
604
|
+
background-image: -moz-linear-gradient(top, #444444, #222222);
|
|
605
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
|
|
606
|
+
background-image: -webkit-linear-gradient(top, #444444, #222222);
|
|
607
|
+
background-image: -o-linear-gradient(top, #444444, #222222);
|
|
608
|
+
background-image: linear-gradient(to bottom, #444444, #222222);
|
|
609
|
+
background-repeat: repeat-x;
|
|
610
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
|
|
611
|
+
border-color: #222222 #222222 #000000;
|
|
612
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
613
|
+
*background-color: #222222;
|
|
614
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
|
615
|
+
|
|
616
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
|
617
|
+
}
|
|
618
|
+
.btn-inverse:hover,
|
|
619
|
+
.btn-inverse:focus,
|
|
620
|
+
.btn-inverse:active,
|
|
621
|
+
.btn-inverse.active,
|
|
622
|
+
.btn-inverse.disabled,
|
|
623
|
+
.btn-inverse[disabled] {
|
|
624
|
+
color: #ffffff;
|
|
625
|
+
background-color: #222222;
|
|
626
|
+
*background-color: #151515;
|
|
627
|
+
}
|
|
628
|
+
.btn-inverse:active,
|
|
629
|
+
.btn-inverse.active {
|
|
630
|
+
background-color: #080808 \9;
|
|
631
|
+
}
|
|
632
|
+
button.btn,
|
|
633
|
+
input[type="submit"].btn {
|
|
634
|
+
*padding-top: 3px;
|
|
635
|
+
*padding-bottom: 3px;
|
|
636
|
+
}
|
|
637
|
+
button.btn::-moz-focus-inner,
|
|
638
|
+
input[type="submit"].btn::-moz-focus-inner {
|
|
639
|
+
padding: 0;
|
|
640
|
+
border: 0;
|
|
641
|
+
}
|
|
642
|
+
button.btn.btn-large,
|
|
643
|
+
input[type="submit"].btn.btn-large {
|
|
644
|
+
*padding-top: 7px;
|
|
645
|
+
*padding-bottom: 7px;
|
|
646
|
+
}
|
|
647
|
+
button.btn.btn-small,
|
|
648
|
+
input[type="submit"].btn.btn-small {
|
|
649
|
+
*padding-top: 3px;
|
|
650
|
+
*padding-bottom: 3px;
|
|
651
|
+
}
|
|
652
|
+
button.btn.btn-mini,
|
|
653
|
+
input[type="submit"].btn.btn-mini {
|
|
654
|
+
*padding-top: 1px;
|
|
655
|
+
*padding-bottom: 1px;
|
|
656
|
+
}
|
|
657
|
+
.btn-link,
|
|
658
|
+
.btn-link:active,
|
|
659
|
+
.btn-link[disabled] {
|
|
660
|
+
background-color: transparent;
|
|
661
|
+
background-image: none;
|
|
662
|
+
-webkit-box-shadow: none;
|
|
663
|
+
-moz-box-shadow: none;
|
|
664
|
+
box-shadow: none;
|
|
665
|
+
}
|
|
666
|
+
.btn-link {
|
|
667
|
+
border-color: transparent;
|
|
668
|
+
cursor: pointer;
|
|
669
|
+
color: #0088cc;
|
|
670
|
+
-webkit-border-radius: 0;
|
|
671
|
+
-moz-border-radius: 0;
|
|
672
|
+
border-radius: 0;
|
|
673
|
+
}
|
|
674
|
+
.btn-link:hover,
|
|
675
|
+
.btn-link:focus {
|
|
676
|
+
color: #005580;
|
|
677
|
+
text-decoration: underline;
|
|
678
|
+
background-color: transparent;
|
|
679
|
+
}
|
|
680
|
+
.btn-link[disabled]:hover,
|
|
681
|
+
.btn-link[disabled]:focus {
|
|
682
|
+
color: #333333;
|
|
683
|
+
text-decoration: none;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
</style>
|
|
687
|
+
|
|
688
|
+
</head>
|
|
8
689
|
</head>
|
|
9
690
|
<body>
|
|
10
691
|
|
|
11
|
-
|
|
692
|
+
<div class="wraper">
|
|
693
|
+
<%= yield %>
|
|
694
|
+
</div>
|
|
12
695
|
|
|
13
696
|
</body>
|
|
14
697
|
</html>
|