added a lock icon

This commit is contained in:
nilsding 2015-01-12 07:08:06 +01:00
parent f93624fa2c
commit 011150ba17
2 changed files with 7 additions and 4 deletions

View File

@ -50,10 +50,10 @@ class UserController < ApplicationController
def groups
@user = User.where('LOWER(screen_name) = ?', params[:username].downcase).first!
@groups = if current_user == @user
@user.groups.all
@user.groups
else
@user.groups.where(private: false).all
end
@user.groups.where(private: false)
end.all
end
# endregion

View File

@ -9,6 +9,9 @@
%ul
- @groups.each do |group|
%li= group.title
%li
- if group.private?
%i.fa.fa-lock
= group.display_name
.visible-xs= render 'shared/links'