gitlab-org--gitlab-foss/app/views/projects/merge_requests/show/_participants.html.haml
Dmitriy Zaporozhets a3f64b195e
Improve performance for merge_request#show page
* store @participants in variable
* store result of subscribed? call into variable

In total it reduce amount of SQL queries for merge_request with 10
comments/participants twice.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-24 12:56:10 +02:00

4 lines
165 B
Text

.participants
%span #{@participants.count} participants
- @participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24)