social_stream-presence 1.1.0 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/assets/images/chat-off.png +0 -0
- data/app/assets/images/chat-on.png +0 -0
- data/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js +3 -5
- data/app/assets/javascripts/presence_XmppClient.js.erb +6 -2
- data/app/assets/javascripts/presence_uiManager.js.erb +1 -1
- data/app/assets/javascripts/presence_windowManager.js +1 -1
- data/app/assets/stylesheets/social_stream/presence/_toolbar-chat.css.sass +65 -0
- data/app/assets/stylesheets/social_stream/presence/_wrapper-chatBox.css.sass +25 -0
- data/app/assets/stylesheets/social_stream/responsive/_responsive-1200px-min.css.sass +9 -0
- data/app/assets/stylesheets/social_stream/responsive/_responsive-767px-max.css.sass +16 -0
- data/app/assets/stylesheets/social_stream/responsive/_responsive-768px-979px.css.sass +9 -0
- data/app/assets/stylesheets/social_stream-presence.css.sass +9 -0
- data/app/overrides/settings/_index/add_chat.html.erb.deface +6 -0
- data/app/overrides/toolbar/_home/add_chat.html.erb.deface +3 -0
- data/app/overrides/toolbar/_profile/add_chat.html.erb.deface +4 -0
- data/app/views/chat/_contacts.html.erb +1 -1
- data/app/views/chat/_index.html.erb +126 -94
- data/app/views/settings/_chat.html.erb +23 -0
- data/config/locales/en.yml +5 -5
- data/config/locales/es.yml +5 -5
- data/lib/generators/social_stream/presence/install_generator.rb +2 -3
- data/lib/social_stream/presence/engine.rb +0 -11
- data/lib/social_stream/presence/version.rb +1 -1
- data/lib/social_stream-presence.rb +0 -10
- data/social_stream-presence.gemspec +2 -2
- data/spec/views/settings_spec.rb +41 -0
- metadata +32 -86
- data/app/assets/stylesheets/TresEnRaya.css +0 -57
- data/app/assets/stylesheets/chat.css.scss +0 -521
- data/app/assets/stylesheets/social_stream-presence.css +0 -5
- data/app/views/chat/_settings.html.erb +0 -34
- data/lib/social_stream/views/settings/presence.rb +0 -20
- data/lib/social_stream/views/toolbar/presence.rb +0 -28
- data/spec/demo/.gitignore +0 -5
- data/spec/demo/.rspec +0 -1
- data/spec/demo/README +0 -261
- data/spec/demo/Rakefile +0 -7
- data/spec/demo/app/assets/images/rails.png +0 -0
- data/spec/demo/app/assets/javascripts/application.js +0 -9
- data/spec/demo/app/assets/stylesheets/application.css +0 -7
- data/spec/demo/app/controllers/application_controller.rb +0 -3
- data/spec/demo/app/helpers/application_helper.rb +0 -2
- data/spec/demo/app/mailers/.gitkeep +0 -0
- data/spec/demo/app/models/.gitkeep +0 -0
- data/spec/demo/app/views/layouts/application.html.erb +0 -14
- data/spec/demo/autotest/discover.rb +0 -2
- data/spec/demo/config/application.rb +0 -41
- data/spec/demo/config/boot.rb +0 -6
- data/spec/demo/config/database.yml +0 -25
- data/spec/demo/config/environment.rb +0 -5
- data/spec/demo/config/environments/development.rb +0 -27
- data/spec/demo/config/environments/production.rb +0 -54
- data/spec/demo/config/environments/test.rb +0 -39
- data/spec/demo/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/demo/config/initializers/inflections.rb +0 -10
- data/spec/demo/config/initializers/mime_types.rb +0 -5
- data/spec/demo/config/initializers/secret_token.rb +0 -7
- data/spec/demo/config/initializers/session_store.rb +0 -8
- data/spec/demo/config/initializers/wrap_parameters.rb +0 -12
- data/spec/demo/config/locales/en.yml +0 -5
- data/spec/demo/config/routes.rb +0 -58
- data/spec/demo/config.ru +0 -4
- data/spec/demo/db/seeds.rb +0 -7
- data/spec/demo/doc/README_FOR_APP +0 -2
- data/spec/demo/lib/tasks/.gitkeep +0 -0
- data/spec/demo/log/.gitkeep +0 -0
- data/spec/demo/public/404.html +0 -26
- data/spec/demo/public/422.html +0 -26
- data/spec/demo/public/500.html +0 -26
- data/spec/demo/public/favicon.ico +0 -0
- data/spec/demo/public/index.html +0 -241
- data/spec/demo/public/robots.txt +0 -5
- data/spec/demo/script/rails +0 -6
- data/spec/demo/spec/spec_helper.rb +0 -27
- data/spec/demo/test/fixtures/.gitkeep +0 -0
- data/spec/demo/test/functional/.gitkeep +0 -0
- data/spec/demo/test/integration/.gitkeep +0 -0
- data/spec/demo/test/performance/browsing_test.rb +0 -12
- data/spec/demo/test/test_helper.rb +0 -13
- data/spec/demo/test/unit/.gitkeep +0 -0
- data/spec/demo/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/demo/vendor/plugins/.gitkeep +0 -0
@@ -1,521 +0,0 @@
|
|
1
|
-
@import "colors";
|
2
|
-
|
3
|
-
/* Chatbox style sheet */
|
4
|
-
|
5
|
-
.ui-widget-content{
|
6
|
-
border: none;
|
7
|
-
}
|
8
|
-
|
9
|
-
.ui-chatbox {
|
10
|
-
position: fixed;
|
11
|
-
bottom:0;
|
12
|
-
padding: 2px 2px 2px 2px;
|
13
|
-
padding: 2px 2px 2px 2px;
|
14
|
-
background: $separation-color;
|
15
|
-
}
|
16
|
-
|
17
|
-
.ui-state-highlight {
|
18
|
-
background: $separation-color;
|
19
|
-
background-color: $separation-color;
|
20
|
-
border: 1px solid $separation-color;
|
21
|
-
}
|
22
|
-
|
23
|
-
.chatWindowhighlighted {
|
24
|
-
color: $fill-color;
|
25
|
-
}
|
26
|
-
|
27
|
-
.ui-chatbox-titlebar {
|
28
|
-
padding: 3px 3px 3px 3px;
|
29
|
-
height: 20px;
|
30
|
-
background-color: $secondary-color;
|
31
|
-
color: $main-color;
|
32
|
-
}
|
33
|
-
|
34
|
-
.ui-chatbox-content {
|
35
|
-
padding: 0px 0px 0px 0px;
|
36
|
-
margin: 0px 0px 0px 0px;
|
37
|
-
border: 0px;
|
38
|
-
}
|
39
|
-
|
40
|
-
.ui-chatbox-log {
|
41
|
-
padding: 3px 3px 3px 3px;
|
42
|
-
height: 150px;
|
43
|
-
overflow-y: auto;
|
44
|
-
background: $text-over-main;
|
45
|
-
}
|
46
|
-
|
47
|
-
.ui-chatbox-input {
|
48
|
-
padding: 3px 3px 3px 3px;
|
49
|
-
border-top: 1px solid $separation-color;
|
50
|
-
overflow: hidden;
|
51
|
-
}
|
52
|
-
|
53
|
-
.ui-chatbox-input-box {
|
54
|
-
margin: 5px 5px 5px 5px;
|
55
|
-
border: 1px solid $separation-color;
|
56
|
-
height: 35px;
|
57
|
-
color: $main-color;
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
.ui-chatbox-icon {
|
62
|
-
float: right;
|
63
|
-
}
|
64
|
-
|
65
|
-
.ui-chatbox-input-focus {
|
66
|
-
border-color: $header-notification-color;
|
67
|
-
}
|
68
|
-
|
69
|
-
.ui-chatbox-msg {
|
70
|
-
float: left;
|
71
|
-
clear: both;
|
72
|
-
}
|
73
|
-
|
74
|
-
.ui-chatbox-log {
|
75
|
-
border: none;
|
76
|
-
}
|
77
|
-
|
78
|
-
|
79
|
-
/* video window style */
|
80
|
-
div.ui-videobox{
|
81
|
-
height: 0px;
|
82
|
-
border-bottom: 1px solid $separation-color;
|
83
|
-
max-width: 230px;
|
84
|
-
text-align: center;
|
85
|
-
margin: auto;
|
86
|
-
}
|
87
|
-
|
88
|
-
div.ui-videobox-icon-change{
|
89
|
-
width: 100px;
|
90
|
-
height: 100px;
|
91
|
-
}
|
92
|
-
|
93
|
-
|
94
|
-
p.video-info{
|
95
|
-
padding-top: 25%;
|
96
|
-
text-align: center;
|
97
|
-
}
|
98
|
-
|
99
|
-
p.video-request{
|
100
|
-
padding-top: 20%;
|
101
|
-
text-align: center;
|
102
|
-
font-size: 130%;
|
103
|
-
font-weight: bolder;
|
104
|
-
color: $main-color;
|
105
|
-
}
|
106
|
-
|
107
|
-
.videoChatButton {
|
108
|
-
cursor: pointer;
|
109
|
-
font-size: 100%;
|
110
|
-
}
|
111
|
-
|
112
|
-
.stream_publish_videochat {
|
113
|
-
z-index: -1;
|
114
|
-
position: absolute;
|
115
|
-
top: 177px;
|
116
|
-
}
|
117
|
-
|
118
|
-
.stream_videochat{
|
119
|
-
width: 60%;
|
120
|
-
height: 60%;
|
121
|
-
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
/* Game stylesheet */
|
126
|
-
.gameButton {
|
127
|
-
cursor: pointer;
|
128
|
-
font-size: 100%;
|
129
|
-
}
|
130
|
-
|
131
|
-
p.game-info{
|
132
|
-
padding-top: 20%;
|
133
|
-
text-align: center;
|
134
|
-
}
|
135
|
-
|
136
|
-
p.game-request{
|
137
|
-
padding-top: 20%;
|
138
|
-
text-align: center;
|
139
|
-
font-size: 130%;
|
140
|
-
font-weight: bolder;
|
141
|
-
color: $main-color;
|
142
|
-
}
|
143
|
-
|
144
|
-
.game-choices{
|
145
|
-
display: inline;
|
146
|
-
width: 100%;
|
147
|
-
height: 100%;
|
148
|
-
text-align: center;
|
149
|
-
}
|
150
|
-
|
151
|
-
div.game-choice {
|
152
|
-
float: left;
|
153
|
-
position: relative;
|
154
|
-
width: 90px;
|
155
|
-
height: 90px;
|
156
|
-
margin-left: 20px;
|
157
|
-
margin-right: 20px;
|
158
|
-
margin-top: 20px;
|
159
|
-
}
|
160
|
-
|
161
|
-
div.game-choice-buttonLeft {
|
162
|
-
float: left;
|
163
|
-
position: relative;
|
164
|
-
margin-left: 40px;
|
165
|
-
margin-top: 50px;
|
166
|
-
}
|
167
|
-
|
168
|
-
div.game-choice-buttonRight {
|
169
|
-
float: left;
|
170
|
-
position: relative;
|
171
|
-
margin-right: 40px;
|
172
|
-
margin-top: 50px;
|
173
|
-
}
|
174
|
-
|
175
|
-
img.game-choice-img{
|
176
|
-
width: 90px;
|
177
|
-
height: 90px;
|
178
|
-
}
|
179
|
-
|
180
|
-
img.game-choice-button{
|
181
|
-
margin-top: 5px;
|
182
|
-
width: 30px;
|
183
|
-
height: 30px;
|
184
|
-
}
|
185
|
-
|
186
|
-
p.game-name{
|
187
|
-
margin-top: 5px;
|
188
|
-
text-align: center;
|
189
|
-
}
|
190
|
-
|
191
|
-
a.game-choice-link{
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
/* notifications style sheet */
|
196
|
-
|
197
|
-
div.ui-chatbox-notify{
|
198
|
-
visibility: hidden;
|
199
|
-
background: $fill-color;
|
200
|
-
background-color: $fill-color;
|
201
|
-
color: black;
|
202
|
-
height: auto;
|
203
|
-
width: 236px;
|
204
|
-
text-align: center;
|
205
|
-
border-style:solid;
|
206
|
-
border-width:1px;
|
207
|
-
border-color: $fill-color;
|
208
|
-
opacity:0.95;
|
209
|
-
filter:alpha(opacity=95); /* For IE8 and earlier */
|
210
|
-
padding: 5px 0px 5px 0px;
|
211
|
-
display: none;
|
212
|
-
}
|
213
|
-
|
214
|
-
p.ui-chatbox-notify-text{
|
215
|
-
margin-top: 0px;
|
216
|
-
text-align: center;
|
217
|
-
/* font-weight: bold; */
|
218
|
-
}
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
/* Ticks */
|
223
|
-
|
224
|
-
.chat-thick {
|
225
|
-
/* Possible background-image for thicks provided by jquery.ui 454545 , 222222 , 888888 , cd0a0a , ... */
|
226
|
-
background-image: url("images/ui-icons_454545_256x240.png");
|
227
|
-
background-repeat: no-repeat;
|
228
|
-
display: block;
|
229
|
-
overflow: hidden;
|
230
|
-
text-indent: -99999px;
|
231
|
-
height: 16px;
|
232
|
-
width: 16px;
|
233
|
-
}
|
234
|
-
|
235
|
-
.chat-minusthick{
|
236
|
-
background-position: -64px -128px;
|
237
|
-
}
|
238
|
-
|
239
|
-
.chat-closethick{
|
240
|
-
background-position: -96px -128px;
|
241
|
-
}
|
242
|
-
|
243
|
-
.chat-videothick{
|
244
|
-
padding: 1px;
|
245
|
-
/*background-image: url("webcam.png");
|
246
|
-
background-repeat: no-repeat;
|
247
|
-
display: block;
|
248
|
-
height: 16px;
|
249
|
-
width: 16px; */
|
250
|
-
}
|
251
|
-
|
252
|
-
.chat-videoPublisherthick{
|
253
|
-
display: none;
|
254
|
-
padding: 0px 9px 0px 9px;
|
255
|
-
}
|
256
|
-
|
257
|
-
.chat-gamesthick{
|
258
|
-
/* display: block; */
|
259
|
-
display: none;
|
260
|
-
padding: 0px 1px 0px 1px;
|
261
|
-
}
|
262
|
-
|
263
|
-
div.ui-games-icon{
|
264
|
-
/*width: 100px;
|
265
|
-
height: 100px;*/
|
266
|
-
}
|
267
|
-
|
268
|
-
/* Presence Partial */
|
269
|
-
|
270
|
-
#chat_connecting{
|
271
|
-
display: none;
|
272
|
-
}
|
273
|
-
|
274
|
-
#chat_connection_off{
|
275
|
-
display: none;
|
276
|
-
}
|
277
|
-
|
278
|
-
#chat_widgets{
|
279
|
-
display: none;
|
280
|
-
}
|
281
|
-
|
282
|
-
div.user_presence {
|
283
|
-
float: left;
|
284
|
-
position: relative;
|
285
|
-
width: 30px;
|
286
|
-
height: 30px;
|
287
|
-
}
|
288
|
-
|
289
|
-
.user_presence p {
|
290
|
-
text-align: center;
|
291
|
-
}
|
292
|
-
|
293
|
-
#chat_partial {
|
294
|
-
width: 150px;
|
295
|
-
margin-top: 10px;
|
296
|
-
margin-left: 5px;
|
297
|
-
margin-right: 5px;
|
298
|
-
}
|
299
|
-
|
300
|
-
.presence_status {
|
301
|
-
position: absolute;
|
302
|
-
bottom: 0px;
|
303
|
-
left: 14px;
|
304
|
-
border: none;
|
305
|
-
}
|
306
|
-
|
307
|
-
.users_connected{
|
308
|
-
display: block;
|
309
|
-
width: 150px;
|
310
|
-
}
|
311
|
-
|
312
|
-
.chat_off{
|
313
|
-
width: 150px;
|
314
|
-
}
|
315
|
-
|
316
|
-
#passwordFormChat{
|
317
|
-
width: 150px;
|
318
|
-
background-color: $main-color;
|
319
|
-
padding-top:3px;
|
320
|
-
padding-bottom:1px;
|
321
|
-
}
|
322
|
-
|
323
|
-
label.chatPasswordTitle{
|
324
|
-
color: white;
|
325
|
-
margin-left: 5px;
|
326
|
-
}
|
327
|
-
|
328
|
-
input.chat_password{
|
329
|
-
width: 135px;
|
330
|
-
margin-left: 5px;
|
331
|
-
margin-right: 5px;
|
332
|
-
margin-bottom: 5px;
|
333
|
-
}
|
334
|
-
|
335
|
-
input.connectChatButton{
|
336
|
-
text-align: center;
|
337
|
-
width: 150px;
|
338
|
-
background-color: $main-color;
|
339
|
-
border: 0 none;
|
340
|
-
cursor: pointer;
|
341
|
-
color: white;
|
342
|
-
font-family: Helvetica;
|
343
|
-
font-size: 11px;
|
344
|
-
padding: 2px 0 2px 0px;
|
345
|
-
}
|
346
|
-
|
347
|
-
p.zero_users_connected {
|
348
|
-
text-align: center;
|
349
|
-
margin-top: 10px;
|
350
|
-
}
|
351
|
-
|
352
|
-
|
353
|
-
/* Tooltip */
|
354
|
-
|
355
|
-
.tooltip {
|
356
|
-
display:none;
|
357
|
-
font-size:12px;
|
358
|
-
height:21px;
|
359
|
-
width:160px;
|
360
|
-
padding: 18px 25px 15px 25px;
|
361
|
-
margin: -15px 0px 0px 0px;
|
362
|
-
color: white;
|
363
|
-
background:transparent url(black_arrow3.png);
|
364
|
-
text-align: center;
|
365
|
-
z-index: 10;
|
366
|
-
}
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
/* Status style sheet */
|
371
|
-
|
372
|
-
#status{
|
373
|
-
z-index: 1;
|
374
|
-
}
|
375
|
-
|
376
|
-
.dropdown dd, .dropdown dt, .dropdown ul {
|
377
|
-
margin:0px;
|
378
|
-
padding:0px;
|
379
|
-
}
|
380
|
-
|
381
|
-
.dropdown dd {
|
382
|
-
position:relative;
|
383
|
-
}
|
384
|
-
|
385
|
-
.dropdown a, .dropdown a:visited {
|
386
|
-
color: $main-color;
|
387
|
-
text-decoration:none;
|
388
|
-
outline:none;
|
389
|
-
}
|
390
|
-
|
391
|
-
.dropdown a:hover {
|
392
|
-
color: $main-color;
|
393
|
-
}
|
394
|
-
.dropdown dt a:hover {
|
395
|
-
color: $main-color;
|
396
|
-
border: 1px solid $main-color;
|
397
|
-
}
|
398
|
-
|
399
|
-
.dropdown dt a {
|
400
|
-
background:$secondary-color url(btn/arrowBlue.png) no-repeat scroll right center;
|
401
|
-
display:block;
|
402
|
-
padding-right:20px;
|
403
|
-
border:1px solid $secondary-color;
|
404
|
-
width:128px;
|
405
|
-
}
|
406
|
-
|
407
|
-
|
408
|
-
.dropdown dt a span {
|
409
|
-
cursor:pointer;
|
410
|
-
display:block;
|
411
|
-
padding:5px;
|
412
|
-
}
|
413
|
-
|
414
|
-
.dropdown dd ul {
|
415
|
-
background: $secondary-color none repeat scroll 0 0;
|
416
|
-
border:1px solid $secondary-color;
|
417
|
-
color: $secondary-color;
|
418
|
-
display:none;
|
419
|
-
left:0px;
|
420
|
-
padding:5px 0px;
|
421
|
-
position:absolute;
|
422
|
-
top:2px;
|
423
|
-
width:auto;
|
424
|
-
min-width:170px;
|
425
|
-
list-style:none;
|
426
|
-
z-index: 2;
|
427
|
-
}
|
428
|
-
|
429
|
-
.dropdown span.value {
|
430
|
-
display:none;
|
431
|
-
}
|
432
|
-
|
433
|
-
.dropdown dd ul li a {
|
434
|
-
padding:5px;
|
435
|
-
display:block;
|
436
|
-
}
|
437
|
-
|
438
|
-
.dropdown dd ul li a:hover {
|
439
|
-
background-color: $separation-color;
|
440
|
-
}
|
441
|
-
|
442
|
-
.dropdown img.flag {
|
443
|
-
border:none;
|
444
|
-
vertical-align:middle;
|
445
|
-
margin-left:10px;
|
446
|
-
}
|
447
|
-
|
448
|
-
.flagvisibility {
|
449
|
-
display:none;
|
450
|
-
}
|
451
|
-
|
452
|
-
|
453
|
-
/* Chat text style */
|
454
|
-
|
455
|
-
.ownChatText {
|
456
|
-
color: $main-color;
|
457
|
-
}
|
458
|
-
|
459
|
-
.guestChatText {
|
460
|
-
color: $sentence-color;
|
461
|
-
}
|
462
|
-
|
463
|
-
.ownName {
|
464
|
-
color: $main-color;
|
465
|
-
}
|
466
|
-
|
467
|
-
.guestName {
|
468
|
-
color: $sentence-color;
|
469
|
-
}
|
470
|
-
|
471
|
-
.chatImage {
|
472
|
-
max-width: 100px;
|
473
|
-
max-height: 100px;
|
474
|
-
}
|
475
|
-
|
476
|
-
.chatVideoImage {
|
477
|
-
max-width: 100px;
|
478
|
-
max-height: 100px;
|
479
|
-
}
|
480
|
-
|
481
|
-
.chatEmoticon {
|
482
|
-
max-width:20px;
|
483
|
-
max-height: 20px;
|
484
|
-
}
|
485
|
-
|
486
|
-
a.chatLink:link, a.chatLink:visited {
|
487
|
-
color: $main-color;
|
488
|
-
}
|
489
|
-
|
490
|
-
a.chatImageLink:link, a.chatImageLink:visited {
|
491
|
-
color: $main-color;
|
492
|
-
}
|
493
|
-
|
494
|
-
|
495
|
-
/* Search contacts stylesheet */
|
496
|
-
|
497
|
-
#search_chat_contact_flexselect {
|
498
|
-
background: url('btn/search_icon.png') 5px 50% no-repeat $secondary-color;
|
499
|
-
padding: 0 0px 0 0px;
|
500
|
-
font-size: 11px;
|
501
|
-
color: $main-color;
|
502
|
-
border: solid 1px $input-border-color;
|
503
|
-
height: 25px;
|
504
|
-
width: 122px;
|
505
|
-
padding: 0 3px 0 22px;
|
506
|
-
margin-bottom: 1px;
|
507
|
-
}
|
508
|
-
|
509
|
-
#search_chat_contact_flexselect_dropdown {
|
510
|
-
background: $secondary-color;
|
511
|
-
}
|
512
|
-
|
513
|
-
#search_chat_contact_flexselect_dropdown li {
|
514
|
-
background: $secondary-color;
|
515
|
-
font-size: 11px;
|
516
|
-
color: $main-color;
|
517
|
-
}
|
518
|
-
|
519
|
-
#search_chat_contact_flexselect_dropdown li:hover {
|
520
|
-
background: $separation-color;
|
521
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<div class="block" id="chat_settings">
|
2
|
-
<div class="header">
|
3
|
-
<div class="header_text">
|
4
|
-
<%=t('chat.title')%>
|
5
|
-
</div>
|
6
|
-
<div class="header_icon_right">
|
7
|
-
<%= link_to (image_tag('btn/edit.png')), "javascript:showSettings(\"chat_settings\");" %>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
<div id="chat_settings_briefing" class="settings_briefing content">
|
11
|
-
<div class="form_row">
|
12
|
-
<%=t('chat.settings.title')%>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
<div class="content settings_content" id="chat_settings_content" style="display:none;">
|
16
|
-
<%= form_tag(:controller => "Xmpp", :action => "updateSettings", :method => "get") do %>
|
17
|
-
<ul>
|
18
|
-
<div class="settings_block">
|
19
|
-
<div class="form_row">
|
20
|
-
</div>
|
21
|
-
<div class="form_sub_row">
|
22
|
-
<% checked = current_user.chat_enabled %>
|
23
|
-
<%= check_box_tag 'enable_chat', true, checked %>
|
24
|
-
<%= label_tag(:enable_chat, t('chat.settings.checkbox')) %>
|
25
|
-
</div>
|
26
|
-
<div class="actions center">
|
27
|
-
<%= hidden_field_tag :settings_section, :chat %>
|
28
|
-
<%= submit_tag t('chat.settings.update'), :class => "button" %>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</ul>
|
32
|
-
<% end %>
|
33
|
-
</div>
|
34
|
-
</div>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Views
|
3
|
-
module Settings
|
4
|
-
module Presence
|
5
|
-
def settings_items
|
6
|
-
super.tap do |items|
|
7
|
-
if SocialStream::Presence.enable
|
8
|
-
if current_subject == current_user
|
9
|
-
items.insert_before 'notifications', {
|
10
|
-
:key => 'chat',
|
11
|
-
:html => render(:partial => "chat/settings")
|
12
|
-
}
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Views
|
3
|
-
module Toolbar
|
4
|
-
module Presence
|
5
|
-
def toolbar_items type, options = {}
|
6
|
-
super.tap do |items|
|
7
|
-
case type
|
8
|
-
when :home, :messages
|
9
|
-
items << {
|
10
|
-
:key => 'chat',
|
11
|
-
:html => render(:partial => 'chat/index' , :locals => {:flow => false })
|
12
|
-
}
|
13
|
-
when :profile
|
14
|
-
items << {
|
15
|
-
:key => 'chat',
|
16
|
-
:html => render(:partial => 'chat/index',
|
17
|
-
:locals => {
|
18
|
-
:flow => true ,
|
19
|
-
:group => @group
|
20
|
-
})
|
21
|
-
}
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
data/spec/demo/.gitignore
DELETED
data/spec/demo/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|