Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $currentUser->getUser();
4
 
5
$routeTimeline  = $this->url('feed/timeline', ['id' => $company_uuid, 'type' => 'company']);
6
$routeButtons   = $this->url('company/view', ['id' => $company_uuid]);
7
 
8
$this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));
9
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
10
 
11
$this->inlineScript()->captureStart();
12
echo <<<JS
13
jQuery( document ).ready(function( $ ) {
14
     $.fn.reloadButtons = function() {
15
 
16
        NProgress.start();
17
        $.ajax({
18
            'dataType'  : 'json',
19
            'accept'    : 'application/json',
20
            'method'    : 'get',
21
            'url'       :  '$routeButtons',
22
        }).done(function(response) {
23
            if(response['success']) {
24
                $('#total-followers').html(response['data']['total_followers'])
25
 
26
                console.log(response['data']);
27
 
28
                $( '#div-user-buttons' ).html(
29
                    $( '#userButtonsTemplate' ).render( {
30
                        'link_request' : response['data']['link_request'],
31
                        'link_accept' : response['data']['link_accept'],
32
                        'link_cancel' : response['data']['link_cancel'],
33
                        'link_follow' : response['data']['link_follow'],
34
                        'link_unfollow' : response['data']['link_unfollow'],
35
                        'link_leave' : response['data']['link_leave'],
36
                        'link_reject' : response['data']['link_reject'],
37
                        'link_contact' : response['data']['link_contact'],
38
                    } )
39
                );
40
            } else {
41
                $.fn.showError(response['data']);
42
            }
43
        }).fail(function( jqXHR, textStatus, errorThrown) {
44
            $.fn.showError(textStatus);
45
        }).always(function() {
46
            NProgress.done();
47
        });
48
    }
49
 
50
    $('body').on('click', 'a.btn-remove-follower', function(e) {
51
        e.preventDefault();
52
 
53
        var action = $(this).data('link');
54
 
55
        $(this).confirmation({
56
            rootSelector: 'a.btn-remove-follower',
57
            title : 'LABEL_ARE_YOU_SURE',
58
            singleton : true,
59
            btnOkLabel: 'LABEL_YES',
60
            btnCancelLabel: 'LABEL_NO',
61
            onConfirm: function(value) {
62
 
63
                NProgress.start();
64
                $.ajax({
65
                    'dataType'  : 'json',
66
                    'accept'    : 'application/json',
67
                    'method'    : 'post',
68
                    'data'      : {
69
                        'flash' : true
70
                    },
71
                    'url'       : action,
72
                }).done(function(response) {
73
                    if(response['success']) {
74
                        window.location.reload(true);
75
                    } else {
76
                        $.fn.showError(response['data']);
77
                    }
78
                }).fail(function( jqXHR, textStatus, errorThrown) {
79
                    $.fn.showError(textStatus);
80
                }).always(function() {
81
                    NProgress.done();
82
                });
83
 
84
                return false;
85
 
86
            },
87
        });
88
        $(this).confirmation('show');
89
    });
90
 
91
    $('body').on('click', 'a.btn-add-follower', function(e) {
92
        e.preventDefault();
93
 
94
        var action = $(this).data('link');
95
        NProgress.start();
96
        $.ajax({
97
            'dataType'  : 'json',
98
            'accept'    : 'application/json',
99
            'method'    : 'post',
100
            'data'      : {
101
                'flash' : true
102
            },
103
            'url'       : action,
104
        }).done(function(response) {
105
            if(response['success']) {
106
                window.location.reload(true);
107
            } else {
108
                $.fn.showError(response['data']);
109
            }
110
        }).fail(function( jqXHR, textStatus, errorThrown) {
111
            $.fn.showError(textStatus);
112
        }).always(function() {
113
            NProgress.done();
114
        });
115
        return false;
116
    });
117
 
118
    $('body').on('click', 'a.btn-request', function(e) {
119
        e.preventDefault();
120
 
121
        var action = $(this).data('link');
122
        NProgress.start();
123
        $.ajax({
124
            'dataType'  : 'json',
125
            'accept'    : 'application/json',
126
            'method'    : 'post',
127
            'data'      : {
128
                'flash' : false
129
            },
130
            'url'       :  action,
131
        }).done(function(response) {
132
            if(response['success']) {
133
                $.fn.showSuccess(response['data']);
134
                $.fn.reloadButtons();
135
            } else {
136
                $.fn.showError(response['data']);
137
            }
138
        }).fail(function( jqXHR, textStatus, errorThrown) {
139
            $.fn.showError(textStatus);
140
        }).always(function() {
141
            NProgress.done();
142
        });
143
    });
144
 
145
    $('body').on('click', 'a.btn-accept', function(e) {
146
        e.preventDefault();
147
 
148
        var action = $(this).data('link');
149
        NProgress.start();
150
        $.ajax({
151
            'dataType'  : 'json',
152
            'accept'    : 'application/json',
153
            'method'    : 'post',
154
            'data'      : {
155
                'flash' : true
156
            },
157
            'url'       : action,
158
        }).done(function(response) {
159
            if(response['success']) {
160
                window.location.reload(true);
161
            } else {
162
                $.fn.showError(response['data']);
163
            }
164
        }).fail(function( jqXHR, textStatus, errorThrown) {
165
            $.fn.showError(textStatus);
166
        }).always(function() {
167
            NProgress.done();
168
        });
169
    });
170
 
171
 
172
 
173
    $('body').on('click', 'a.btn-cancel', function(e) {
174
        e.preventDefault();
175
 
176
        var action = $(this).data('link');
177
        $(this).confirmation({
178
            rootSelector: 'a.btn-company-unfollow',
179
            title : 'LABEL_ARE_YOU_SURE',
180
            singleton : true,
181
            btnOkLabel: 'LABEL_YES',
182
            btnCancelLabel: 'LABEL_NO',
183
            onConfirm: function(value) {
184
 
185
                NProgress.start();
186
                $.ajax({
187
                    'dataType'  : 'json',
188
                    'accept'    : 'application/json',
189
                    'method'    : 'post',
190
                    'data'      : {
191
                        'flash' : false
192
                    },
193
                    'url'       : action,
194
                }).done(function(response) {
195
                    if(response['success']) {
196
                        $.fn.showSuccess(response['data']);
197
                        $.fn.reloadButtons();
198
                    } else {
199
                        $.fn.showError(response['data']);
200
                    }
201
                }).fail(function( jqXHR, textStatus, errorThrown) {
202
                    $.fn.showError(textStatus);
203
                }).always(function() {
204
                    NProgress.done();
205
                });
206
 
207
                return false;
208
 
209
            },
210
        });
211
        $(this).confirmation('show');
212
 
213
 
214
    });
215
 
216
    $('body').on('click', 'a.btn-reject', function(e) {
217
        e.preventDefault();
218
 
219
        var action = $(this).data('link');
220
        $(this).confirmation({
221
            rootSelector: 'a.btn-company-unfollow',
222
            title : 'LABEL_ARE_YOU_SURE',
223
            singleton : true,
224
            btnOkLabel: 'LABEL_YES',
225
            btnCancelLabel: 'LABEL_NO',
226
            onConfirm: function(value) {
227
 
228
                NProgress.start();
229
                $.ajax({
230
                    'dataType'  : 'json',
231
                    'accept'    : 'application/json',
232
                    'method'    : 'post',
233
                    'data'      : {
234
                        'flash' : false
235
                    },
236
                    'url'       : action,
237
                }).done(function(response) {
238
                    if(response['success']) {
239
                        $.fn.showSuccess(response['data']);
240
                        $.fn.reloadButtons();
241
                    } else {
242
                        $.fn.showError(response['data']);
243
                    }
244
                }).fail(function( jqXHR, textStatus, errorThrown) {
245
                    $.fn.showError(textStatus);
246
                }).always(function() {
247
                    NProgress.done();
248
                });
249
 
250
                return false;
251
 
252
            },
253
        });
254
        $(this).confirmation('show');
255
 
256
 
257
    });
258
 
259
    $('body').on('click', 'a.btn-leave', function(e) {
260
        e.preventDefault();
261
 
262
        var action = $(this).data('link');
263
        $(this).confirmation({
264
            rootSelector: 'a.btn-company-unfollow',
265
            title : 'LABEL_ARE_YOU_SURE',
266
            singleton : true,
267
            btnOkLabel: 'LABEL_YES',
268
            btnCancelLabel: 'LABEL_NO',
269
            onConfirm: function(value) {
270
 
271
                NProgress.start();
272
                $.ajax({
273
                    'dataType'  : 'json',
274
                    'accept'    : 'application/json',
275
                    'method'    : 'post',
276
                    'data'      : {
277
                        'flash' : true
278
                    },
279
                    'url'       :  action,
280
                }).done(function(response) {
281
                    if(response['success']) {
282
                        window.location.reload(true);
283
                    } else {
284
                        $.fn.showError(response['data']);
285
                    }
286
                }).fail(function( jqXHR, textStatus, errorThrown) {
287
                    $.fn.showError(textStatus);
288
                }).always(function() {
289
                    NProgress.done();
290
                });
291
 
292
                return false;
293
 
294
            },
295
        });
296
        $(this).confirmation('show');
297
 
298
 
299
    });
300
 
301
 
302
    $.fn.reload = function(prepend, page) {
303
        NProgress.start();
304
        $.ajax({
305
            'dataType'  : 'json',
306
            'accept'    : 'application/json',
307
            'method'    : 'get',
308
            'data'      : {
309
                'page' : page
310
            },
311
            'url'       :  '$routeTimeline'
312
        }).done(function(response) {
313
            if(response['success']) {
314
                //$('.posts-section').empty();
315
 
316
                if(prepend) {
317
                    $( ".posts-section" ).prepend(
318
                		$( "#feedTemplate" ).render( response['data']['current']['items'] )
319
                	);
320
                } else {
321
                     $( ".posts-section" ).append(
322
                		$( "#feedTemplate" ).render( response['data']['current']['items'] )
323
                	);
324
                }
325
 
326
                if(response['data']['current']['page'] <  response['data']['total']['pages'] ) {
327
                    $('#paginator-process-comm').data('next-page', response['data']['current']['page'] + 1);
328
                    $('#paginator-process-comm').show();
329
                } else {
330
                    $('#paginator-process-comm').hide();
331
                }
332
 
333
 
334
            } else {
335
                $.fn.showError(response['data']);
336
            }
337
        }).fail(function( jqXHR, textStatus, errorThrown) {
338
            $.fn.showError(textStatus);
339
        }).always(function() {
340
            NProgress.done();
341
        });
342
 
343
    }
344
 
345
    $('#paginator-process-comm').click(function(e) {
346
        e.preventDefault();
347
 
348
        var next_page = $(this).data('next-page');
349
        $.fn.reload(false, next_page);
350
 
351
    });
352
 
353
    $.fn.reload(true, 1);
354
 
355
    $.fn.reloadButtons();
356
 
357
});
358
JS;
359
$this->inlineScript()->captureEnd();
360
 
