summaryrefslogtreecommitdiff
path: root/app/views/shared/members/_member.html.haml
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2017-02-28 23:05:57 +0530
committerKushal Pandya <kushal@gitlab.com>2017-02-28 23:05:57 +0530
commit7cd1b5104a21ab74f5c1a24fac697e90290ae4d9 (patch)
tree8e135fcc17d8a38048abb74a0743327c272e4a98 /app/views/shared/members/_member.html.haml
parent1a36b18122445ebf1014a91cf0b95299bf084ea0 (diff)
downloadgitlab-ce-7cd1b5104a21ab74f5c1a24fac697e90290ae4d9.tar.gz
Remove unnecessary variable
Diffstat (limited to 'app/views/shared/members/_member.html.haml')
-rw-r--r--app/views/shared/members/_member.html.haml3
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