Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Merge requests
!209
Add badge as comment counter
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add badge as comment counter
comment-counter
into
master
Overview
1
Commits
1
Pipelines
4
Changes
2
Merged
Tom Käsler
requested to merge
comment-counter
into
master
5 years ago
Overview
1
Commits
1
Pipelines
4
Changes
1
Expand
Closes
#257 (closed)
0
0
Merge request reports
Viewing commit
995bd211
Show latest version
1 file
+
4
−
1
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
995bd211
Add second comment counter for when filter is active
· 995bd211
Tom Käsler
authored
5 years ago
src/app/components/shared/comment-list/comment-list.component.html
+
4
−
1
Options
@@ -12,7 +12,10 @@
<span
class=
"fill-remaining-space"
></span>
<div
class=
"button-bar"
fxLayoutAlign=
"center center"
>
<button
mat-mini-fab
color=
"primary"
class=
"comment-counter"
*ngIf=
"comments && comments.length > 0"
>
{{comments.length}}
</button>
<div
*ngIf=
"comments && comments.length > 0"
>
<button
mat-mini-fab
color=
"primary"
class=
"comment-counter"
*ngIf=
"(!filteredComments) || (comments.length === filteredComments.length)"
>
{{comments.length}}
</button>
<button
mat-mini-fab
color=
"secondary"
class=
"comment-counter"
*ngIf=
"(filteredComments) && (comments.length > filteredComments.length)"
>
{{filteredComments.length}}
</button>
</div>
<button
mat-icon-button
class=
"searchBarButton"
*ngIf=
"!searchBox.value && comments.length > 0"
[matMenuTriggerFor]=
"filterMenu"
matTooltip=
"{{ 'comment-list.filter-comments' | translate }}"
>