361
?>
362
<input type="text" name="test" id="test" style="display: none">
363
 
364
<section class="cover-sec">
365
	<img
366
		id="user-cover-img"
367
		src="<?php echo $this->url('storage', ['type' => 'company-cover', 'code' => $company_uuid, 'filename' => $cover]) ?>"
368
		alt="">
369
</section>
370
<main>
371
	<div class="main-section">
372
		<div class="container">
373
 
374
			<div class="main-section-data">
375
				<div class="row">
376
					<div class="col-lg-3">
377
						<div class="main-left-sidebar">
378
							<div class="user_profile">
379
								<div class="user-pro-img">
380
									<img id="company-img"
381
										src="<?php echo $this->url('storage', ['type' => 'company', 'code' => $company_uuid, 'filename' => $image]) ?>"
382
										alt="">
383
								</div>
384
								<!--user-pro-img end-->
385
								<div class="user_pro_status">
386
									<ul class="flw-status">
387
										<li><span>LABEL_FOLLOWERS</span> <b id="total-followers"><?php echo  $total_followers ?></b>
388
										</li>
389
									</ul>
390
								</div>
391
								<!--user_pro_status end-->
392
								<ul id="social-networks" class="social_links">
393
								<?php
394
								    if($facebook) :
395
                                        $l = strlen($facebook);
