metamaps--metamaps/app/views/items/index.html.erb

11 lines
387 B
Text
Raw Normal View History

<h1 class="index"><% if @user %><%= @user.name %>'s<% end %> Topics</h1>
2012-09-23 02:39:12 +00:00
<div class="items" id="cards">
2012-09-23 02:39:12 +00:00
<% @items.each do |item| %>
<%= render item %>
<% end %>
<% if @items.empty? %>
<p class="empty"><br>Shucks, there are no topics. <% if authenticated? %><%= link_to "Create some if you want.", console_url %><% end %></p>
2012-09-23 02:39:12 +00:00
<% end %>
</div>
<div class="clearfloat"></div>