Sha256: 8dea229fdd9bf1f552000f992680b1e1fb0ffbd8182cdb7b626ec36b6976c6bc
Contents?: true
Size: 737 Bytes
Versions: 4
Compression:
Stored size: 737 Bytes
Contents
-# View to show a category as an admin. -# origin: M - page_head :title => icon(:category, @category.name), :navigation => Navigation.admin_category - buttons do = link_to icon(:create, 'Add sub-category'), new_admin_category_path(:category => { :parent_id => object.id }) %table %tr %th Name %td= @category.name %tr %th Parent category %td - if @category.parent = link_to(icon(:category, @category.parent.andand.name), [:admin, @category.parent]) - else – - if @category.children.any? %tr %th Sub-categories %td %ul - for child in @category.children.sort %li = link_to(icon(:category, child.name), [:admin, child])
Version data entries
4 entries across 4 versions & 1 rubygems