396
                                        if ($l > 32) {
397
                                            $s = substr($facebook, 0, 32) . '...';
398
                                        } else {
399
                                            $s = $facebook;
400
                                        }
401
                                    ?>
402
									<li>
403
										<a href="<?php echo $facebook ?>" target="_blank" title="">
404
											<i class="fa fa-facebook-square"></i> <?php echo $s?>
405
										</a>
406
									</li>
407
									<?php endif; ?>
408
    								<?php
409
    								if($twitter) :
410
                                    $l = strlen($twitter);
411
                                    if ($l > 32) {
412
                                        $s = substr($twitter, 0, 32) . '...';
413
                                    } else {
414
                                        $s = $twitter;
415
                                    }
416
                                    ?>
417
    								<li>
418
    									<a href="<?php echo $twitter ?>" title="" target="_blank">
419
    										<i class="fa fa-twitter"></i> <?php echo $s?>
420
    									</a>
421
    								</li>
422
    								<?php endif?>
423
    								<?php
424
    								    if($instagram) :
425
                                        $l = strlen($instagram);
426
                                        if ($l > 32) {
427
                                            $s = substr($instagram, 0, 32) . '...';
428
                                        } else {
429
                                            $s = $instagram;
430
                                        }
431
                                    ?>
432
									<li>
