Sha256: f9c1e79e98ce4a720bc7cda3ba9abb0a437c95ef1a1ed079ef80b578ece8d30f

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

<% total_count = @handler_result.outputs[:total_count]
   accounts = @handler_result.outputs[:items] %>

<div id='search-results-count'>
  <%= pluralize(total_count, 'user') %> found.
</div>

<div id='search-results-list'>
  <%= osu.action_list(
        records: accounts,
        list: {
          headings: ['UID', 'Username (click to sign in as)', 'Name'],
          widths: ['20%', '40%', '40%'],
          data_procs: [
            ->(account) { account.openstax_uid },
            ->(account) {
              link_to account.username, become_dev_account_path(
                                          account.openstax_uid
                                        ), method: :post
            },
            ->(account) { account.name || '---' }
          ]
        }
      ) %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstax_accounts-9.0.0 app/views/openstax/accounts/dev/accounts/_search_results.html.erb