feature: dashboard

This commit is contained in:
gaelle morin 2021-01-11 18:45:43 +01:00
parent 322e4062fd
commit 5ea6edcc84
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
3 changed files with 11 additions and 11 deletions

View File

@ -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)

View File

@ -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}`
)

View File

@ -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