Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Orbit
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Orbit
Commits
f8c62adf
Verified
Commit
f8c62adf
authored
5 years ago
by
Jean-Baptiste Pasquier
Browse files
Options
Downloads
Patches
Plain Diff
feature: sib-badge for users messages
parent
89db25fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!43
feature: sib-badge for users messages
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/menu-left.pug
+14
-9
14 additions, 9 deletions
src/menu-left.pug
src/styles/base/menu-left.scss
+27
-1
27 additions, 1 deletion
src/styles/base/menu-left.scss
with
41 additions
and
10 deletions
src/menu-left.pug
+
14
−
9
View file @
f8c62adf
sib-widget(name='hd-counter')
template
sib-badge(data-src="${id}")
nav#main__menu
sib-router#navbar-router(default-route='members')
sib-route.menu(name='members')
...
...
@@ -16,12 +19,12 @@ nav#main__menu
div.menu-label Projects
div.menu-icon.icon-folder-alt
sib-route(hidden,name='project', id-prefix=`${sdn}/projects/`, rdf-type='hd:project', use-id='')
div.sub-menu
div.sub-menu
.menu-notification
sib-display(
data-src=`${sdn}/sources/projects/`
,
data-fields='project'
,
set-project='customer.name, dash, name'
,
value-dash=' - '
,
data-src=`${sdn}/sources/projects/`
data-fields='project'
set-project='customer.name, dash, name'
value-dash=' - '
next='project'
)
//- div.divider
...
...
@@ -47,12 +50,14 @@ nav#main__menu
div.menu-label Chat
div.menu-icon.icon-envelope-letter
sib-route(hidden, name='messages', id-prefix=`${sdn}/users/`, rdf-type='foaf:user', use-id='')
div.sub-menu
div.sub-menu
.menu-notification
sib-display(
data-src=`${sdn}/users/`,
data-fields='username',
widget-user.username='sib-display-div',
data-src=`${sdn}/users/`
data-fields='username, account.user'
widget-username='sib-display-div'
widget-account.user='hd-counter'
next='messages'
)
div.divider
This diff is collapsed.
Click to expand it.
src/styles/base/menu-left.scss
+
27
−
1
View file @
f8c62adf
...
...
@@ -109,7 +109,33 @@
}
}
}
}
&
.menu-notification
{
>
sib-display
>
div
>
sib-display
>
div
{
display
:
flex
;
sib-display-div
{
flex
:
3
;
}
hd-counter
{
height
:
20px
;
width
:
20px
;
margin-right
:
1em
;
div
:not
(
:empty
)
{
text-align
:
center
;
display
:
block
;
background-color
:
var
(
--
sib-notifications-theme
,
gray
);
border-radius
:
50%
;
font-size
:
12px
;
line-height
:
20px
;
width
:
20px
;
height
:
20px
;
padding-bottom
:
0
;
color
:
$color-216-4-22
;
}
}
}
}
}
.divider
{
height
:
1px
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment