diff options
| author | mo <mo.khan@gmail.com> | 2017-09-08 22:54:17 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-08 22:54:17 -0600 |
| commit | f84f05c935d81a76353deb384330263688718a20 (patch) | |
| tree | 104c40742b96d1eee5952bd3931bcacda292d201 /app | |
| parent | 112683c77edd2a1fb95377d3e91915846b0a448b (diff) | |
show url of website.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/profiles/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index 8519f38d..c81a33cb 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -8,8 +8,8 @@ <h1><%= @user.name %> <small>A member since <%= @user.created_at.to_s :foomat %>, with <%= @user.creations.length %> creations.</small> </h1> <h5><%= @user.city %></h5> <hr> - <% unless @user.website.blank? %> - <p><a href="<%= @user.website %>" target="_blank">Website</a></p> + <% if @user.website.present? %> + <p><a href="<%= @user.website %>" target="_blank"><%= @user.website %></a></p> <% end %> <% unless @user.twitter.blank? %> <p><a href="https://twitter.com/<%= @user.twitter %>" target="_blank" class="twitter-follow-button" data-show-count="false">Follow @<%= @user.twitter %></a></p> |
