Skip to content

Instantly share code, notes, and snippets.

@dlikhten
Created May 22, 2010 20:45
Show Gist options
  • Save dlikhten/410352 to your computer and use it in GitHub Desktop.
Save dlikhten/410352 to your computer and use it in GitHub Desktop.
<%
mode = 0
mode |= 1 if local_assigns.include?(:phone)
mode |= 2 if local_assigns.include?(:location)
suffix = [ '', '_dual', '_dual', '_triple' ][ mode ]
%>
<ul class="profile_info<%= suffix>">
<li><%= link_to(fb_name(owner, :use_you => false, :linked => false), owner) %></li>
<% if mode == 1 %>
<li><%= location %></li>
<% end %>
<% if mode == 1 or mode == 2 %>
<li class="phone"><%= phone %></li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment