Sha256: f78d002c2738d03968c63f1bddf7b7313699b3acea04cf716fe6518b0850043b

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

.page-header#with-button
  %h1 Listing Users
  .btn-toolbar
    .btn-group
      %a{href: new_user_path, class: 'button primary small'} New User

%table.table.table-striped
  %thead
    %tr
      %th Name
      %th Email
      %th Role
      %th
      - if current_user.dev_team?
        %th
        %th
  %tbody
    - @users.each do |user|
      %tr
        %td= user.name
        %td= user.email
        %td= user.role
        %td= link_to 'Show', user
        - if current_user.dev_team?
          %td= link_to 'Edit', edit_user_path(user)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cavy-0.1.0.beta2 app/views/cavy/users/index.html.haml
cavy-0.1.0.beta1 app/views/cavy/users/index.html.haml