diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-12 23:56:53 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-12 23:56:53 +0300 |
commit | 7ac62388a5ba030dd60e6aef971eb32adf39ed0d (patch) | |
tree | 785c18e1d53231059431a8eb538a5392f36efca4 /app/views/dashboard | |
parent | 0f144f36bc5703ba745a8a6d1cde14fb694c4e34 (diff) |
Prevent database query each time we render group avatar
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/groups/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/dashboard/groups/index.html.haml b/app/views/dashboard/groups/index.html.haml index 50e90b1c170..f7df5352512 100644 --- a/app/views/dashboard/groups/index.html.haml +++ b/app/views/dashboard/groups/index.html.haml @@ -27,7 +27,7 @@ %i.fa.fa-sign-out Leave - = image_tag group_icon(group.path), class: "avatar s40 avatar-tile" + = image_tag group_icon(group), class: "avatar s40 avatar-tile" = link_to group, class: 'group-name' do %strong= group.name |