diff options
author | Kushal Pandya <kushal@gitlab.com> | 2017-02-28 20:35:57 +0300 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2017-02-28 20:35:57 +0300 |
commit | 7cd1b5104a21ab74f5c1a24fac697e90290ae4d9 (patch) | |
tree | 8e135fcc17d8a38048abb74a0743327c272e4a98 /app/views/shared/members | |
parent | 1a36b18122445ebf1014a91cf0b95299bf084ea0 (diff) |
Remove unnecessary variable
Diffstat (limited to 'app/views/shared/members')
-rw-r--r-- | app/views/shared/members/_member.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/members/_member.html.haml b/app/views/shared/members/_member.html.haml index a797e8f0799..a5aa768b1b2 100644 --- a/app/views/shared/members/_member.html.haml +++ b/app/views/shared/members/_member.html.haml @@ -24,7 +24,6 @@ = link_to source.full_name, source, class: "member-group-link" .hidden-xs.cgray - - expires_soon = member.expires_soon? - if member.request? Requested = time_ago_with_tooltip(member.requested_at) @@ -32,7 +31,7 @@ Joined #{time_ago_with_tooltip(member.created_at)} - if member.expires? ยท - %span{ class: "#{"text-warning" if expires_soon} has-tooltip", title: member.expires_at.to_time.in_time_zone.to_s(:medium) } + %span{ class: "#{"text-warning" if member.expires_soon?} has-tooltip", title: member.expires_at.to_time.in_time_zone.to_s(:medium) } Expires in #{distance_of_time_in_words_to_now(member.expires_at)} - else |