debian-mirror-gitlab/app/views/shared/issuable/_reviewers.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
986 B
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
- max_render = 4
- reviewers_rendering_overflow = issuable.reviewers.size > max_render
- render_count = reviewers_rendering_overflow ? max_render - 1 : max_render
- more_reviewers_count = issuable.reviewers.size - render_count
2022-07-16 23:28:13 +05:30
- if issuable.instance_of?(MergeRequest) && current_user&.mr_attention_requests_enabled?
2022-04-04 11:22:00 +05:30
= render 'shared/issuable/merge_request_reviewers', issuable: issuable, count: render_count
- else
- issuable.reviewers.take(render_count).each do |reviewer| # rubocop: disable CodeReuse/ActiveRecord
2022-06-21 17:19:12 +05:30
= link_to_member(@project, reviewer, name: false, title: s_("MrList|Review requested from %{name}") % { name: reviewer.name})
2021-01-03 14:25:43 +05:30
- if more_reviewers_count > 0
%span{ class: 'avatar-counter has-tooltip', data: { container: 'body', placement: 'bottom', 'line-type' => 'old' }, title: _("+%{more_reviewers_count} more reviewers") % { more_reviewers_count: more_reviewers_count} }
= _("+%{more_reviewers_count}") % { more_reviewers_count: more_reviewers_count}