Sha256: 3970cba28c7fe517103966ce1d7984dbec0aa6abeaa2c4a26f3bf8bf7cde8f1e

Contents?: true

Size: 538 Bytes

Versions: 84

Compression:

Stored size: 538 Bytes

Contents

%h1 Articles index
.buttons
  = link_to("New article", new_article_path) if admin_account_can?(:create, Article)

%table
  %th
    %td View
    %td Edit
    %td Delete

  - articles.each do |article|
    %tr
      %td
        = link_to(article.title, article_path(article)) if admin_account_can?(:read, article)
      %td
        = link_to("Edit", edit_article_path(article)) if admin_account_can?(:edit, article)
      %td
        = link_to("Delete", article_path(article), :method => 'delete') if admin_account_can?(:delete, article)


Version data entries

84 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.7 spec/devise-dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.7 spec/dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.7 spec/devise-dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.6 spec/devise-dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.6 spec/devise-dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.6 spec/dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.6 spec/dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.5 spec/devise-dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.5 spec/dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.5 spec/dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.5 spec/devise-dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.3 spec/dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.3 spec/devise-dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.3 spec/dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.3 spec/devise-dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.2 spec/devise-dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.2 spec/dummy/app/views/articles/admin_account.html.haml
cantango-0.9.4.2 spec/dummy/app/views/concertos/admin_account.html.haml
cantango-0.9.4.2 spec/devise-dummy/app/views/articles/admin_account.html.haml