Sha256: 42624e55673d3ad110fd51ee0cd509785db09569d0614a3888b1623a2dfe1339

Contents?: true

Size: 561 Bytes

Versions: 10

Compression:

Stored size: 561 Bytes

Contents

<ul class="lessons-table__materials">
<% lesson.materials.map do |m| %>
  <% urls = material_urls(m, lesson) %>
  <li class="u-text--small">
    <% if urls[:gdoc].present? %>
    <a class="lessons-table__materials--file" href="<%= urls[:gdoc] %>" target="_blank"> <i class="fab fa-google"></i></a>
    <% end %>
    <% if urls[:pdf].present? %>
    <a class="lessons-table__materials--file" href="<%= urls[:pdf] %>" target="_blank"> <i class="far fa-file-pdf"></i></a>
    <% end %>
    <%= link_to(m.identifier, m, target: '_blank') %>
  </li>
<% end %>
</ul>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.5.4 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.5.3 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.5.2 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.5.1 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.5.0 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.4.2 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.4.1 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.4.0 app/views/lcms/engine/admin/documents/_materials_links.html.erb
lcms-engine-0.3.1 app/views/lcms/engine/admin/documents/_materials_links.html.erb