feature: right-hand menu for circles

This commit is contained in:
gaelle morin 2020-12-11 21:44:00 +01:00
parent 64a78a927a
commit ebefe0405d
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
5 changed files with 149 additions and 153 deletions

View File

@ -58,7 +58,7 @@ html(lang="en")
include page-project.pug
if endpoints.circles || (endpoints.get && endpoints.get.circles)
#circle(hidden, data-view="circle").with-sidebar
#circle(hidden, data-view="circle").segment.lg-full.with-sidebar
if (endpoints.post && endpoints.post.circles) && (endpoints.get && endpoints.get.circles)
hubl-reactivity(data-src=`${endpoints.post.circles}joinable/` target-src=`${endpoints.get.circles}`)
hubl-reactivity(data-src=`${endpoints.post.circles}` target-src=`${endpoints.get.circles}`)

View File

@ -1,6 +1,4 @@
.views-container.sidebar-is-closed
.content-box
div.content-box__height
solid-ac-checker(permission='acl:Read', bind-resources)
#circle-chat(hidden, data-view="circle-chat")
include views/circle/page-circle-chat.pug
@ -14,32 +12,32 @@
include views/circle/page-circle-polls.pug
nav.jsRightMenu(role='navigation')
solid-router.text-color-heading.reverse.text-bold(default-route='circle-chat')
solid-router.text-color-heading.text-bold(default-route='circle-chat')
ul
li.segment.padding-small.text-right.jsOffsiteToggle
span.icon.icon-arrow-right.xxsmall.icon-margin-right-xxsmall
li.segment.padding-small.text-right.text-normal.jsOffsiteToggle
span.icon.icon-arrow-right.xxsmall.margin-right-xxsmall
a(data-trans='circle.menuRight.fold')
solid-route(name='circle-chat')
li.segment.padding-large
span.icon.ci-chat.large.icon-margin-right
li.segment.padding-medium
span.icon.ci-chat.icon-xlarge.margin-right-small
a(data-trans='circle.menuRight.chat')
solid-route(name='circle-information')
li.segment.padding-large
span.icon.ci-information.large.icon-margin-right
li.segment.padding-medium
.icon.ci-information.icon-xlarge.margin-right-small
a(data-trans='circle.menuRight.information')
if (endpoints.resources || (endpoints.get && endpoints.get.resources)) && (endpoints.resourceskeywords || (endpoints.get && endpoints.get.resourceskeywords)) && (endpoints.resourcestypes || (endpoints.get && endpoints.get.resourcestypes))
solid-route(name='circle-resources' use-id)
li.segment.padding-large
span.icon.ci-networking.large.icon-margin-right
li.segment.padding-medium
span.icon.ci-networking.icon-xlarge.margin-right-small
a(data-trans='circle.menuRight.resources')
if (endpoints.events || (endpoints.get && endpoints.get.events)) && (endpoints.typeevents || (endpoints.get && endpoints.get.typeevents))
solid-route(name='circle-events' use-id)
li.segment.padding-large
span.icon.ci-networking.large.icon-margin-right
li.segment.padding-medium
span.icon.ci-networking.icon-xlarge.margin-right-small
a(data-trans='circle.menuRight.events')
if endpoints.polls || (endpoints.get && endpoints.get.polls)
solid-route(name='circle-polls' use-id)
li.segment.padding-large
span.icon.ci-networking.large.icon-margin-right
li.segment.padding-medium
span.icon.ci-networking.icon-xlarge.margin-right-small
a(data-trans='circle.menuRight.polls')

View File

@ -1,12 +1,12 @@
.content-box.full-width
solid-router(default-route='admin-circle-list', hidden)
solid-router(default-route='admin-circle-list', hidden)
solid-route(name='admin-circle-list')
solid-route(name='admin-circle-create')
solid-route(name='circle-left')
#circle-left(hidden, data-view="circle-left")
include ../circle/page-circle-left.pug
#admin-circle-list.content-box__height(hidden, data-view="admin-circle-list")
#admin-circle-list(hidden, data-view="admin-circle-list")
include ../../templates/hubl-user-avatar.pug
solid-widget(name='hubl-circle-owner')
@ -128,5 +128,5 @@
div
div
#admin-circle-create.content-box__height(hidden, data-view="admin-circle-create")
#admin-circle-create(hidden, data-view="admin-circle-create")
include page-admin-circles-create.pug

View File

@ -1,5 +1,4 @@
#circle-left(hidden, data-view="circle-left")
div.content-box__info.flex(style="padding: 15px")
div.content-box__info.flex(style="padding: 15px")
p(data-trans='circle.left.paragraphQuit')
p

View File

@ -128,6 +128,5 @@ solid-router(default-route='circle-profile', hidden)
widget-is_admin='hubl-circle-user-admin'
)
#circle-edit.content-box__height(hidden, data-view="circle-edit")
#circle-edit(hidden, data-view="circle-edit")
include page-circle-edit.pug