Sha256: 29055c2238227ab3898ef6700735f5f132e66b5a0a6847e63778d66ceb7e307c

Contents?: true

Size: 1.47 KB

Versions: 5

Compression:

Stored size: 1.47 KB

Contents

%tr{ class: user.is_active ? 'active' : 'passive' }
  %td= user.id
  %td= user.full_name
  %td= mail_to user.email, user.email
  %td= l user.current_sign_in_at if user.current_sign_in_at.present?
  %td= l user.last_sign_in_at if user.last_sign_in_at.present?
  %td= user.is_active ? t('view.active') : t('view.passive')
  %td.action
    = link_to [:hq, user],
              class: 'btn btn-success btn-sm',
              data: { toggle: :tooltip },
              title: t('view.tooltips.zoom') do
      %i.fas.fa-search-plus
    = link_to edit_hq_user_path(user),
              class: 'btn btn-info btn-sm',
              data: { toggle: :tooltip },
              title: t('view.tooltips.edit') do
      %i.fas.fa-edit
    = link_to [:hq, user],
              class: 'btn btn-danger btn-sm',
              method: :delete,
              data: { confirm: t('view.tooltips.are_you_sure'), toggle: :tooltip },
              title: t('view.tooltips.delete') do
      %i.fas.fa-trash
    - if user.is_active
      = link_to toggle_is_active_hq_user_path(user),
                class: 'btn btn-danger btn-sm',
                method: :post,
                data: { toggle: :tooltip },
                title: t('view.make_passive') do
        %i.fas.fa-ban
    - else
      = link_to toggle_is_active_hq_user_path(user),
                class: 'btn btn-info btn-sm',
                method: :post,
                data: { toggle: :tooltip },
                title: t('view.make_active') do
        %i.fas.fa-check

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/views/hq/users/_user.html.haml
cybele-2.3.1 templates/app_files/app/views/hq/users/_user.html.haml
cybele-2.2.0 templates/app_files/app/views/hq/users/_user.html.haml
cybele-2.1.0 templates/app_files/app/views/hq/users/_user.html.haml
cybele-2.0.0 templates/app_files/app/views/hq/users/_user.html.haml