Sha256: f42fb8bf0bd9416d5e871f741c58e197e3b1f807607dc590603430fc7701bce0

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

<tr class="<%= cycle('even', 'odd') %>">
  <td class="icon"><%= content_tag 'span', '', :class => "icon user#{user.gender == 'female' ? ' female' : ' male'}" -%></td>
  <td>
    <%= render_icon(user.logged_in? ? 'online' : 'offline') %>
  </td>
  <td class="login"><%= user.login %></td>
  <td class="name"><%= user.firstname -%></td>
  <td><%= user.lastname -%></td>
  <td class="email"><%= user.email %></td>
  <td><%= t(user.language, :scope => 'translations') %></td>
  <td><%= user.last_login_at.present? ? l(user.last_login_at, :format => :default) : t(:unknown) %></td>
  <td class="role"><%= user.human_role_name %></td>
  <td class="tools">
    <%- permitted_to?(:destroy, :alchemy_admin_users) do -%>
    <%= link_to_confirmation_window(
      '',
      t("confirm_to_delete_user"),
      alchemy.admin_user_path(user),
      :title => t('delete_user'),
      :class => "icon user_delete#{user.gender == 'female' ? ' female' : ' male'}"
    ) -%>
    <%- end -%>
    <%- permitted_to?(:edit, :alchemy_admin_users) do -%>
    <%= link_to_overlay_window(
      '',
      alchemy.edit_admin_user_path(user),
      {
        :title => t('edit_user'),
        :overflow => true,
        :size => '420x560'
      },
      {
        :class => "icon user_edit#{user.gender == 'female' ? ' female' : ' male'}",
        :title => t('edit_user')
      }
    ) -%>
    <%- end -%>
  </td>
</tr>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.4.1 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.4.rc2 app/views/alchemy/admin/users/_user.html.erb
alchemy_cms-2.4.rc1 app/views/alchemy/admin/users/_user.html.erb