Sha256: 76dcb878aa33842319b8d874b86f0d0b1c1fc71bb2d7dc684bf6a1134276b7e6

Contents?: true

Size: 1.86 KB

Versions: 13

Compression:

Stored size: 1.86 KB

Contents

<div class="row column">
  <div class="columns">
    <% if current_initiative.documents.any? %>
      <div class="row column">
        <strong><%= t ".documents" %>:</strong>
        <ul id="documents">
          <% current_initiative.documents.each do |document| %>
            <li>
              <%= link_to translated_attribute(document.title), document.url %>
              <small><%= document.file_type %> <%= number_to_human_size(document.file_size) %></small>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>

    <% if current_initiative.photos.any? %>
      <div class="row column">
        <strong><%= t(".photos") %>:</strong>
        <div id="photos" class="gallery row" data-gallery>
          <% current_initiative.photos.each do |photo| %>
            <%= link_to photo.big_url, target: "_blank", rel: "noopener" do %>
              <%= image_tag photo.thumbnail_url, class: "thumbnail", alt: strip_tags(translated_attribute(photo.title)) %>
            <% end %>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>
  <div class="columns">
    <% if allowed_to?(:update, :initiative, initiative: current_initiative) %>
      <%= aria_selected_link_to t(".edit"),
                                decidim_admin_initiatives.initiative_attachments_path(current_participatory_space),
                                class: "button button__sm button__secondary" %>
      <%= aria_selected_link_to t(".new"),
                                decidim_admin_initiatives.new_initiative_attachment_path(current_participatory_space),
                                class: "button button__sm button__secondary" %>
    <% else %>
      <%= link_to t(".edit"), "#", class: "button button__sm button__secondary muted disabled" %>
      <%= link_to t(".new"), "#", class: "button button__sm button__secondary muted disabled" %>
    <% end %>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-initiatives-0.29.1 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.4 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.29.0 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.3 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.29.0.rc4 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.29.0.rc3 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.29.0.rc2 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.29.0.rc1 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.2 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.1 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.0 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.0.rc5 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
decidim-initiatives-0.28.0.rc4 app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb