Sha256: 7a4cfc61df86f9e859bc175dd895759c75508a9a0fb16c05da1e99aba7605403

Contents?: true

Size: 741 Bytes

Versions: 54

Compression:

Stored size: 741 Bytes

Contents

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

<% if object.send(attribute).any? %>
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy do %>
    <%= object.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

54 entries across 54 versions & 2 rubygems

Version Path
bullet_train-themes-1.2.27 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.26 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.25 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.24 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.23 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.22 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.21 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.20 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.19 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.18 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.17 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.16 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.15 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.14 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.13 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.12 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.11 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.10 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.9 app/views/themes/base/attributes/_has_many.html.erb
bullet_train-themes-1.2.8 app/views/themes/base/attributes/_has_many.html.erb