Sha256: 69cf109824fdb5fc9a47398031ba1d4420cef92bc0b99554ce5a3a53b72b6a5c

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

- content_for :head_javascripts do
  = javascript_include_tag "concen/users"

#content
  %h1
    = one_line do
      %span Users
      = link_to "Invite New User", new_invite_concen_users_path, :class => "link-button"
  .border
    %table.users
      %thead
        %tr
          %th Username
          %th Full Name
          %th Email
          %th Sign Up On
          %th Pages
          %th Full Control
          - if current_concen_user.full_control
            %th Actions
      %tbody
        - for user in @users
          %tr
            %td= user.username
            %td= user.full_name
            %td= user.email
            %td= user.created_at.strftime("%d %B %Y")
            %td= Concen::Page.where(:authors.in => [user.username, user.full_name, user.email]).count
            %td= check_box_tag "full_control", 1, user.full_control, "data-path" => toggle_attribute_concen_user_path(user), :disabled => user == current_concen_user || !current_concen_user.full_control
            - if current_concen_user.full_control
              %td
                = link_to "Delete", concen_user_path(user), :method => :delete, :confirm => "Are you sure?"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
concen-0.2.4 app/views/concen/users/index.html.haml
concen-0.2.3 app/views/concen/users/index.html.haml
concen-0.2.2 app/views/concen/users/index.html.haml
concen-0.2.1 app/views/concen/users/index.html.haml