Skip to content

Commit

Permalink
Place a request counter in the tab link
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Feb 26, 2025
1 parent 7be530e commit 6e627b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/views/webui/groups/bs_requests/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
%li.nav-item
%a.nav-link.active
Group Requests
%span.badge.text-bg-primary
= @bs_requests.count
.card-body
.tab-content
.tab-pane.active
Expand Down
2 changes: 2 additions & 0 deletions src/api/app/views/webui/groups/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
%li.nav-item
= link_to(group_requests_path(@group, "involvement[]": 'incoming', state: %w[new review]), class: 'nav-link', title: 'Requests') do
Group Requests
%span.badge.text-bg-primary
= @group.requests.count
- else
%li.nav-item
%a.nav-link.text-nowrap#reviews-in-tab{ aria: { controls: 'reviews-in', selected: 'true' },
Expand Down

0 comments on commit 6e627b9

Please sign in to comment.