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

11 lines
No EOL
387 B
Text

<h1 class="index"><% if @user %><%= @user.name %>'s<% end %> Topics</h1>
<div class="items" id="cards">
<% @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>
<% end %>
</div>
<div class="clearfloat"></div>