social_stream-base 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/activities.js.erb +12 -8
- data/app/assets/stylesheets/activities.css +6 -8
- data/app/assets/stylesheets/home.css +1 -1
- data/app/assets/stylesheets/relation_customs.css +1 -1
- data/app/helpers/notifications_helper.rb +1 -1
- data/app/models/activity.rb +7 -1
- data/app/models/actor.rb +1 -1
- data/app/models/contact.rb +6 -3
- data/app/models/relation/custom.rb +2 -0
- data/app/models/user.rb +4 -1
- data/app/views/activities/_new.html.erb +2 -12
- data/app/views/posts/create.js.erb +0 -2
- data/config/locales/en.yml +7 -1
- data/lib/social_stream/base/version.rb +1 -1
- data/lib/social_stream/toolbar_config.rb +1 -1
- data/social_stream-base.gemspec +1 -1
- data/spec/controllers/relation_customs_controller_spec.rb +1 -1
- data/spec/models/contact_spec.rb +10 -0
- data/spec/models/user_spec.rb +8 -0
- data/vendor/assets/javascripts/chosen.jquery.js +755 -0
- data/vendor/assets/stylesheets/chosen-sprite.png +0 -0
- data/vendor/assets/stylesheets/chosen.css +317 -0
- metadata +10 -7
Binary file
|
@@ -0,0 +1,317 @@
|
|
1
|
+
div.chzn-container {
|
2
|
+
font-size: 13px;
|
3
|
+
position: relative;
|
4
|
+
}
|
5
|
+
|
6
|
+
div.chzn-container input {
|
7
|
+
background: #fff;
|
8
|
+
background: -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
9
|
+
background: -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
10
|
+
background: -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
11
|
+
border: 1px solid #aaa;
|
12
|
+
font-family: sans-serif;
|
13
|
+
font-size: 1em;
|
14
|
+
margin: 0px;
|
15
|
+
padding: 4px 5px;
|
16
|
+
outline: none;
|
17
|
+
-moz-border-radius: 3px;
|
18
|
+
-webkit-border-radius: 3px;
|
19
|
+
-o-border-radius: 3px;
|
20
|
+
-ms-border-radius: 3px;
|
21
|
+
-khtml-border-radius: 3px;
|
22
|
+
border-radius: 3px;
|
23
|
+
}
|
24
|
+
div.chzn-container textarea:focus {
|
25
|
+
border-color: #058cf5;
|
26
|
+
-moz-box-shadow: 0px 0px 3px #aaa;
|
27
|
+
-webkit-box-shadow: 0px 0px 3px #aaa;
|
28
|
+
box-shadow: 0px 0px 3px #aaa;
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
div.chzn-container div.chzn-drop {
|
33
|
+
background: #FFF;
|
34
|
+
border: 1px solid #aaa;
|
35
|
+
border-width: 0 1px 1px;
|
36
|
+
left: 0;
|
37
|
+
position: absolute;
|
38
|
+
top: 29px;
|
39
|
+
-webkit-box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);
|
40
|
+
-moz-box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);
|
41
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
|
42
|
+
z-index: 20;
|
43
|
+
}
|
44
|
+
div.chzn-container-single div.chzn-drop {
|
45
|
+
-moz-border-radius: 0 0 4px 4px;
|
46
|
+
-webkit-border-radius: 0 0 4px 4px;
|
47
|
+
-o-border-radius: 0 0 4px 4px;
|
48
|
+
-ms-border-radius: 0 0 4px 4px;
|
49
|
+
-khtml-border-radius: 0 0 4px 4px;
|
50
|
+
border-radius: 0 0 4px 4px;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/* SINGLE */
|
55
|
+
div.chzn-container a.chzn-single {
|
56
|
+
background: #FFF;
|
57
|
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
58
|
+
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
59
|
+
background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 50%);
|
60
|
+
border: 1px solid #aaa;
|
61
|
+
display: block;
|
62
|
+
overflow: hidden;
|
63
|
+
-moz-border-radius: 4px;
|
64
|
+
-webkit-border-radius: 4px;
|
65
|
+
-o-border-radius: 4px;
|
66
|
+
-ms-border-radius: 4px;
|
67
|
+
-khtml-border-radius: 4px;
|
68
|
+
border-radius: 4px;
|
69
|
+
height: 25px;
|
70
|
+
color: #444;
|
71
|
+
line-height: 26px;
|
72
|
+
padding: 0px 0px 0px 8px;
|
73
|
+
position: relative;
|
74
|
+
text-decoration: none;
|
75
|
+
z-index: 19;
|
76
|
+
white-space: nowrap;
|
77
|
+
}
|
78
|
+
div.chzn-container a.chzn-single span {
|
79
|
+
display: block;
|
80
|
+
margin-right: 26px;
|
81
|
+
overflow: hidden;
|
82
|
+
text-overflow: ellipsis;
|
83
|
+
}
|
84
|
+
div.chzn-container a.chzn-single div {
|
85
|
+
-moz-border-radius-topright: 4px;
|
86
|
+
-webkit-border-top-right-radius: 4px;
|
87
|
+
-o-border-top-right-radius: 4px;
|
88
|
+
-ms-border-top-right-radius: 4px;
|
89
|
+
-khtml-border-top-right-radius: 4px;
|
90
|
+
border-top-right-radius: 4px;
|
91
|
+
-moz-border-radius-bottomright: 4px;
|
92
|
+
-webkit-border-bottom-right-radius: 4px;
|
93
|
+
-o-border-bottom-right-radius: 4px;
|
94
|
+
-ms-border-bottom-right-radius: 4px;
|
95
|
+
-khtml-border-bottom-right-radius: 4px;
|
96
|
+
border-bottom-right-radius: 4px;
|
97
|
+
background: #ccc;
|
98
|
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
|
99
|
+
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
100
|
+
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
|
101
|
+
border-left: 1px solid #aaa;
|
102
|
+
display: block;
|
103
|
+
height: 100%;
|
104
|
+
position: absolute;
|
105
|
+
right: 0;
|
106
|
+
top: 0;
|
107
|
+
width: 18px;
|
108
|
+
}
|
109
|
+
div.chzn-container a.chzn-single div b {
|
110
|
+
background: url('chosen-sprite.png') no-repeat 0 1px;
|
111
|
+
display: block;
|
112
|
+
width: 100%;
|
113
|
+
height: 100%;
|
114
|
+
}
|
115
|
+
div.chzn-container div.chzn-search {
|
116
|
+
padding: 3px 4px;
|
117
|
+
margin: 0px;
|
118
|
+
white-space: nowrap;
|
119
|
+
}
|
120
|
+
div.chzn-container div.chzn-search input {
|
121
|
+
background: url('chosen-sprite.png') no-repeat 97% -35px, #ffffff;
|
122
|
+
background: url('chosen-sprite.png') no-repeat 97% -35px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
123
|
+
background: url('chosen-sprite.png') no-repeat 97% -35px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
124
|
+
background: url('chosen-sprite.png') no-repeat 97% -35px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
125
|
+
-moz-border-radius: 0px;
|
126
|
+
-webkit-border-radius: 0px;
|
127
|
+
-o-border-radius: 0px;
|
128
|
+
-ms-border-radius: 0px;
|
129
|
+
-khtml-border-radius: 0px;
|
130
|
+
border-radius: 0px;
|
131
|
+
margin: 1px 0;
|
132
|
+
outline: 0;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
/* Multi */
|
137
|
+
div.chzn-container ul.chzn-choices {
|
138
|
+
background: #fff;
|
139
|
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
140
|
+
background-image: -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
141
|
+
background-image: -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
142
|
+
margin: 0;
|
143
|
+
cursor: text;
|
144
|
+
border: 1px solid #aaa;
|
145
|
+
overflow: hidden;
|
146
|
+
height: auto !important;
|
147
|
+
height: 1%;
|
148
|
+
padding: 0;
|
149
|
+
position: relative;
|
150
|
+
}
|
151
|
+
div.chzn-container ul.chzn-choices:focus {
|
152
|
+
border-color: #058cf5;
|
153
|
+
-moz-box-shadow: 0px 0px 5px #999;
|
154
|
+
-webkit-box-shadow: 0px 0px 5px #999;
|
155
|
+
box-shadow: 0px 0px 5px #999;
|
156
|
+
}
|
157
|
+
div.chzn-container ul.chzn-choices li {
|
158
|
+
float: left;
|
159
|
+
list-style-type: none;
|
160
|
+
margin: 0px;
|
161
|
+
}
|
162
|
+
div.chzn-container ul.chzn-choices li.search-field {
|
163
|
+
margin: 0px;
|
164
|
+
white-space: nowrap;
|
165
|
+
padding: 0px;
|
166
|
+
}
|
167
|
+
div.chzn-container ul.chzn-choices li.search-field input {
|
168
|
+
color: #666;
|
169
|
+
background: transparent !important;
|
170
|
+
border: 0px !important;
|
171
|
+
padding: 5px;
|
172
|
+
margin: 1px 0;
|
173
|
+
outline: 0;
|
174
|
+
-webkit-box-shadow: none;
|
175
|
+
-moz-box-shadow: none;
|
176
|
+
box-shadow: none;
|
177
|
+
}
|
178
|
+
div.chzn-container ul.chzn-choices li.search-field input.default {
|
179
|
+
color: #999;
|
180
|
+
}
|
181
|
+
div.chzn-container ul.chzn-choices li.search-choice {
|
182
|
+
-moz-border-radius: 3px;
|
183
|
+
-webkit-border-radius: 3px;
|
184
|
+
border-radius: 3px;
|
185
|
+
background: #e4e4e4;
|
186
|
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e4e4e4), color-stop(0.7, #eeeeee));
|
187
|
+
background-image: -moz-linear-gradient(center bottom, #e4e4e4 0%, #eeeeee 70%);
|
188
|
+
background-image: -o-linear-gradient(bottom, #e4e4e4 0%, #eeeeee 70%);
|
189
|
+
color: #333;
|
190
|
+
border: 1px solid #b4b4b4;
|
191
|
+
line-height: 13px;
|
192
|
+
padding: 3px 19px 3px 6px;
|
193
|
+
position: relative;
|
194
|
+
margin: 3px 0px 3px 5px;
|
195
|
+
}
|
196
|
+
div.chzn-container ul.chzn-choices li.search-choice span {
|
197
|
+
cursor: default;
|
198
|
+
}
|
199
|
+
div.chzn-container ul.chzn-choices li.search-choice.search-choice-focus {
|
200
|
+
background: #d4d4d4;
|
201
|
+
}
|
202
|
+
div.chzn-container ul.chzn-choices li.search-choice a.search-choice-close {
|
203
|
+
position: absolute;
|
204
|
+
right: 5px;
|
205
|
+
top: 6px;
|
206
|
+
display: block;
|
207
|
+
width: 8px;
|
208
|
+
height: 9px;
|
209
|
+
font-size: 1px;
|
210
|
+
background: url(chosen-sprite.png) right top no-repeat;
|
211
|
+
}
|
212
|
+
div.chzn-container ul.chzn-choices li.search-choice a.search-choice-close:hover {
|
213
|
+
background-position: right -9px;
|
214
|
+
}
|
215
|
+
div.chzn-container ul.chzn-choices li.search-choice.search-choice-focus a.search-choice-close {
|
216
|
+
background-position: right -9px;
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
/* Results */
|
221
|
+
div.chzn-container ul.chzn-results {
|
222
|
+
margin: 0 4px 4px 0;
|
223
|
+
max-height: 190px;
|
224
|
+
padding: 0 0 0 4px;
|
225
|
+
position: relative;
|
226
|
+
overflow-x: hidden;
|
227
|
+
overflow-y: auto;
|
228
|
+
z-index: 20;
|
229
|
+
}
|
230
|
+
div.chzn-container-multi ul.chzn-results {
|
231
|
+
margin: -1px 0 0;
|
232
|
+
padding: 0;
|
233
|
+
}
|
234
|
+
div.chzn-container-multi ul.chzn-results li {
|
235
|
+
border-left: 0px !important;
|
236
|
+
border-right: 0px !important;
|
237
|
+
}
|
238
|
+
div.chzn-container ul.chzn-results li {
|
239
|
+
line-height: 80%;
|
240
|
+
padding: 7px 7px 8px;
|
241
|
+
z-index: 22;
|
242
|
+
margin: 0;
|
243
|
+
list-style-type: none;
|
244
|
+
}
|
245
|
+
div.chzn-container ul.chzn-results li.active-result {
|
246
|
+
cursor: pointer;
|
247
|
+
}
|
248
|
+
div.chzn-container ul.chzn-results li em {
|
249
|
+
font-style: normal;
|
250
|
+
background: #FEFFDC;
|
251
|
+
}
|
252
|
+
div.chzn-container ul.chzn-results li.highlighted {
|
253
|
+
background: #3875d7;
|
254
|
+
color: #fff;
|
255
|
+
}
|
256
|
+
div.chzn-container ul.chzn-results li.highlighted em {
|
257
|
+
background: transparent;
|
258
|
+
}
|
259
|
+
div.chzn-container ul.chzn-results li.no-results {
|
260
|
+
background: #F4F4F4;
|
261
|
+
}
|
262
|
+
div.chzn-container ul.chzn-results li.group-result {
|
263
|
+
cursor: default;
|
264
|
+
color: #999;
|
265
|
+
font-weight: bold;
|
266
|
+
}
|
267
|
+
div.chzn-container ul.chzn-results li.group-option {
|
268
|
+
padding-left: 20px;
|
269
|
+
}
|
270
|
+
|
271
|
+
div.chzn-container-multi div.chzn-drop li.result-selected {
|
272
|
+
display: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
/* Active */
|
278
|
+
div.chzn-container-active a.chzn-single {
|
279
|
+
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
280
|
+
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
281
|
+
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
282
|
+
border: 1px solid #5897fb;
|
283
|
+
}
|
284
|
+
div.chzn-container-active a.chzn-single-with-drop {
|
285
|
+
border: 1px solid #aaa;
|
286
|
+
border-width: 1px 1px 1px;
|
287
|
+
-moz-box-shadow: 0px 1px 0px #FFF inset;
|
288
|
+
-webkit-box-shadow: 0px 1px 0px #FFF inset;
|
289
|
+
box-shadow: 0px 1px 0px #FFF inset;
|
290
|
+
background: #EEE;
|
291
|
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
|
292
|
+
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
293
|
+
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
|
294
|
+
-webkit-border-bottom-left-radius: 0px;
|
295
|
+
-webkit-border-bottom-right-radius: 0px;
|
296
|
+
-moz-border-radius-bottomleft: 0px;
|
297
|
+
-moz-border-radius-bottomright: 0px;
|
298
|
+
border-bottom-left-radius: 0px;
|
299
|
+
border-bottom-right-radius: 0px;
|
300
|
+
}
|
301
|
+
div.chzn-container-active a.chzn-single-with-drop div {
|
302
|
+
background: transparent;
|
303
|
+
border-left: none;
|
304
|
+
}
|
305
|
+
div.chzn-container-active a.chzn-single-with-drop div b {
|
306
|
+
background-position: -18px 1px;
|
307
|
+
}
|
308
|
+
div.chzn-container-active ul.chzn-choices {
|
309
|
+
z-index: 21;
|
310
|
+
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
311
|
+
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
312
|
+
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
313
|
+
border: 1px solid #5897fb;
|
314
|
+
}
|
315
|
+
div.chzn-container-active ul.chzn-choices input {
|
316
|
+
color: #111 !important;
|
317
|
+
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 7
|
10
|
+
version: 0.7.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GING - DIT - UPM
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-07-
|
19
|
+
date: 2011-07-26 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -315,14 +315,14 @@ dependencies:
|
|
315
315
|
requirements:
|
316
316
|
- - "="
|
317
317
|
- !ruby/object:Gem::Version
|
318
|
-
hash:
|
318
|
+
hash: 15424111
|
319
319
|
segments:
|
320
320
|
- 3
|
321
321
|
- 1
|
322
322
|
- 0
|
323
323
|
- rc
|
324
|
-
-
|
325
|
-
version: 3.1.0.
|
324
|
+
- 5
|
325
|
+
version: 3.1.0.rc5
|
326
326
|
type: :runtime
|
327
327
|
version_requirements: *id019
|
328
328
|
- !ruby/object:Gem::Dependency
|
@@ -966,6 +966,7 @@ files:
|
|
966
966
|
- spec/support/migrations.rb
|
967
967
|
- spec/support/mock.rb
|
968
968
|
- vendor/assets/javascripts/ajax.paginate.js
|
969
|
+
- vendor/assets/javascripts/chosen.jquery.js
|
969
970
|
- vendor/assets/javascripts/hoverIntent.js
|
970
971
|
- vendor/assets/javascripts/jqcloud-0.1.3.js
|
971
972
|
- vendor/assets/javascripts/jquery.ba-url.js
|
@@ -978,6 +979,8 @@ files:
|
|
978
979
|
- vendor/assets/javascripts/superfish.js
|
979
980
|
- vendor/assets/javascripts/ui.checkbox.js
|
980
981
|
- vendor/assets/stylesheets/carousel.css
|
982
|
+
- vendor/assets/stylesheets/chosen-sprite.png
|
983
|
+
- vendor/assets/stylesheets/chosen.css
|
981
984
|
- vendor/assets/stylesheets/fcbkComplete.css
|
982
985
|
- vendor/assets/stylesheets/jqcloud.css
|
983
986
|
- vendor/assets/stylesheets/jquery-ui.css
|