Sha256: 2ba05af583f5912259df1a4382bc65381d5a127c4b4a9d5e7abcb9a82cae43fd

Contents?: true

Size: 1.05 KB

Versions: 36

Compression:

Stored size: 1.05 KB

Contents

<% if documents.any? %>
  <div class="section documents">
    <h4 class="section-heading"><%= t(".related_documents") %></h4>
    <div class="card card--list">
      <% documents.each do |document| %>
        <div class="card--list__item">
          <div class="card--list__text">
            <div>
              <a href="<%= document.url %>" class="card__link">
                <h6 class="card--list__heading heading6">
                  <%= attachment_title(document) %> <small><%= document.file_type %> <%= number_to_human_size(document.file_size) %></small>
                </h6>
                <% if document.description.present? %>
                  <span class="text-small"><%= translated_attribute(document.description) %></span>
                <% end %>
              </a>
            </div>
          </div>
          <div class="card--list__data">
            <%= link_to document.url, class: "card--list__data__icon" do %>
              <%= icon "cloud-download" %>
            <% end %>
          </div>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
decidim-core-0.6.5 app/views/decidim/application/_documents.html.erb
decidim-0.6.5 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.6.4 app/views/decidim/application/_documents.html.erb
decidim-0.6.4 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.6.3 app/views/decidim/application/_documents.html.erb
decidim-0.6.3 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.6.2 app/views/decidim/application/_documents.html.erb
decidim-0.6.2 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.6.1 app/views/decidim/application/_documents.html.erb
decidim-0.6.1 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.6.0 app/views/decidim/application/_documents.html.erb
decidim-0.6.0 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.5.1 app/views/decidim/application/_documents.html.erb
decidim-0.5.1 decidim-core/app/views/decidim/application/_documents.html.erb
decidim-core-0.5.0 app/views/decidim/application/_documents.html.erb
decidim-0.5.0 decidim-core/app/views/decidim/application/_documents.html.erb