Commit 7cd1b510 authored by Kushal Pandya's avatar Kushal Pandya

Remove unnecessary variable

parent 1a36b181
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment