Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16763 | Rev 16822 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
$currentUser    = $this->currentUserHelper();

$roleName = $currentUser->getUserTypeId();

$routeTimeline = $this->url('feeds/timeline');
$allowFastSurvey = $acl->isAllowed($roleName, 'fast-survey') ? 1 : 0;


$js = <<<JS
const routeTimeline = "$routeTimeline";
const allowFastSurvey = $allowFastSurvey;
JS;

$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/css/style.css');
$this->headLink()->appendStylesheet('/react-bundles/feeds/main.css');
$this->inlineScript()->appendFile('/react-bundles/feeds/feedsBundle.js');
?>

<div id="admin-feeds">
</div>