Sha256: d848072fbeb2473d62737357143728fb8b5e9afb7349208b0e59dd2398135590

Contents?: true

Size: 755 Bytes

Versions: 117

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

117 entries across 117 versions & 1 rubygems

Version Path
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
bullet_train-themes-1.7.18 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.17 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.16 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.15 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.14 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.13 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.12 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.11 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.10 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.9 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.3 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.2 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.1 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.7.0 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.6.38 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.6.37 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.6.36 app/views/themes/base/attributes/_has_many.html.erb