added 'see all' to last docs block in home #459

This commit is contained in:
2019-03-19 12:02:41 +01:00
parent a6f139db32
commit 02f79c5eb9
3 changed files with 21 additions and 1 deletions
@@ -89,6 +89,19 @@ function template_preprocess_edlp_home(&$vars){
'#theme' => 'item_list',
'#items' => [],
),
'seeall'=>array(
'#type' => 'link',
'#prefix'=> '<nav>',
'#title' => t("See all"),
'#suffix'=> '</nav>',
'#url' => $lastdocs_url,
'#options'=>array(
'attributes' => array(
'data-drupal-link-system-path' => $lastdocs_url->getInternalPath(),
'class' => array('ajax-link'),
)
)
),
);
foreach($vars['lastdocs_items'] as $node){
$lastdocs['list']['#items'][] = $node_view_builder->view($node, 'search_index');
File diff suppressed because one or more lines are too long
@@ -560,6 +560,11 @@ main[role="main"]{
@include entree-micro-square;
}
}
nav{
a{
font-size: 0.756em;
}
}
}
div.lastdocs{
@@ -1678,6 +1683,8 @@ body.path-agenda main .col{
// | __ / _ \ ' \/ -_)
// |_||_\___/_|_|_\___|
// ___ _ _ _
// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<