Sha256: 472b53c11d8ae9435ab67235b6d9ceb9428afe578c4500b9a699524002555ab2

Contents?: true

Size: 1.15 KB

Versions: 8

Compression:

Stored size: 1.15 KB

Contents

- content_for :head_javascripts do
  = javascript_include_tag "/concen/javascripts/user.js"

#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

8 entries across 8 versions & 1 rubygems

Version Path
concen-0.1.7 app/views/concen/users/index.html.haml
concen-0.1.6 app/views/concen/users/index.html.haml
concen-0.1.5 app/views/concen/users/index.html.haml
concen-0.1.4 app/views/concen/users/index.html.haml
concen-0.1.3 app/views/concen/users/index.html.haml
concen-0.1.2 app/views/concen/users/index.html.haml
concen-0.1.1 app/views/concen/users/index.html.haml
concen-0.1 app/views/concen/users/index.html.haml