metamaps--metamaps/app/views/users/show.html.erb

41 lines
904 B
Text
Raw Normal View History

<%#
# @file
# User profile page
# TODO: What URL?
# TODO: Is this code used?
#%>
<% content_for :title, @user.name + "'s Profile | Metamaps" %>
2013-01-06 23:40:48 +00:00
<div class="profile">
<h2>Recently Created Topics <%= link_to "see all", user_topics_path(@user)%></h2>
<div class="centeredProfile">
2013-01-08 00:57:04 +00:00
<% @topics.each do |topic| %>
<%= render topic %>
<% end %>
</div>
<div class="clearfloat"></div>
<h2>Recently Created Synapses <%= link_to "see all", user_synapses_path(@user)%></h2>
<div class="centeredProfile">
<% @synapses.each do |synapse| %>
<%= render synapse %>
<% end %>
</div>
2013-01-08 00:57:04 +00:00
<div class="clearfloat"></div>
<h2>Recently Created Maps <%= link_to "see all", user_maps_path(@user)%></h2>
<div class="centeredProfile">
2013-01-08 00:57:04 +00:00
<% @maps.each do |map| %>
<%= render map %>
<% end %>
</div>
2013-01-08 04:40:58 +00:00
<div class="clearfloat leaveSpace"></div>
</div>
2013-01-06 23:40:48 +00:00
<h1 class="index">
Viewing Mapper: <%= @user.name %>
</h1>