2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# User profile page
|
|
|
|
# TODO: What URL?
|
|
|
|
# TODO: Is this code used?
|
|
|
|
#%>
|
2013-07-09 16:32:13 +00:00
|
|
|
|
|
|
|
<% content_for :title, @user.name + "'s Profile | Metamaps" %>
|
2013-01-06 23:40:48 +00:00
|
|
|
|
2013-01-08 04:03:41 +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 %>
|
2013-01-08 04:03:41 +00:00
|
|
|
</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>
|
|
|
|
|
2013-01-08 04:03:41 +00:00
|
|
|
<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 %>
|
2013-01-08 04:03:41 +00:00
|
|
|
</div>
|
2013-01-08 04:40:58 +00:00
|
|
|
<div class="clearfloat leaveSpace"></div>
|
2013-01-08 04:03:41 +00:00
|
|
|
|
|
|
|
</div>
|
2013-01-06 23:40:48 +00:00
|
|
|
|
|
|
|
<h1 class="index">
|
|
|
|
Viewing Mapper: <%= @user.name %>
|
2013-01-11 23:49:59 +00:00
|
|
|
</h1>
|