Sha256: ea1a5f013531c7a7cebcb4ae97ab468a02ea8e0b7cc8591f5f65c210e9995fbc

Contents?: true

Size: 1.96 KB

Versions: 5

Compression:

Stored size: 1.96 KB

Contents

- title t("users.index.title")

%table
  %thead
    %tr
      %td
        = page_entries_info @<%= user_plural_name %>
        = will_paginate @<%= user_plural_name %>
      %td{:colspan => 2, :style => "text-align:right;"}
        = link_to t("users.index.new_user_link"), new_<%= user_singular_name %>_path
        |
        = link_to t("users.index.mass_new_users_link"), mass_new_<%= user_plural_name %>_path
        |
        = params[:deleted] ? link_to(t("users.index.title"), <%= user_plural_name %>_path) : link_to("Zombies", <%= user_plural_name %>_path(:deleted => true))
      %td
        #search
          - form_tag <%= user_plural_name %>_path, :method => :get do
            = text_field_tag :q, h(params[:q])
            = submit_tag t("users.index.search")
  %tbody
    %tr
      %th <%= user_class_name %>
      %th Lang
      %th Roles
      %th Actions
    - for user in @<%= user_plural_name %>
      - tr_class = cycle 'even', 'odd'
      %tr{:class => tr_class}
        %td
          .user_profile_pic_small
            = profile_pic(<%= user_singular_name %>, "small")
          .data
            = link_to <%= user_singular_name %>.full_name, <%= user_singular_name %>_path(<%= user_singular_name %>)
            %br
            = <%= user_singular_name %>.email
        %td
          = image_tag "icons/#{<%= user_singular_name %>.language}.gif", :class => "icon"
        %td
          = <%= user_singular_name %>.roles.join(', ')
        %td
          = link_to "#{image_tag("icons/edit.gif")} #{t("label.edit")}", edit_<%= user_singular_name %>_path(<%= user_singular_name %>), :class => "button"
          = link_to "#{image_tag("icons/edit.gif")} #{t("label.destroy")}", <%= user_singular_name %>_path(<%= user_singular_name %>), :confirm => t("confirm.destroy"), :method => :delete, :class => "button negative" unless <%= user_singular_name %> == current_<%= user_singular_name %>

  %tfoot
    %tr
      %td{:colspan => 4}
        = will_paginate @<%= user_plural_name %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mondo-generators-0.6.8 rails_generators/mondo_authentication/templates/views/index.html.haml
mondo-generators-0.6.7 rails_generators/mondo_authentication/templates/views/index.html.haml
mondo-generators-0.6.5 rails_generators/mondo_authentication/templates/views/index.html.haml
mondo-generators-0.6.4 rails_generators/mondo_authentication/templates/views/index.html.haml
mondo-generators-0.6.3 rails_generators/mondo_authentication/templates/views/index.html.haml