Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-12 23:56:53 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-12 23:56:53 +0300
commit7ac62388a5ba030dd60e6aef971eb32adf39ed0d (patch)
tree785c18e1d53231059431a8eb538a5392f36efca4 /app/views/users/_groups.html.haml
parent0f144f36bc5703ba745a8a6d1cde14fb694c4e34 (diff)
Prevent database query each time we render group avatar
Diffstat (limited to 'app/views/users/_groups.html.haml')
-rw-r--r--app/views/users/_groups.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_groups.html.haml b/app/views/users/_groups.html.haml
index cb84570a6d5..f360fbb3d5d 100644
--- a/app/views/users/_groups.html.haml
+++ b/app/views/users/_groups.html.haml
@@ -1,4 +1,4 @@
.clearfix
- groups.each do |group|
= link_to group, class: 'profile-groups-avatars inline', title: group.name do
- = image_tag group_icon(group.path), class: 'avatar group-avatar s40'
+ = image_tag group_icon(group), class: 'avatar group-avatar s40'