433
										<a href="<?php echo $instagram ?>" target="_blank" title="">
434
											<i class="fa fa-instagram"></i> <?php echo $s?>
435
										</a>
436
									</li>
437
									<?php endif; ?>
438
 
439
							</ul>
440
							</div>
441
							<!--user_profile end-->
442
							<?php echo $this->companyFollowerHelper($company_id); ?>
443
						</div>
444
						<!--main-left-sidebar end-->
445
					</div>
446
					<div class="col-lg-6">
447
						<div class="main-ws-sec">
448
							<div class="user-tab-sec rewivew">
449
								<h3><?php echo $company_name ?></h3>
450
								<div class="tab-feed">
451
									<ul>
452
										<li data-tab="feed-dd" class="active animated fadeIn">
453
											<a href="#" title="">
454
												<img src="<?php echo $this->basePath('images/ic1.png') ?>" alt="">
455
												<span>LABEL_FEEDS</span>
456
											</a>
457
										</li>
458
										<li data-tab="info-dd" class="animated fadeIn">
459
											<a href="#" title="">
460
												<img src="<?php echo $this->basePath('images/ic2.png') ?>" alt="">
461
												<span>LABEL_INFO</span>
462
											</a>
463
										</li>
464
									</ul>
465
								</div><!-- tab-feed end-->
466
							</div>
467
 
468
							<div class="product-feed-tab animated current fadeIn" id="feed-dd">
469
     							<div class="posts-section" >
470
            						<div class="process-comm" id="paginator-process-comm">
471
                               			 <div class="spinner">
472
                                  			<div class="bounce1"></div>
473
                                  			<div class="bounce2"></div>
474
                                  			<div class="bounce3"></div>
475
                                		</div>
476
       								</div>
477
    							</div>
478
    						   <!--posts-section end-->
479
							</div>
480
	                        <!--product-feed-tab end-->
481
 
482
						<div class="product-feed-tab  animated" id="info-dd">
