Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7127 | Rev 7242 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7127 Rev 7128
Línea 1821... Línea 1821...
1821
                $user = $userMapper->fetchOne($record->user_id);
1821
                $user = $userMapper->fetchOne($record->user_id);
Línea 1822... Línea 1822...
1822
               
1822
               
1823
    
1823
    
1824
                if ($user->id == $currentUser->id) {
-
 
1825
                    $link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
-
 
1826
                    array_push($comments, [
-
 
1827
                        'unique' => uniqid(),
-
 
1828
                        'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
-
 
1829
                        'user_name' => $user->first_name . ' ' . $user->last_name,
-
 
1830
                        'company' => $owner,
-
 
1831
                        'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
-
 
1832
                        'time_elapsed' => Functions::timeAgo($record->added_on, $now),
-
 
1833
                        'comment' => $record->comment,
-
 
1834
                        'link_delete' => $link_delete
1824
                if ($user->id == $currentUser->id) {
1835
                    ]);
1825
                    $link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
1836
                } else {
-
 
1837
                    $link_delete = '';
-
 
1838
                    array_push($comments, [
-
 
1839
                        'unique' => uniqid(),
-
 
1840
                        'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
-
 
1841
                        'user_name' => $user->first_name . ' ' . $user->last_name,
-
 
1842
                        'company' => $owner,
-
 
1843
                        'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
-
 
1844
                        'time_elapsed' => Functions::timeAgo($record->added_on, $now),
-
 
1845
                        'comment' => $record->comment,
-
 
1846
                        'link_delete' => $link_delete
-
 
1847
                    ]);
-
 
1848
                    
1826
                } else {
-
 
1827
                    $link_delete = '';
-
 
1828
                }
-
 
1829
                array_push($comments, [
-
 
1830
                    'unique' => uniqid(),
-
 
1831
                    'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
-
 
1832
                    'user_name' => $user->first_name . ' ' . $user->last_name,
-
 
1833
                    'company' => $owner,
-
 
1834
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
-
 
1835
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
-
 
1836
                    'comment' => $record->comment,
1849
                    
1837
                    'link_delete' => $link_delete
1850
                }
-
 
1851
            }
-
 
1852
        
-
 
1853
 
1838
                ]);
Línea 1854... Línea 1839...
1854
           
1839
            }
1855
        }
1840
        }
1856
        
1841