Skip to content

Commit

Permalink
[gio] mark if user is inactive in group list
Browse files Browse the repository at this point in the history
  • Loading branch information
giosakti committed Aug 26, 2018
1 parent a47b375 commit d18a148
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/groups/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@
th Email address
th
tbody
- @group.users.sort_by{ |user| user.email}.select{|user| user.active}.each do |user|
- @group.users.sort_by{ |user| user.email}.each do |user|
tr
td
= link_to "#{user.name}", user_path(user)
- if user.active?
= link_to "#{user.name}", user_path(user)
- else
= link_to "#{user.name} (inactive)", user_path(user)
td
= "#{user.email}"
td
Expand Down

0 comments on commit d18a148

Please sign in to comment.