Sha256: 1e37c84b2c33be8e78c9d67185d0cbad78047a10641c030d28b795daa1804fec

Contents?: true

Size: 1.87 KB

Versions: 3

Compression:

Stored size: 1.87 KB

Contents

- @window_title = "Settings"
- @page_title = "Users"

.row-fluid
  = render :partial => "/gluttonberg/admin/settings/main/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title.html_safe
      .subnav
        = sub_nav do
          - if can? :manage, User
            = nav_link("Add New User", new_admin_user_path)

      - sorter_url = admin_users_path

      - if @users.empty?
        %p.empty No Users
      - else
        %form{:action => admin_users_path , :id => "list_search_form"}
          = text_field_tag :query , params[:query]
          = submit_tag "Search" , :class => "button"

        %table{:cellpadding => 0, :cellspacing => 0, :summary => "List of users", :class => "table table-bordered"}
          %thead
            %tr
              %th
                = sorter_link("Name",   "first_name",   sorter_url )
              %th
                = sorter_link("Email",   "email",   sorter_url )
              - if can? :manage, User
                %th
                  = sorter_link("Type",   "role",   sorter_url )
              %th
                =sorter_link("Signup Date",   "date-added",   sorter_url )
              %th.controls
                Controls

          %tbody
            - for user in @users
              %tr
                %td
                  = link_to(user.full_name, edit_admin_user_path(user), :class => "")
                %td
                  = mail_to user.email , user.email
                - if can? :manage, User
                  %td
                    = user.role.humanize
                %td
                  = date_format user.created_at
                %td.controls
                  = link_to("Edit", edit_admin_user_path(user), :class => "btn")
                  - if can? :manage, User
                    = link_to("Delete", delete_admin_user_path(user), :class => "btn btn-danger")

        = will_paginate(@users)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/settings/users/index.html.haml