Sha256: 2df06c87c31c519f6bd942b60462f61943c83714146b0d44dfbeff4d541fcfb6

Contents?: true

Size: 810 Bytes

Versions: 2

Compression:

Stored size: 810 Bytes

Contents

h2.title.is-5 = rolable.authorizable_association_name.capitalize
.card
  table.table.is-fullwidth.is-striped.is-hoverable
    thead
      tr
        th Avatar
        th Label
        th
    tbody
      - all_instances = parent_instance.public_send(rolable.authorizable_association_name).distinct
      - if all_instances.blank?
        tr
          td.has-text-centered[colspan='3'] No associated #{rolable.authorizable_association_name.capitalize}
      - else
        - all_instances.each do |child_instance|
          tr.is-clickable[data-url="#{send("#{child_instance.model_name.singular}_path", child_instance)}"]
            td
            td = child_instance.authz_label
            td = link_to send("#{child_instance.model_name.singular}_path", child_instance) do
              i.fa-chevron-right.fa

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authz-0.0.1.alpha3 app/views/authz/rolables/_table_from_association.html.slim
authz-0.0.1.alpha2 app/views/authz/rolables/_table_from_association.html.slim