Don't show any SteamID stuff if that's blank too

This commit is contained in:
Prommah 2015-10-28 02:40:38 +00:00
parent 3f35776ce6
commit f282a48286

View file

@ -15,13 +15,15 @@
<dd><%= @user.profile.town %></dd>
<% end %>
<dt>SteamID</dt>
<dd>
<p><%= @user.steamid %></p>
<div id="steam-search" data-user-id="<%= @user.id %>">
<%= link_to "Search for Steam Account" %>
</div>
</dd>
<% if !@user.steamid.blank? %>
<dt>SteamID</dt>
<dd>
<p><%= @user.steamid %></p>
<div id="steam-search" data-user-id="<%= @user.id %>">
<%= link_to "Search for Steam Account" %>
</div>
</dd>
<% end %>
<% if !@user.profile.stream.blank? %>
<dt>Stream</dt>