diff --git a/src/index.pug b/src/index.pug index 2711a50..025e81c 100644 --- a/src/index.pug +++ b/src/index.pug @@ -52,6 +52,10 @@ html(lang="en") main#content.segment.lg-three-quarter.text-top.notLoggedIn + if endpoints.get.dashboards + #dashboard(hidden, data-view="dashboard") + include views/page-dashboard.pug + if endpoints.get.projects #project(hidden, data-view="project", no-render).with-sidebar.whitespace-normal hubl-reactivity(bind-user nested-field='inbox' target-src="store://user.projects") @@ -79,9 +83,6 @@ html(lang="en") - //- if endpoints.get.dashboards - //- #dashboard(hidden, data-view="dashboard") - //- include views/page-dashboard.pug //- if publicDirectory && endpoints.get.users //- #members(hidden, data-view="members", no-render) diff --git a/src/views/page-dashboard.pug b/src/views/page-dashboard.pug index 0e73594..dcbf6a6 100644 --- a/src/views/page-dashboard.pug +++ b/src/views/page-dashboard.pug @@ -1,5 +1,4 @@ -div.segment.padding-top-small.padding-right-large.padding-bottom-small.padding-left-large - h2.text-xlarge.text-color-heading.text-uppercase(data-trans='dashboard.title') +div.segment.lg-full.padding-top-xlarge.padding-right-large.padding-bottom-xlarge.padding-left-large.whitespace-normal solid-dashboard( data-src=`${endpoints.dashboards || endpoints.get.dashboards}` ) diff --git a/src/views/partials/menu-left.pug b/src/views/partials/menu-left.pug index eb138d3..d46e6ae 100644 --- a/src/views/partials/menu-left.pug +++ b/src/views/partials/menu-left.pug @@ -97,12 +97,12 @@ solid-widget(name='hubl-menu-fix-url-project') solid-router#navbar-router(default-route='dashboard') - //- if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards) - //- solid-route.menu.segment.lg-full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='dashboard') - //- div.segment.margin-right-xxsmall - //- div.icon.icon-small.icon-home - //- div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.dashboard") - //- div.divider + if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards) + solid-route.menu.segment.lg-full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='dashboard') + div.segment.margin-right-xxsmall + div.icon.icon-small.icon-home + div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.dashboard") + div.divider //- if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) //- solid-route.menu.segment.lg-full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='members') //- div.segment.margin-right-xxsmall