Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6218 Rev 6219
Línea 1710... Línea 1710...
1710
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'company',  'code' => $company->uuid, 'filename' =>  $company->image]),
1710
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'company',  'code' => $company->uuid, 'filename' =>  $company->image]),
1711
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
1711
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
1712
                    'comment' => $record->comment,
1712
                    'comment' => $record->comment,
1713
                    'link_delete' => $link_delete
1713
                    'link_delete' => $link_delete
1714
                ]);
1714
                ]);
-
 
1715
            } elseif ($feed->type == Feed::TYPE_UPDATE) {
-
 
1716
                $companyMapper = CompanyMapper::getInstance($this->adapter);
-
 
1717
                $company = $companyMapper->fetchOne($feed->company_id);
-
 
1718
                if ($record->user_id == $currentUser->id) {
-
 
1719
                    $link_delete = $this->url()->fromRoute('feed/comment/delete', ['id' => $feed->uuid, 'comment' => $record->uuid]);
-
 
1720
                } else {
-
 
1721
                    $link_delete = '';
-
 
1722
                }
-
 
1723
 
-
 
1724
                array_push($comments, [
-
 
1725
                    'unique' => uniqid(),
-
 
1726
                    'user_url' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
-
 
1727
                    'user_name' => $user->first_name . ' ' . $user->last_name,
-
 
1728
                    /* Aqui es Anderson */
-
 
1729
                    //'company' => $company->image,
-
 
1730
                    'user_image' => $this->url()->fromRoute('storage', ['type' => 'user',  'code' => $user->uuid, 'filename' =>  $user->image]),
-
 
1731
                    'time_elapsed' => Functions::timeAgo($record->added_on, $now),
-
 
1732
                    'comment' => $record->comment,
-
 
1733
                    'link_delete' => $link_delete
-
 
1734
                ]);
1715
            }
1735
            }
1716
        }
1736
        }
1717
        $item['comment_add_url'] = $this->url()->fromRoute('feed/comment', ['id' => $feed->uuid]);
1737
        $item['comment_add_url'] = $this->url()->fromRoute('feed/comment', ['id' => $feed->uuid]);
1718
        $item['comments'] = $comments;
1738
        $item['comments'] = $comments;
1719
        $item['companies'] = $company;
1739
        $item['companies'] = $company;