Commit 7db7482e
Changed files (3)
app
views
profiles
config
locales
app/views/profiles/mine.html.erb
@@ -6,8 +6,6 @@
<div class="caption">
<h5><%= current_user.name %></h5>
<p> <%= link_to "My Public Profile", profile_path(current_user) %></p>
- <p>member since: <%= current_user.created_at.to_s :foomat %></p>
- <p>last signed in: <%= current_user.last_sign_in_at.to_s :foomat %></p>
<hr>
<p><%= current_user.city %></p>
<p>Website or blog: <a href="<%= current_user.website %>" target="_blank"><%= current_user.website %></a></p>
@@ -24,6 +22,11 @@
</div>
</div>
<div class="span9">
- <%= render "shared/creation_image_gallery" %>
+ <% if @creations.any? %>
+ <%= render "shared/creation_image_gallery" %>
+ <% else %>
+ <p><%= t(:share_something) %></p>
+ <a href="<%= url_for new_creation_path %>" class="btn btn-primary btn-large">Add Creation</a>
+ <% end %>
</div>
</div>
app/views/profiles/show.html.erb
@@ -8,8 +8,6 @@
<%= avatar_for(@profile) %>
<div class="caption">
<h5><%= @profile.name %></h5>
- <p>member since: <%= @profile.created_at.to_s :foomat %></p>
- <p>last signed in: <%= @profile.last_sign_in_at.to_s :foomat %></p>
<p><%= @profile.city %></p>
<% unless @profile.website.blank? %>
<p><a href="<%= @profile.website %>" target="_blank"><%= @profile.website %></a></p>
config/locales/en.yml
@@ -3,3 +3,4 @@
en:
hello: "Hello world"
+ :share_something: "You have not uploaded anything!"