Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
3657 stevensc 1
<?php
16761 efrain 2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
 
1 www 4
$currentUser = $this->currentUserHelper();
5
$currentUser = $currentUser->getUser();
6
 
7
$routeTimeline = $this->url('feeds/timeline');
8
 
16761 efrain 9
$roleName = $currentUser->getUserTypeId();
10
$allowFastSurvey = $acl->isAllowed($roleName, 'fast-survey') ? 1 : 0;
11
 
12
 
7536 stevensc 13
$js = <<<JS
16761 efrain 14
const routeTimeline = "$routeTimeline";
15
const allowFastSurvey = "$allowFastSurvey";
7154 stevensc 16
JS;
17
 
7536 stevensc 18
$this->inlineScript()->appendScript($js);
15179 stevensc 19
$this->headLink()->appendStylesheet('/css/style.css');
16652 stevensc 20
$this->headLink()->appendStylesheet('/react-bundles/feeds/main.css');
7536 stevensc 21
$this->inlineScript()->appendFile('/react-bundles/feeds/feedsBundle.js');
1 www 22
?>
23
 
7536 stevensc 24
<div id="admin-feeds">
25
</div>