Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6263 | Rev 6266 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6094 stevensc 1
<?php
2
 
6056 efrain 3
use LeadersLinked\Model\ContentReaction;
4
 
5
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
6
$currentUser    = $this->currentUserHelper();
7
$roleName       = $currentUser->getUserTypeId();
8
 
9
 
10
$this->inlineScript()->appendFile($this->basePath('vendors/ckeditor/ckeditor.js'));
11
 
12
$this->headLink()->appendStylesheet($this->basePath('vendors/nprogress/nprogress.css'));
13
$this->inlineScript()->appendFile($this->basePath('vendors/nprogress/nprogress.js'));
14
 
15
$this->inlineScript()->appendFile($this->basePath('vendors/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
16
$this->inlineScript()->appendFile($this->basePath('vendors/jsrender/jsrender.min.js'));
17
 
18
 
19
 
20
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/jquery.validate.js'));
21
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/additional-methods.js'));
22
$this->inlineScript()->appendFile($this->basePath('vendors/jquery-validation/localization/messages_es.js'));
23
 
24
 
25
 
26
$this->inlineScript()->captureStart();
27
echo <<<JS
28
 
29
 
30
 
31
jQuery( document ).ready(function( $ ) {
32
 
33
    $.fn.reload = function() {
34
        NProgress.start();
35
 
36
        $('.posts-section').show();
37
        $.ajax({
38
            'dataType'  : 'json',
39
            'accept'    : 'application/json',
40
            'method'    : 'get',
41
            'url'       :  '$routeComments'
42
        }).done(function(response) {
43
            if(response['success']) {
44
                $('#comment-list').html(
45
                    $( "#commentTemplate" ).render( response['data'])
46
                );
47
 
48
            } else {
49
                $.fn.showError(response['data']);
50
            }
51
 
52
 
53
        }).fail(function( jqXHR, textStatus, errorThrown) {
54
            $.fn.showError(textStatus);
55
        }).always(function() {
56
            $('.posts-section').hide();
57
           NProgress.done();
58
        });
59
 
60
    }
61
 
62
 
63
    $.fn.showFormErrorValidator = function(fieldname, errors) {
64
        var field = $(fieldname);
65
        if(field) {
66
            $(field).addClass('is-invalid');
67
 
68
 
69
            var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
70
            if(element.parent('.btn-file').length) {
71
                error.insertAfter(element.parent().parent());
72
            } else if(element.parent('.toggle').length) {
73
                error.insertAfter(element.parent().parent());
74
            } else {
75
                error.insertAfter(element.parent());
76
            }
77
        }
78
    };
79
 
80
 
81
    var validator = $('#form-comment').validate({
82
        debug: true,
83
        onclick: false,
84
        onkeyup: false,
85
        ignore: [],
86
        rules: {
87
            'comment': {
88
                required: true,
89
            },
90
        },
91
        submitHandler: function(form)
92
        {
93
 
94
			NProgress.start();
95
            $.ajax({
96
                    'dataType'  : 'json',
97
                    'accept'    : 'application/json',
98
                    'method'    : 'post',
99
                    'url'       : '$routeCommentAdd',
100
                    'data'      :  $('#form-comment').serialize()
101
 
102
            }).done(function(response) {
103
				if(response['success']) {
104
                    $('#form-comment #comment').val('');
105
                    $('#comment-list').append(
106
                        $( "#commentTemplate" ).render( response['data'])
107
                    );
108
                } else {
109
                    validator.resetForm();
110
                    if(jQuery.type(response['data']) == 'string') {
111
                        $.fn.showError(response['data']);
112
                    } else  {
113
                        $.each(response['data'], function( fieldname, errors ) {
114
                            $.fn.showFormErrorValidator('#form #' + fieldname, errors);
115
                        });
116
                    }
117
                }
118
            }).fail(function( jqXHR, textStatus, errorThrown) {
119
                $.fn.showError(textStatus);
120
            }).always(function() {
121
                NProgress.done();
122
            });
123
            return false;
124
        },
125
        invalidHandler: function(form, validator) {
126
 
127
        }
128
    });
129
 
130
 
131
    $('body').on('click', 'a.btn-comment-trash', function(e) {
132
        e.preventDefault();
133
        var action = $(this).data('link');
134
        var unique = $(this).data('comment-unique');
135
 
136
 
137
        NProgress.start();
138
        $.ajax({
139
            'dataType'  : 'json',
140
            'accept'    : 'application/json',
141
            'method'    : 'post',
142
            'url'       :  action,
143
        }).done(function(response) {
144
            if(response['success']) {
145
               $('div.comment-' + unique).remove();
146
            } else {
147
                $.fn.showError(response['data']);
148
            }
149
        }).fail(function( jqXHR, textStatus, errorThrown) {
150
            $.fn.showError(textStatus);
151
        }).always(function() {
152
            NProgress.done();
153
        });
154
 
155
    });
156
 
157
    $('body').on('click', 'button.btn-save-reaction', function(e) {
158
        e.preventDefault();
159
        var reaction = $(this).data('reaction');
160
 
161
        NProgress.start();
162
        $.ajax({
163
            'dataType'  : 'json',
164
            'accept'    : 'application/json',
165
            'method'    : 'post',
166
            'url'       :  '$routeSaveReaction',
167
            'data'      : {
168
                'reaction' : reaction
169
            }
170
        }).done(function(response) {
171
            if(response['success']) {
6164 stevensc 172
                 $('#currentReaction').attr('data-reaction', reaction);
6056 efrain 173
                 $('#currentReaction').html(
174
                    $('#reactionTemplate').render({reaction: reaction})
175
                );
176
            } else {
177
                $.fn.showError(response['data']);
178
            }
179
        }).fail(function( jqXHR, textStatus, errorThrown) {
180
            $.fn.showError(textStatus);
181
        }).always(function() {
182
            NProgress.done();
183
        });
184
 
185
    });
186
 
6166 stevensc 187
    $('body').on('click', 'button#currentReaction', function(e) {
6056 efrain 188
        e.preventDefault();
6164 stevensc 189
        var reaction = $(this).data('reaction');
6056 efrain 190
 
6164 stevensc 191
        if(!reaction) return
6056 efrain 192
 
193
        NProgress.start();
194
        $.ajax({
195
            'dataType'  : 'json',
196
            'accept'    : 'application/json',
197
            'method'    : 'post',
198
            'url'       :  '$routeDeleteReaction',
199
        }).done(function(response) {
200
            if(response['success']) {
6164 stevensc 201
                $('#currentReaction').html(
6056 efrain 202
                    $('#reactionTemplate').render({reaction: ''})
6164 stevensc 203
            );
204
        } else {
205
            $.fn.showError(response['data']);
206
        }
6056 efrain 207
        }).fail(function( jqXHR, textStatus, errorThrown) {
208
            $.fn.showError(textStatus);
209
        }).always(function() {
210
            NProgress.done();
211
        });
212
    });
213
 
6138 stevensc 214
    let isMouseHover;
215
 
6126 stevensc 216
    $('body').on('mouseover', '#reaction-container', function(e) {
6138 stevensc 217
        isMouseHover = true;
6120 stevensc 218
        setTimeout(() => {
6125 stevensc 219
            $('.reactions').addClass('active');
6120 stevensc 220
        }, 500);
6116 stevensc 221
    });
6056 efrain 222
 
6126 stevensc 223
    $('body').on('mouseout', '#reaction-container', function(e) {
6143 stevensc 224
        isMouseHover = false;
6136 stevensc 225
        setTimeout(() => {
6143 stevensc 226
            if(!isMouseHover) {
6138 stevensc 227
                $('.reactions').removeClass('active');
228
            }
6143 stevensc 229
        }, 500);
6125 stevensc 230
    });
231
 
6056 efrain 232
    $('#paginator-process-comm').click(function(e) {
233
        e.preventDefault();
234
 
235
        var next_page = $(this).data('next-page');
236
        $.fn.reload(false, next_page);
237
 
238
    });
239
 
240
    $.fn.reload();
241
 
242
 
243
 
244
    $('#currentReaction').html(
245
        $('#reactionTemplate').render({reaction: '$reaction'})
246
    );
247
});
248
JS;
6101 stevensc 249
 
6056 efrain 250
$this->inlineScript()->captureEnd();
6101 stevensc 251
$this->headLink()->appendStylesheet('/look-and-field/knowledge.css');
6149 stevensc 252
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
6056 efrain 253
 
254
?>
255
 
6113 stevensc 256
<section class="companies-info container px-0">
6094 stevensc 257
    <div class="company-title">
258
        <h1 class="title mx-auto">LABEL_KNOWLEDGE_AREA_TITLE</h1>
259
    </div>
6056 efrain 260
 
6094 stevensc 261
    <div class="row">
6253 stevensc 262
        <div class="col-12 col-md-8 mx-auto">
6113 stevensc 263
 
6056 efrain 264
            <div class="knowledge-record-card">
6103 stevensc 265
                <img src="<?php echo $image ?>" alt="">
266
                <h3><?php echo $category ?></h3>
267
                <h2><?php echo $title ?></h2>
268
                <p><?php echo $description ?></p>
6254 stevensc 269
                <div class="knowledge-record-card-actions">
6264 stevensc 270
                    <div class="position-relative" style="max-width: calc(100% / 3);" id="reaction-container">
6262 stevensc 271
                        <button class="btn reaction-btn" id="currentReaction"></button>
6254 stevensc 272
                        <div class="reactions">
273
                            <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_RECOMMENDED ?>" title="Me gusta">
274
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: rgb(116, 5, 249);">
275
                                    <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
276
                                </svg>
277
                            </button>
278
                            <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_SUPPORT ?>" title="Dar apoyo">
279
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="VolunteerActivismIcon" style="color: rgb(100, 149, 237);">
280
                                    <path d="M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25zM20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2z"></path>
281
                                </svg>
282
                            </button>
283
                            <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_LOVE ?>" title="Me encanta">
284
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="FavoriteTwoToneIcon" style="color: rgb(223, 112, 77);">
285
                                    <path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3"></path>
286
                                    <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path>
287
                                </svg>
288
                            </button>
289
                            <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_INTEREST ?>" title="Me interesa">
290
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="TungstenIcon" style="color: rgb(245, 187, 92);transform: rotate(180deg);">
291
                                    <path d="M11 19h2v3h-2zm-9-8h3v2H2zm17 0h3v2h-3zm-3.106 6.8014 1.4072-1.4071 2.1213 2.1213-1.4071 1.4071zm-11.3099.7071 2.1214-2.1213 1.4071 1.4072-2.1213 2.1213zM15 8.02V3H9v5.02c-1.21.92-2 2.35-2 3.98 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.06-2-3.98zM11 5h2v2.1c-.32-.06-.66-.1-1-.1s-.68.04-1 .1V5z"></path>
292
                                </svg>
293
                            </button>
294
                            <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_FUN ?>" title="Me divierte">
295
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="EmojiEmotionsIcon" style="color: rgb(255, 127, 80);">
296
                                    <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4zm3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
297
                                </svg>
298
                            </button>
299
                        </div>
300
                    </div>
6094 stevensc 301
                    <?php if ($attachment) : ?>
6263 stevensc 302
                        <a href="<?php echo $attachment ?>" target="_blank">
6262 stevensc 303
                            <button class="btn reaction-btn">
304
                                <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="DownloadForOfflineIcon" style="color: gray;">
6263 stevensc 305
                                    <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm-1 8V6h2v4h3l-4 4-4-4h3zm6 7H7v-2h10v2  z"></path>
6262 stevensc 306
                                </svg>
307
                                LABEL_KNOWLEDGE_AREA_DOWNLOAD_ATTACHMENT
308
                            </button>
309
                        </a>
6056 efrain 310
                    <?php endif; ?>
6094 stevensc 311
                    <?php if ($link) : ?>
6262 stevensc 312
                        <a href="<?php echo $link ?>" target="_blank" style="flex: 1;">
313
                            <button class="btn reaction-btn">
314
                                LABEL_KNOWLEDGE_AREA_GO_TO_LINK
315
                            </button>
316
                        </a>
6056 efrain 317
                    <?php endif; ?>
318
                </div>
6151 stevensc 319
                <div class="comments-container show px-3">
6153 stevensc 320
                    <form class="feedCommentContainer" id="form-comment" class="form-comment">
6252 stevensc 321
                        <input class="commentInput" type="text" name="comment" id="comment" placeholder="LABEL_WRITE_A_COMMENT">
6151 stevensc 322
                        <button class="btn btn-primary" type="submit">LABEL_SEND</button>
323
                    </form>
324
                    <ul id="comment-list" class="comment-list">
325
                    </ul>
326
                </div>
6056 efrain 327
            </div>
6113 stevensc 328
 
6094 stevensc 329
        </div>
6113 stevensc 330
    </div>
6056 efrain 331
 
6094 stevensc 332
    <div class="row">
333
        <div class="col-12 ">
334
            <div class="posts-section">
335
                <div class="process-comm" id="paginator-process-comm">
336
                    <div class="spinner">
337
                        <div class="bounce1"></div>
338
                        <div class="bounce2"></div>
339
                        <div class="bounce3"></div>
340
                    </div>
341
                </div>
342
            </div>
6103 stevensc 343
 
6056 efrain 344
        </div>
6149 stevensc 345
        <?php ?>
346
    </div>
347
    </div>
6056 efrain 348
</section>
349
 
350
 
351
<script id="reactionTemplate" type="text/x-jsrender">
6094 stevensc 352
    {{if reaction === '<?php echo ContentReaction::REACTION_FUN ?>'}}
353
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="EmojiEmotionsIcon" style="color: rgb(255, 127, 80);">
354
        <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4zm3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
355
    </svg>
6164 stevensc 356
    Me Divierte
6094 stevensc 357
    {{/if}}
358
    {{if reaction === '<?php echo ContentReaction::REACTION_INTEREST ?>'}}
6169 stevensc 359
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="TungstenIcon" style="color: rgb(245, 187, 92);transform: rotate(180deg);">
6094 stevensc 360
        <path d="M11 19h2v3h-2zm-9-8h3v2H2zm17 0h3v2h-3zm-3.106 6.8014 1.4072-1.4071 2.1213 2.1213-1.4071 1.4071zm-11.3099.7071 2.1214-2.1213 1.4071 1.4072-2.1213 2.1213zM15 8.02V3H9v5.02c-1.21.92-2 2.35-2 3.98 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.06-2-3.98zM11 5h2v2.1c-.32-.06-.66-.1-1-.1s-.68.04-1 .1V5z"></path>
361
    </svg>
6164 stevensc 362
    Me Interesa
6094 stevensc 363
    {{/if}}
364
    {{if reaction === '<?php echo ContentReaction::REACTION_LOVE ?>'}}
365
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="FavoriteTwoToneIcon" style="color: rgb(223, 112, 77);">
366
        <path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3"></path>
367
        <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path>
368
    </svg>
6164 stevensc 369
    Me Encanta
6094 stevensc 370
    {{/if}}
371
    {{if reaction === '<?php echo ContentReaction::REACTION_RECOMMENDED ?>'}}
372
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: rgb(116, 5, 249);">
373
        <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
374
    </svg>
6164 stevensc 375
    Recomendado
6094 stevensc 376
    {{/if}}
377
    {{if reaction === '<?php echo ContentReaction::REACTION_SUPPORT ?>'}}
378
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="VolunteerActivismIcon" style="color: rgb(100, 149, 237);">
379
        <path d="M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25zM20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2z"></path>
380
    </svg>
6164 stevensc 381
    Lo Apoyo
6094 stevensc 382
    {{/if}}
6164 stevensc 383
    {{if reaction === ''}}
384
    <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="RecommendIcon" style="color: gray;">
385
        <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"></path>
386
    </svg>
387
    Reaccionar
388
    {{/if}}
6056 efrain 389
</script>
390
 
391
 
392
<script id="commentTemplate" type="text/x-jsrender">
393
    <li>
6149 stevensc 394
        <div class="comment-container">
395
	        <div class="comment-content comment-{{:unique}}" >
396
	            <div class="info">
397
                    <a href="{{>user_url}}">
398
                        <h3>{{>user_name}}</h3>
399
                    </a>
400
                    <span>
401
                        {{>time_elapsed}}
402
                        {{if link_delete}}
403
                        <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}">
404
                            <i class="fa fa-trash"></i>
405
                        </a>
406
                        {{/if}}
6056 efrain 407
                    </span>
6149 stevensc 408
                </div>
6056 efrain 409
		      <p>{{>comment}}</p>
410
		  </div>
411
	   </div>
412
    </li>
6094 stevensc 413
</script>