| 6521 | efrain | 1 | <?php
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 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 | $routeComments = '';
 | 
        
           |  |  | 26 | $routeCommentAdd = '';
 | 
        
           |  |  | 27 | $reaction = '';
 | 
        
           |  |  | 28 | $routeSaveReaction = '';
 | 
        
           |  |  | 29 | $routeDeleteReaction = '';
 | 
        
           |  |  | 30 |   | 
        
           |  |  | 31 |   | 
        
           |  |  | 32 |   | 
        
           |  |  | 33 | $this->inlineScript()->captureStart();
 | 
        
           |  |  | 34 | echo <<<JS
 | 
        
           |  |  | 35 |   | 
        
           |  |  | 36 |   | 
        
           |  |  | 37 |   | 
        
           |  |  | 38 | jQuery( document ).ready(function( $ ) {
 | 
        
           |  |  | 39 |   | 
        
           |  |  | 40 |     $.fn.reload = function() {
 | 
        
           |  |  | 41 |         NProgress.start();
 | 
        
           |  |  | 42 |   | 
        
           |  |  | 43 |         $('.posts-section').show();
 | 
        
           |  |  | 44 |         $.ajax({
 | 
        
           |  |  | 45 |             'dataType'  : 'json',
 | 
        
           |  |  | 46 |             'accept'    : 'application/json',
 | 
        
           |  |  | 47 |             'method'    : 'get',
 | 
        
           |  |  | 48 |             'url'       :  '$link_answers'
 | 
        
           |  |  | 49 |         }).done(function(response) {
 | 
        
           |  |  | 50 |             if(response['success']) {
 | 
        
           |  |  | 51 |                 /*$('#comment-list').html(
 | 
        
           |  |  | 52 |                     $( "#commentTemplate" ).render( response['data'])
 | 
        
           |  |  | 53 |                 );*/
 | 
        
           |  |  | 54 |   | 
        
           |  |  | 55 |             } else {
 | 
        
           |  |  | 56 |                 $.fn.showError(response['data']);
 | 
        
           |  |  | 57 |             }
 | 
        
           |  |  | 58 |   | 
        
           |  |  | 59 |   | 
        
           |  |  | 60 |         }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 61 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 62 |         }).always(function() {
 | 
        
           |  |  | 63 |             $('.posts-section').hide();
 | 
        
           |  |  | 64 |            NProgress.done();
 | 
        
           |  |  | 65 |         });
 | 
        
           |  |  | 66 |   | 
        
           |  |  | 67 |     }
 | 
        
           |  |  | 68 |   | 
        
           |  |  | 69 |   | 
        
           |  |  | 70 |     $.fn.showFormErrorValidator = function(fieldname, errors) {
 | 
        
           |  |  | 71 |         var field = $(fieldname);
 | 
        
           |  |  | 72 |         if(field) {
 | 
        
           |  |  | 73 |             $(field).addClass('is-invalid');
 | 
        
           |  |  | 74 |   | 
        
           |  |  | 75 |   | 
        
           |  |  | 76 |             var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
 | 
        
           |  |  | 77 |             if(element.parent('.btn-file').length) {
 | 
        
           |  |  | 78 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 79 |             } else if(element.parent('.toggle').length) {
 | 
        
           |  |  | 80 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 81 |             } else {
 | 
        
           |  |  | 82 |                 error.insertAfter(element.parent());
 | 
        
           |  |  | 83 |             }
 | 
        
           |  |  | 84 |         }
 | 
        
           |  |  | 85 |     };
 | 
        
           |  |  | 86 |   | 
        
           |  |  | 87 |   | 
        
           |  |  | 88 |  $.validator.setDefaults({
 | 
        
           |  |  | 89 |         debug: true,
 | 
        
           |  |  | 90 |         highlight: function(element) {
 | 
        
           |  |  | 91 |             $(element).addClass('is-invalid');
 | 
        
           |  |  | 92 |         },
 | 
        
           |  |  | 93 |         unhighlight: function(element) {
 | 
        
           |  |  | 94 |             $(element).removeClass('is-invalid');
 | 
        
           |  |  | 95 |         },
 | 
        
           |  |  | 96 |         errorElement: 'span',
 | 
        
           |  |  | 97 |         errorClass: 'error invalid-feedback',
 | 
        
           |  |  | 98 |         errorPlacement: function(error, element) {
 | 
        
           |  |  | 99 |             if(element.parent('.btn-file').length) {
 | 
        
           |  |  | 100 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 101 |             } else if(element.parent('.toggle').length) {
 | 
        
           |  |  | 102 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 103 |             } else {
 | 
        
           |  |  | 104 |                 error.insertAfter(element.parent());
 | 
        
           |  |  | 105 |             }
 | 
        
           |  |  | 106 |         }
 | 
        
           |  |  | 107 |     });
 | 
        
           |  |  | 108 |   | 
        
           |  |  | 109 |   | 
        
           |  |  | 110 |     $.fn.showFormErrorValidator = function(fieldname, errors) {
 | 
        
           |  |  | 111 |         var field = $(fieldname);
 | 
        
           |  |  | 112 |         if(field) {
 | 
        
           |  |  | 113 |             $(field).addClass('is-invalid');
 | 
        
           |  |  | 114 |   | 
        
           |  |  | 115 |   | 
        
           |  |  | 116 |             var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
 | 
        
           |  |  | 117 |             if(element.parent('.btn-file').length) {
 | 
        
           |  |  | 118 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 119 |             } else if(element.parent('.toggle').length) {
 | 
        
           |  |  | 120 |                 error.insertAfter(element.parent().parent());
 | 
        
           |  |  | 121 |             } else {
 | 
        
           |  |  | 122 |                 error.insertAfter(element.parent());
 | 
        
           |  |  | 123 |             }
 | 
        
           |  |  | 124 |         }
 | 
        
           |  |  | 125 |     };
 | 
        
           |  |  | 126 |   | 
        
           |  |  | 127 |   | 
        
           |  |  | 128 |   | 
        
           |  |  | 129 |     var validatorComment = $('#form-comment').validate({
 | 
        
           |  |  | 130 |         debug: true,
 | 
        
           |  |  | 131 |         onclick: false,
 | 
        
           |  |  | 132 |         onkeyup: false,
 | 
        
           |  |  | 133 |         ignore: [],
 | 
        
           |  |  | 134 |         rules: {
 | 
        
           |  |  | 135 |             'comment': {
 | 
        
           |  |  | 136 |                 required: true,
 | 
        
           |  |  | 137 |                 maxlength: 256
 | 
        
           |  |  | 138 |             },
 | 
        
           |  |  | 139 |         },
 | 
        
           |  |  | 140 |         submitHandler: function(form)
 | 
        
           |  |  | 141 |         {
 | 
        
           |  |  | 142 |   | 
        
           |  |  | 143 | 			NProgress.start();
 | 
        
           |  |  | 144 |             $.ajax({
 | 
        
           |  |  | 145 |                     'dataType'  : 'json',
 | 
        
           |  |  | 146 |                     'accept'    : 'application/json',
 | 
        
           |  |  | 147 |                     'method'    : 'post',
 | 
        
           |  |  | 148 |                     'url'       : '$routeCommentAdd',
 | 
        
           |  |  | 149 |                     'data'      :  $('#form-comment').serialize()
 | 
        
           |  |  | 150 |   | 
        
           |  |  | 151 |             }).done(function(response) {
 | 
        
           |  |  | 152 | 				if(response['success']) {
 | 
        
           |  |  | 153 |                     $('#form-comment #comment').val('');
 | 
        
           |  |  | 154 |                     $('#comment-list').append(
 | 
        
           |  |  | 155 |                         $( "#commentTemplate" ).render( response['data'])
 | 
        
           |  |  | 156 |                     );
 | 
        
           |  |  | 157 |                 } else {
 | 
        
           |  |  | 158 |                     validator.resetForm();
 | 
        
           |  |  | 159 |                     if(jQuery.type(response['data']) == 'string') {
 | 
        
           |  |  | 160 |                         $.fn.showError(response['data']);
 | 
        
           |  |  | 161 |                     } else  {
 | 
        
           |  |  | 162 |                         $.each(response['data'], function( fieldname, errors ) {
 | 
        
           |  |  | 163 |                             $.fn.showFormErrorValidator('#form-comment #' + fieldname, errors);
 | 
        
           |  |  | 164 |                         });
 | 
        
           |  |  | 165 |                     }
 | 
        
           |  |  | 166 |                 }
 | 
        
           |  |  | 167 |             }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 168 |                 $.fn.showError(textStatus);
 | 
        
           |  |  | 169 |             }).always(function() {
 | 
        
           |  |  | 170 |                 NProgress.done();
 | 
        
           |  |  | 171 |             });
 | 
        
           |  |  | 172 |             return false;
 | 
        
           |  |  | 173 |         },
 | 
        
           |  |  | 174 |         invalidHandler: function(form, validator) {
 | 
        
           |  |  | 175 |   | 
        
           |  |  | 176 |         }
 | 
        
           |  |  | 177 |     });
 | 
        
           |  |  | 178 |   | 
        
           |  |  | 179 |   | 
        
           |  |  | 180 |   | 
        
           |  |  | 181 |   | 
        
           |  |  | 182 |     $.fn.reload();
 | 
        
           |  |  | 183 |   | 
        
           |  |  | 184 |   | 
        
           |  |  | 185 |   | 
        
           |  |  | 186 |     $('#currentReaction').html(
 | 
        
           |  |  | 187 |         $('#reactionTemplate').render({reaction: '$reaction'})
 | 
        
           |  |  | 188 |     );
 | 
        
           |  |  | 189 |   | 
        
           |  |  | 190 |   | 
        
           |  |  | 191 |     $('button.btn-cancel').click(function(e) {
 | 
        
           |  |  | 192 |         e.preventDefault();
 | 
        
           |  |  | 193 |   | 
        
           |  |  | 194 |         $('#modal-answer').modal('hide');
 | 
        
           |  |  | 195 |   | 
        
           |  |  | 196 |     });
 | 
        
           |  |  | 197 |   | 
        
           |  |  | 198 |   | 
        
           |  |  | 199 | });
 | 
        
           |  |  | 200 | JS;
 | 
        
           |  |  | 201 |   | 
        
           |  |  | 202 | $this->inlineScript()->captureEnd();
 | 
        
           |  |  | 203 | $this->headLink()->appendStylesheet('/look-and-field/my-coach.css');
 | 
        
           |  |  | 204 | $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
 | 
        
           |  |  | 205 |   | 
        
           |  |  | 206 | ?>
 | 
        
           |  |  | 207 |   | 
        
           |  |  | 208 | <section class="companies-info container px-0">
 | 
        
           |  |  | 209 |     <div class="company-title">
 | 
        
           |  |  | 210 |         <h1 class="title mx-auto">LABEL_MY_COACH</h1>
 | 
        
           |  |  | 211 |     </div>
 | 
        
           |  |  | 212 |   | 
        
           |  |  | 213 |   | 
        
           |  |  | 214 |   | 
        
           |  |  | 215 |   | 
        
           |  |  | 216 |   | 
        
           |  |  | 217 |   | 
        
           |  |  | 218 |   | 
        
           |  |  | 219 |     <!-- The Modal -->
 | 
        
           |  |  | 220 |   | 
        
           |  |  | 221 |   | 
        
           |  |  | 222 | </section>
 | 
        
           |  |  | 223 |   | 
        
           |  |  | 224 |   | 
        
           |  |  | 225 | <script id="reactionTemplate" type="text/x-jsrender">
 | 
        
           |  |  | 226 |   | 
        
           |  |  | 227 | </script>
 | 
        
           |  |  | 228 |   | 
        
           |  |  | 229 |   | 
        
           |  |  | 230 | <script id="answerTemplate" type="text/x-jsrender">
 | 
        
           |  |  | 231 | 	<div class="row">
 | 
        
           |  |  | 232 |         <div class="col-12 col-md-8 mx-auto">
 | 
        
           |  |  | 233 |   | 
        
           |  |  | 234 |             <div class="my-coach-record-card" >
 | 
        
           |  |  | 235 |                 <div class="my-coach-record-card-container" >
 | 
        
           |  |  | 236 |                     <div class="my-coach-record-card-resume" >
 | 
        
           |  |  | 237 |                         <ul>
 | 
        
           |  |  | 238 |                             <li><span id="answers-<?php echo $uuid ?>"> <?php echo $answers ?> </span> LABEL_MY_COACH_ANSWERS</li>
 | 
        
           |  |  | 239 |                             <li><span id="reactions-<?php echo $uuid ?>"> <?php echo $reactions ?> </span> LABEL_MY_COACH_REACTIONS</li>
 | 
        
           |  |  | 240 |                             <li><span id="views-<?php echo $uuid ?>"> <?php echo $views ?> </span> LABEL_MY_COACH_VIEWS</li>
 | 
        
           |  |  | 241 |                         </ul>
 | 
        
           |  |  | 242 |                     </div>
 | 
        
           |  |  | 243 |                     <div class="my-coach-record-card-content" >
 | 
        
           |  |  | 244 |     <div class="row">
 | 
        
           |  |  | 245 |         <div class="col-12 col-md-8 mx-auto" >
 | 
        
           |  |  | 246 |   | 
        
           |  |  | 247 |                 <div class="my-coach-record-card-actions">
 | 
        
           |  |  | 248 |                     <div class="position-relative" id="reaction-container">
 | 
        
           |  |  | 249 |                         <button class="btn reaction-btn" id="currentReaction"></button>
 | 
        
           |  |  | 250 |                         <div class="reactions">
 | 
        
           |  |  | 251 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_RECOMMENDED ?>" title="Me gusta">
 | 
        
           |  |  | 252 |                                 <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);">
 | 
        
           |  |  | 253 |                                     <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>
 | 
        
           |  |  | 254 |                                 </svg>
 | 
        
           |  |  | 255 |                             </button>
 | 
        
           |  |  | 256 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_SUPPORT ?>" title="Dar apoyo">
 | 
        
           |  |  | 257 |                                 <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);">
 | 
        
           |  |  | 258 |                                     <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>
 | 
        
           |  |  | 259 |                                 </svg>
 | 
        
           |  |  | 260 |                             </button>
 | 
        
           |  |  | 261 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_LOVE ?>" title="Me encanta">
 | 
        
           |  |  | 262 |                                 <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);">
 | 
        
           |  |  | 263 |                                     <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>
 | 
        
           |  |  | 264 |                                     <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>
 | 
        
           |  |  | 265 |                                 </svg>
 | 
        
           |  |  | 266 |                             </button>
 | 
        
           |  |  | 267 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_INTEREST ?>" title="Me interesa">
 | 
        
           |  |  | 268 |                                 <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);">
 | 
        
           |  |  | 269 |                                     <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>
 | 
        
           |  |  | 270 |                                 </svg>
 | 
        
           |  |  | 271 |                             </button>
 | 
        
           |  |  | 272 |                             <button class="btn-save-reaction" data-reaction="<?php echo ContentReaction::REACTION_FUN ?>" title="Me divierte">
 | 
        
           |  |  | 273 |                                 <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);">
 | 
        
           |  |  | 274 |                                     <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>
 | 
        
           |  |  | 275 |                                 </svg>
 | 
        
           |  |  | 276 |                             </button>
 | 
        
           |  |  | 277 |                         </div>
 | 
        
           |  |  | 278 |                     </div>
 | 
        
           |  |  | 279 |                 </div>
 | 
        
           |  |  | 280 |   | 
        
           |  |  | 281 |   | 
        
           |  |  | 282 |                 <div class="comments-container show px-3">
 | 
        
           |  |  | 283 |                     <form class="feedCommentContainer"  id="form-comment" class="form-comment" action="{{:link_add_comment}}>
 | 
        
           |  |  | 284 |                         <input class="commentInput" type="text" name="comment" id="comment" maxlength="256" placeholder="LABEL_WRITE_A_COMMENT">
 | 
        
           |  |  | 285 |                         <button class="btn btn-primary" type="submit">LABEL_SEND</button>
 | 
        
           |  |  | 286 |                     </form>
 | 
        
           |  |  | 287 |                     <ul id="comment-list-{{:uuid:}}" class="comment-list">
 | 
        
           |  |  | 288 |                     </ul>
 | 
        
           |  |  | 289 |                 </div>
 | 
        
           |  |  | 290 |   | 
        
           |  |  | 291 |         </div>
 | 
        
           |  |  | 292 |     </div>
 | 
        
           |  |  | 293 |   | 
        
           |  |  | 294 | </script>
 | 
        
           |  |  | 295 |   | 
        
           |  |  | 296 |   | 
        
           |  |  | 297 | <script id="commentTemplate" type="text/x-jsrender">
 | 
        
           |  |  | 298 |     <li>
 | 
        
           |  |  | 299 |         <div class="comment-container">
 | 
        
           |  |  | 300 | 	        <div class="comment-content comment-{{:unique}}" >
 | 
        
           |  |  | 301 | 	            <div class="info">
 | 
        
           |  |  | 302 |                     <a href="{{>user_url}}">
 | 
        
           |  |  | 303 |                         <h3>{{>user_name}}</h3>
 | 
        
           |  |  | 304 |                     </a>
 | 
        
           |  |  | 305 |                     <span>
 | 
        
           |  |  | 306 |                         {{>time_elapsed}}
 | 
        
           |  |  | 307 |                         {{if link_delete}}
 | 
        
           |  |  | 308 |                         <a href="#" class="btn-comment-trash" data-link="{{:link_delete}}" data-comment-unique="{{>unique}}">
 | 
        
           |  |  | 309 |                             <i class="fa fa-trash"></i>
 | 
        
           |  |  | 310 |                         </a>
 | 
        
           |  |  | 311 |                         {{/if}}
 | 
        
           |  |  | 312 |                     </span>
 | 
        
           |  |  | 313 |                 </div>
 | 
        
           |  |  | 314 | 		      <p>{{>comment}}</p>
 | 
        
           |  |  | 315 | 		  </div>
 | 
        
           |  |  | 316 | 	   </div>
 | 
        
           |  |  | 317 |     </li>
 | 
        
           |  |  | 318 | </script>
 |