483
							<div class="main-ws-sec">
484
 
485
    							<!--user-tab-sec end-->
486
    							<?php if($overview) : ?>
487
    							<div class="user-profile-extended-ov">
488
    								<h3>
489
    									LABEL_OVERVIEW</a>
490
    								</h3>
491
    								<span><?php echo $overview ?></span>
492
 
493
    							</div>
494
    							<?php endif; ?>
495
    							<?php
496
    							$max = count($locations);
497
    							if($max) :
498
    							?>
499
    							<div class="user-profile-extended-ov st2">
500
    								<h3>
501
    									LABEL_LOCATIONS
502
    								</h3>
503
    								<span>
504
    								<?php
505
 
506
    									for($i = 0;  $i < $max; $i++) :
507
    									$location = $locations[$i];
508
 
509
    									?>
510
        								<p>
511
        									<?php echo $location['formatted_address']   ?><?php echo $location['is_main'] == 'y' ? ' (LABEL_MAIN_LOCATION) ' : ''?>
512
        								</p>
513
        								<?php if($i < ($max - 1)) : ?>
514
        								<hr/>
515
        								<?php endif; ?>
516
        								<?php endfor; ?>
517
    								</span>
518
    							</div>
519
    							<?php endif; ?>
520
    							<!--user-profile-ov end-->
521
    							<?php if($industry) : ?>
522
    							<div class="user-profile-ov">
523
    								<h3>
524
    									LABEL_INDUSTRY
525
    								</h3>
526
                 					<span><?php echo $industry ?></span>
527
            					</div>
528
            					<?php endif; ?>
529
    							<!--user-profile-ov end-->
530
    							<!--user-profile-ov end-->
531
    							<?php if( $company_size)  : ?>
532
    							<div class="user-profile-ov">
533
    								<h3>
534
    									LABEL_COMPANY_SIZE
535
    								</h3>
536
                 					<span><?php echo $company_size?></span>
537
            					</div>
538
            					<?php endif;?>
539
    							<!--user-profile-ov end-->
540
    							<!--user-profile-ov end-->
541
    							<?php if($foundation_year) : ?>
542
    							<div class="user-profile-ov">
543
    								<h3>
544
    									LABEL_FOUNDATION_YEAR
545
    								</h3>
546
                 					<span><?php echo $foundation_year ?></span>
547
            					</div>
548
            					<?php endif; ?>
549
    							<!--user-profile-ov end-->
550
    							<!--user-profile-ov end-->
551
    							<?php if($website ) : ?>
552
    							<div class="user-profile-ov">
553
    								<h3>
554
    									LABEL_WEBSITE
555
    								</h3>
556
                 					<span><?php echo $website ?></span>
557
            					</div>
558
            					<?php endif;?>
559
    							<!--user-profile-ov end-->
560
    						</div>
561
    						<!--main-ws-sec end-->
562
    					</div>
563
    				</div>
564
    				</div>
565
 
566
					<div class="col-lg-3">
567
						<div class="right-sidebar">
568
							<div class="message-btn" id="div-user-buttons">
569
 
570
							</div>
571
 
572
							<?php echo $this->companySuggestionHelper($company_id)?>
573
 
574
 
575
                            </div>
576
						</div>
577
						<!--right-sidebar end-->
578
					</div>
579
				</div>
580
			</div>
581
			<!-- main-section-data end-->
582
		</div>
583
	</div>
584
</main>
585
 
586
 
587
 
588
 
589
<script id="commentTemplate" type="text/x-jsrender">
590
                    <li>
591
				        <div class="comment-list">
592
							 <div class="comment comment-{{:unique}}" >
593
    					         <a href="{{>user_url}}"><h3>{{>user_name}}</h3>
594
    						     <span><img src="<?php echo $this->basePath('images/clock.png') ?>" alt="">{{>time_elapsed}}
595
                                {{if link_delete}}
596
                                    <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}"><i class="fa fa-trash"></i></a>
