Sha256: 2ce356197668cf031b00f7d58a9ca738e2fa08b721125119f6b6b5622a691239
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
<tr> <td> <%= link_to({ controller: 'auth/panel/users', action: 'show', id: member.user_id }, data: { turbo_frame: 'modal' }, class: 'is-several') do %> <%= image_tag member.user.avatar.variant(resize_to_limit: [35, 35]), class: 'image is-24x24' if member.user.avatar.present? %> <span><%= member.name %></span> <% end if member.user %> </td> <td><%= member.identity %></td> <td> <% member.member_departments.select(&->(o){ @department.self_and_descendant_ids.include?(o.department_id) }).each do |md| %> <div> <%= md.job_title&.name %> <%= button_to({ controller: 'member_departments', action: 'destroy', member_id: member.id, id: md.id }, method: :delete, aria: { label: t('.destroy') }, data: { confirm: t('.confirm') }) do %> <i class="fas fa-trash"></i> <% end %> </div> <% end %> </td> <td><%= member.join_on %></td> <td> <%= link_to({ controller: 'members', action: 'edit', id: member.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %> <i class="fas fa-pencil-alt"></i> <% end %> <%= button_to({ controller: 'members', action: 'destroy', id: member.id }, method: :delete, data: { confirm: t('.confirm') }, aria: { label: t('.destroy') }, class: 'button is-small is-rounded is-light') do %> <i class="fas fa-trash-alt"></i> <% end %> </td> </tr>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_org-0.0.1 | app/views/org/admin/departments/_member.html.erb |