Sha256: d848072fbeb2473d62737357143728fb8b5e9afb7349208b0e59dd2398135590

Contents?: true

Size: 755 Bytes

Versions: 114

Compression:

Stored size: 755 Bytes

Contents

<% object ||= current_attributes_object %>
<% strategy ||= current_attributes_strategy || :none %>
<% link_source ||= nil %>
<% disable_links ||= false %>
<% link_options ||= {} %>

<% if object.public_send(attribute).any? %>
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy do %>
    <%= object.public_send(attribute).map do |child_object| %>
      <% capture do %>
        <% if disable_links %>
          <%= child_object.label_string %>
        <% else %>
          <%= link_to child_object.label_string, [:account, link_source ? child_object.send(link_source) : child_object], link_options %>
        <% end %>
      <% end %>
    <% end.map(&:strip).to_sentence.html_safe %>
  <% end %>
<% end %>

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
bullet_train-themes-1.14.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.13.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.12.3 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.12.2 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.12.1 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.12.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.11.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.10.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.9.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.5 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.4 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.3 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.2 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.1 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.8.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.23 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.22 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.21 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.20 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.19 app/views/themes/base/attributes/_has_many.html.erb