Sha256: 7ce52c4642d25d6f0cfbec371e3b8fd368669a6bb142cb91cb1943567e5c10bc

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

%h1.title Accounts

.toolbar
  = link_to "New Account", new_user_path

%table.users.list
  %thead
    %tr
      %th Username
      %th Role
      %th Actions
  %tbody
    - @users.each do |user|
      %tr{ :id => "user-#{user.id}" }
        %td= user.username
        %td= user.role
        %td
          = link_to "Edit", edit_user_path(user)
          |
          = link_to "Destroy", user, :method => :delete

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cargo_wiki-1.0.1 app/views/cargo_wiki/users/index.html.haml
cargo_wiki-1.0.0 app/views/cargo_wiki/users/index.html.haml