597
                                {{/if}}
598
                                 </span>
599
 
600
								 <p>{{>comment}}</p>
601
						     </div>
602
	                   </div>
603
	               </li>
604
</script>
605
 
606
<script id="feedTemplate" type="text/x-jsrender">
607
    <div class="post-bar post-bar-{{>feed_unique}}">
608
        <div class="post_topbar">
609
            <div class="usy-dt">
610
                <a href="{{>owner_url}}"><img src="{{>owner_image}}" alt="" style="width:50px; height: auto"></a>
611
                <div class="usy-name">
612
                    <a href="{{>owner_url}}"><h3>{{>owner_name}}</h3></a>
613
                    <span><img src="<?php echo $this->basePath('images/clock.png') ?>" alt="">{{>owner_time_elapse}}
614
                    {{if link_delete}}
615
                    <a href="#" class="btn-feed-trash" data-link="{{:link_delete}}" data-feed-unique="{{>feed_unique}}"><i class="fa fa-trash"></i></a>
616
                    {{/if}}
617
                    </span>
618
                </div>
619
            </div>
620
        </div>
621
        <div class="job_descp">
622
            <p>
623
            <div  class="show-read-more">{{:owner_description}}</div>
624
            </p>
625
            {{if owner_file_image}}
626
             <img src="{{>owner_file_image}}" class="Entradas">
627
            {{/if}}
628
            {{if owner_file_video}}
629
             <video src="{{>owner_file_video}}" controls  poster="{{>owner_file_image_preview}}">
630
            {{/if}}
631
            {{if owner_file_document}}
632
                <a href="{{>owner_file_document}}" target="_blank">Descargar</a>
633
            {{/if}}
634
 
635
    {{if shared_name}}
636
    <div class="post-bar">
637
        <div class="post_topbar">
638
            <div class="usy-dt">
639
                <img src="{{>shared_image}}" alt="" style="width:50px; height: auto">
640
                <div class="usy-name">
641
                    <h3>{{>shared_name}}</h3>
642
                    <span><img style="width: 12px; height: auto" src="<?php echo $this->basePath('images/clock.png') ?>" alt="">{{>shared_time_elapse}}</span>
643
                </div>
644
            </div>
645
        </div>
646
        <div class="job_descp">
647
            <p>
648
            <div  class="show-read-more">{{:shared_description}}</div>
649
            </p>
650
            {{if shared_file_image}}
651
             <img src="{{>shared_file_image}}" class="Entradas">
652
            {{/if}}
653
            {{if shared_file_video}}
654
             <video src="{{>shared_file_video}}" controls  poster="{{>shared_file_image_preview}}">
655
            {{/if}}
656
            {{if shared_file_document}}
657
                <a href="{{>shared_file_document}}" target="_blank">Descargar</a>
658
            {{/if}}
659
        </div>
660
    </div>
661
    {{/if}}
662
 
663
 
664
        </div>
665
        <div class="job-status-bar">
666
            <ul class="like-com">
667
                <li>
668
                    {{if feed_is_liked}}
669
                        <a href="{{>feed_like_url}}" id="btn-like-{{>feed_unique}}" data-feed-unique="{{>feed_unique}}" class="btn-like" style="display: none"><i class="far fa-heart"></i> Me gusta</a>
670
                        <a href="{{>feed_unlike_url}}" id="btn-unlike-{{>feed_unique}}" data-feed-unique="{{>feed_unique}}" class="btn-unlike" style="display: block"><i class="fas fa-heart"></i> Ya no me gusta</a>
671
 
672
                    {{else}}
673
                        <a href="{{>feed_like_url}}" id="btn-like-{{>feed_unique}}" data-feed-unique="{{>feed_unique}}" class="btn-like" style="display: block"><i class="far fa-heart"></i> Me gusta</a>
674
                        <a href="{{>feed_unlike_url}}" id="btn-unlike-{{>feed_unique}}" data-feed-unique="{{>feed_unique}}"  class="btn-unlike"  style="display: none"><i class="fas fa-heart"></i> Ya no me gusta</a>
