Sha256: 09bf3cda39bb97f2d489e3128bf7d9f31026f07e817ed47eed8c6ec536463c2e

Contents?: true

Size: 914 Bytes

Versions: 12

Compression:

Stored size: 914 Bytes

Contents

<% unless resource.lesson? %>
  <h3><%= t('resources.title.children', type: type_name(resource)) %></h3>
  <%= 'No children items.' if resource.children.blank? %>
  <ul class="o-resource__list o-resource__list--icons o-resource__list--<%= color_code %>">
    <% resource.children.each do |item| %>
      <li>
        <i class="far fa-square"></i>
        <span>
          <% title = "#{item.short_title}: " %>
          <% if item.document.present? %>
            <%= link_to document_path(item.document) do %>
              <span class="u-text--capitalized"><%= title %></span>
              <%= item.title %>
            <% end%>
          <% else %>
            <%= link_to show_with_slug_path(item.slug) do %>
              <span class="u-text--capitalized"><%= title %></span>
              <%= item.title %>
            <% end%>
          <% end%>
        </span>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.5.4 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.5.3 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.5.2 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.5.1 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.5.0 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.4.2 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.4.1 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.4.0 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.3.1 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.3.0 app/views/lcms/engine/resources/_children_list.html.erb
lcms-engine-0.2.0 app/views/lcms/engine/resources/_children_list.html.erb