Sha256: 159181976becbae67d462efd74abe39e196dac1778f5362d4e750541fef83919

Contents?: true

Size: 939 Bytes

Versions: 3

Compression:

Stored size: 939 Bytes

Contents

- groups = Droom::Group.all

- if @everyone.any?
  %table.main.users{:data => {:refreshable => true, :url => "#{users_path}.js"}}
    %thead
      %tr
        - %w{name email invited confirmed directory admin}.each do |col|
          %th{:class => col}
            - unless col == "name" || col == "email"
              %span.rotated
                = col
        %th.spacer
        - groups.each do |group|
          %th.group
            %span.rotated
              = group.name

        = render :partial => 'extra_columns_header'

      %tr
        %td{:colspan => 2}
        %th.note{:colspan => 4}
          = t(:status)
        %th.spacer.note
        %th.note{:colspan => groups.count}
          = t(:membership)

        = render :partial => 'extra_columns_note'

    = render :partial => 'user_or_person', :collection => @everyone

- else
  .everyone
    %p
      No users have been created. It is odd that you can see this page.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/users/_users_table.html.haml
droom-0.4.2 app/views/droom/users/_users_table.html.haml
droom-0.4.1 app/views/droom/users/_users_table.html.haml