<%- content_for(:body_id, 'profile') -%>

<h2><%= @user.name %></h2>
<%= gravatar(@user) %>

<dl class="profile">
  <dt>Github:</dt><dd><%= link_to "#{@user.login}", "http://github.com/#{@user.login}" %></dd>
  <% unless @user.email.blank? %>
    <dt>E-Mail:</dt><dd><%= @user.email %></dd>
  <% end %>
  <dt>Token:</dt><dd><%= @user.tokens.first.token %></dd>
</dl>

<p class="notice">
  To get started, please read our <a href="http://about.travis-ci.org/docs/user/getting-started/">Getting Started guide</a>.
  <small>It will only take a couple of minutes.</small>
</p>

<h4>Your Repositories</h4>
<p class="tip">
  Flick the switches below to turn on the Travis service hook for your projects, then push to GitHub.<br />
  To test against multiple rubies, see
  <a href="http://about.travis-ci.org/docs/user/build-configuration/">how to configure custom build options</a>.
</p>

<div id="service_hooks"></div>

<%- content_for(:body_id, 'profile') -%>

<h2><%= @user.name %></h2>
<%= gravatar(@user) %>

<dl class="profile">
  <dt>Github:</dt><dd><%= link_to "#{@user.login}", "http://github.com/#{@user.login}" %></dd>
  <% if @user.email.present? %>
    <dt>E-Mail:</dt><dd><%= @user.email %></dd>
  <% end %>
  <dt>Token:</dt><dd><%= @user.tokens.first.token %></dd>
</dl>

<p class="notice">
  To get started, please read our <a href="http://about.travis-ci.org/docs/user/getting-started/">Getting Started guide</a>.
  <small>It will only take a couple of minutes.</small>
</p>

<h4>Your Repositories</h4>
<p class="tip">
  Flick the switches below to turn on the Travis service hook for your projects, then push to GitHub.<br />
  To test against multiple rubies, see
  <a href="http://about.travis-ci.org/docs/user/build-configuration/">how to configure custom build options</a>.
</p>

<div id="service_hooks"></div>

Use if-present? instead of unless-blank?.
Use if-present? instead of unless-blank?.
