metamaps--metamaps/app/views/main/home.html.erb

40 lines
919 B
Text

<%#
# @file
# Located at /
# Shows 3 most recently created topics, synapses, and maps.
#%>
<p class="contact">
To get in touch, follow or tweet at us! <a target="_blank" href="https://twitter.com/metamapps">@metamapps</a>.
</p>
<div class="profile">
<h2>Recently Created Topics <%= link_to "see all", topics_url%></h2>
<div class="centeredProfile">
<% @topics.each do |topic| %>
<%= render topic %>
<% end %>
</div>
<div class="clearfloat"></div>
<h2>Recently Created Synapses <%= link_to "see all", synapses_url%></h2>
<div class="centeredProfile">
<% @synapses.each do |synapse| %>
<%= render synapse %>
<% end %>
</div>
<div class="clearfloat"></div>
<h2>Recently Created Maps <%= link_to "see all", maps_url%></h2>
<div class="centeredProfile">
<% @maps.each do |map| %>
<%= render map %>
<% end %>
</div>
<div class="clearfloat leaveSpace"></div>
</div>
<h1 class="index">
Home
</h1>