675
                    {{/if}}
676
 
677
                </li>
678
                <li>
679
                    <a href="#" id="btn-comments-{{>feed_unique}}" class="btn-indicator"><i class="fas fa-comments"></i> {{>owner_comments}}</a>
680
                </li>
681
                <li>
682
                    <a href="#" id="btn-share-{{>feed_unique}}" class="btn-indicator"><i class="fas fa-share"></i> {{>owner_shared}}</a>
683
                </li>
684
            </ul>
685
            <a href="{{>feed_share_url}}" data-feed-unique="{{>feed_unique}}" class="btn-feed-share"><i class="fas fa-share"></i>Compartir</a>
686
        </div>
687
        <div class="comment-section">
688
            <div class="comment-sec comment-sec-{{>feed_unique}}">
689
                <ul>
690
                {{for comments}}
691
                    <li>
692
				        <div class="comment-list">
693
							 <div class="comment comment-{{:unique}}" >
694
    					         <a href="{{>user_url}}"><h3>{{>user_name}}</h3>
695
    						     <span><img src="<?php echo $this->basePath('images/clock.png') ?>" alt="">{{>time_elapsed}}
696
                                {{if link_delete}}
697
                                    <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}"><i class="fa fa-trash"></i></a>
698
                                {{/if}}
699
                                 </span>
700
 
701
								 <p>{{>comment}}</p>
702
						     </div>
703
	                   </div>
704
	               </li>
705
                {{/for}}
706
                </ul>
707
            </div>
708
        </div>
709
        <div class="comment_box">
710
            <form  class="form-comment-feed" data-feed-unique="{{>feed_unique}}"  action="{{>comment_add_url}}">
711
                <input type="text" name="comment" id="comment-{{>feed_unique}}" maxlength="256"  placeholder="LABEL_WRITE_A_COMMENT">
712
                <button type="submit">LABEL_SEND</button>
713
            </form>
714
        </div>
715
    </div>
716
</script>
717
 
718
<script id="userButtonsTemplate" type="text/x-jsrender">
719
    {{if link_unfollow}}
720
    <a href="#" data-link="{{>link_unfollow}}" class="btn-remove-follower"><i class="fa fa-user-times"></i> LABEL_UNFOLLOW </a>
721
    {{/if}}
722
    {{if link_follow}}
723
    <a href="#" data-link="{{>link_follow}}" class="btn-add-follower"><i class="fa fa-plus"></i> LABEL_FOLLOW </a>
724
	{{/if}}
725
    {{if link_request}}
726
    <a href="#" data-link="{{>link_request}}" class="btn-request"><i class="fa  fa-user-plus"></i> LABEL_COMPANY_REQUEST </a>
727
    {{/if}}
728
    {{if link_accept}}
729
    <a href="#" data-link="{{>link_accept}}"  class="btn-accept"><i class="fa fa-check"></i> LABEL_ACCEPT </a>
730
	{{/if}}
731
    {{if link_cancel}}
732
    <a href="#"  data-link="{{>link_cancel}}"  title="" class="btn-cancel"><i class="fa fa-user-times " ></i> LABEL_CANCEL </a>
733
	{{/if}}
734
    {{if link_reject}}
735
    <a href="#"  data-link="{{>link_reject}}"  title="" class="btn-reject"><i class="fa fa-user-times " ></i> LABEL_REJECT </a>
736
	{{/if}}
737
    {{if link_leave}}
738
    <a href="#"  data-link="{{>link_leave}}"  title="" class="btn-leave"><i class="fa fa-user-times " ></i> LABEL_COMPANY_LEAVE </a>
739
    {{/if}}
740
    {{if link_contact}}
741
    <a href="#" data-link="{{>link_contact}}" title="" class="btn-send-message"><i class="fa fa-envelope " ></i> Mensaje </a>
742
	{{/if}}
743
</script>
744