Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7242 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7242 Rev 7244
Línea 1824... Línea 1824...
1824
                if ($user->id == $currentUser->id) {
1824
                if ($user->id == $currentUser->id) {
1825
                    $link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
1825
                    $link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
1826
                } else {
1826
                } else {
1827
                    $link_delete = '';
1827
                    $link_delete = '';
1828
                }
1828
                }
1829
                array_push( $item['comments'], [
1829
                array_push($comments , [
1830
                    'unique' => uniqid(),
1830
                    'unique' => uniqid(),
1831
                    'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
1831
                    'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
1832
                    'user_name' => $user->first_name . ' ' . $user->last_name,
1832
                    'user_name' => $user->first_name . ' ' . $user->last_name,
1833
                    'company' => $owner,
1833
                    'company' => $owner,
1834
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
1834
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
1835
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
1835
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
1836
                    'comment' => $record->comment,
1836
                    'comment' => $record->comment,
1837
                    'link_delete' => $link_delete
1837
                    'link_delete' => $link_delete
1838
                ]);
1838
                ]);
1839
            }
1839
            }
-
 
1840
            
-
 
1841
            $item['comments'] = $comments;
1840
        }
1842
        }
Línea 1841... Línea 1843...
1841
        
1843
        
1842
        /*
1844
        /*
1843
        echo '<pre>';
1845
        echo '<pre>';