Sha256: a015c9e67f4c87a2b82a35d075a72e8839444a5bff0ace308b2725ceec33bd0e

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

<div class="row">
<p id="notice"><%= notice %></p>
<div class="span9">
  <strong>Title:</strong>
  <%= @category.title %>
</div>


<% @category.items.each do |item| %>
<div class="span2 navinshop-item">
<%= image_tag item.image_url(:thumb).to_s %>
<h3><%= item.title %></h3>
<p>
	<%= truncate(item.text, length:00, omission: "...") %>
</p>	
<p>
	<%= link_to "view details", item_path(item), :class => "btn btn-default" %>
</p>
</div>
<% end %>
<div class="span9">
<%= link_to 'Edit', edit_category_path(@category), :class => "btn btn-default" %> 
<%= link_to 'Back', categories_path, :class => "btn btn-default" %>
<%= link_to 'New item', new_category_item_path(@category), :class => "btn btn-default" %>
</div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
navinshop-0.0.2 app/views/navinshop/categories/show.html.erb
navinshop-0.0.1 app/views/navinshop/categories/show.html.erb