Sha256: 68fe176f7496413556708e37efe679ae66ade594207bfdb3b4b60c23b4114419

Contents?: true

Size: 1.82 KB

Versions: 15

Compression:

Stored size: 1.82 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
                  = user.full_name
                %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

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/settings/users/index.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/settings/users/index.html.haml