Sha256: 9d92adfc18f5ffb596e883a5e1f654d897dc8f9824adbcc9af231112df3f2302

Contents?: true

Size: 710 Bytes

Versions: 7

Compression:

Stored size: 710 Bytes

Contents

%div{:id => "category_#{category.id}"}
  %h2
    = category.name
    -if authorized?(:manage, nil, WhurlEngine::Category)
      = link_to('Add Resource', new_resource_path(:category_id => category.id), :remote => true, :class => 'popup button')
      = link_to('', edit_category_path(category), :remote => true, :class => 'edit button icon_only')
      = link_to( '', category, :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => 'destroy button icon_only')
  %p=category.description
  %table{:id => "category_#{category.id}"}
    %thead
      %tr
        %th Resource
        %th Description
    %tbody.resources
      - category.resources.each do |resource|
        = render(resource)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whurl_engine-2.2.0 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.1.4 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.1.3 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.1.2 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.1.0 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.0.1 app/views/whurl_engine/categories/_category.html.haml
whurl_engine-2.0.0 app/views/whurl_engine/categories/_category.html.haml