public function show(Request $request)
    {
        $count = $request->query->get('count', \Bolt\Stack::MAX_ITEMS);
        $options = $request->query->get('options');

        if ($options === 'ck') {
            $template = '@bolt/components/stack/ck.twig';
        } elseif ($options === 'list') {
            $template = '@bolt/components/stack/list.twig';
        } else {
            $template = '@bolt/components/stack/panel.twig';
        }

        $context = [
            'count'     => $count,
            'filetypes' => $this->getOption('general/accept_file_types'),
            'namespace' => $this->app['upload.namespace'],
            'canUpload' => $this->isAllowed('files:uploads'),
        ];

        return $this->render($template, ['context' => $context]);
    }
public function show(Request $request)
    {
        $count = $request->query->get('count', \Bolt\Stack::MAX_ITEMS);
        $options = $request->query->get('options');

        if ($options === 'ck') {
            $template = '@bolt/components/stack/ck.twig';
        } elseif ($options === 'list') {
            $template = '@bolt/components/stack/list.twig';
        } else {
            $template = '@bolt/components/stack/panel.twig';
        }

        $context = [
            'count'     => $count,
            'filetypes' => $this->getOption('general/accept_file_types'),
            'namespace' => $this->app['upload.namespace'],
            'canUpload' => $this->isAllowed('files:uploads'),
        ];

        return $this->render($template, ['context' => $context]);
    }
public function show ( Request $ request ) { $ count = $ request -> query -> get ( 'count' , \ Bolt \ Stack :: MAX_ITEMS ) ; $ options = $ request -> query -> get ( 'options' ) ; if ( $ options === 'ck' ) { $ template = '@bolt/components/stack/ck.twig' ; } elseif ( $ options === 'list' ) { $ template = '@bolt/components/stack/list.twig' ; } else { $ template = '@bolt/components/stack/panel.twig' ; } $ context = [ 'count' => $ count , 'filetypes' => $ this -> getOption ( 'general/accept_file_types' ) , 'namespace' => $ this -> app [ 'upload.namespace' ] , 'canUpload' => $ this -> isAllowed ( 'files:uploads' ) , ] ; return $ this -> render ( $ template , [ 'context' => $ context ] ) ; }
Render a user's current stack.

@param Request $request

@return TemplateResponse
Render a user s current stack .