mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 13:47:48 +01:00
added a lock icon
This commit is contained in:
parent
f93624fa2c
commit
011150ba17
2 changed files with 7 additions and 4 deletions
|
@ -50,10 +50,10 @@ class UserController < ApplicationController
|
||||||
def groups
|
def groups
|
||||||
@user = User.where('LOWER(screen_name) = ?', params[:username].downcase).first!
|
@user = User.where('LOWER(screen_name) = ?', params[:username].downcase).first!
|
||||||
@groups = if current_user == @user
|
@groups = if current_user == @user
|
||||||
@user.groups.all
|
@user.groups
|
||||||
else
|
else
|
||||||
@user.groups.where(private: false).all
|
@user.groups.where(private: false)
|
||||||
end
|
end.all
|
||||||
end
|
end
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
%ul
|
%ul
|
||||||
- @groups.each do |group|
|
- @groups.each do |group|
|
||||||
%li= group.title
|
%li
|
||||||
|
- if group.private?
|
||||||
|
%i.fa.fa-lock
|
||||||
|
= group.display_name
|
||||||
|
|
||||||
.visible-xs= render 'shared/links'
|
.visible-xs= render 'shared/links'
|
||||||
|
|
Loading…
Reference in a new issue