Sha256: 0960c14ae1aafd0aca2d2d488c96c6cc1b1725c48b3a20d779f2758714d78c32

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

<% if has_link_to_resource? %>
  <div class="card__footer">
    <div class="card__support">
      <% if has_actions? %>
        <% if !current_settings.votes_hidden? %>
          <%= cell(
            "decidim/progress_bar",
            progress_bar_progress,
            total: progress_bar_total,
            units_name: "decidim.enhanced_textwork.paragraphs.votes_count.count",
            element_id: "paragraph-#{model.id}-votes-count",
            subtitle_text: progress_bar_subtitle_text,
            small: true
          ) %>
        <% end %>
        <%= render partial: "decidim/enhanced_textwork/paragraphs/vote_button.html", locals: { paragraph: model, from_paragraphs_list: true } %>
      <% elsif has_footer? %>
        <div class="card__support__data"></div>
        <%= link_to resource_path, class: "card__button button--sc light button small" do %>
          <%= t("decidim.enhanced_textwork.paragraphs.paragraph.view_paragraph") %>
          <span class="show-for-sr"><%= title %></span>
        <% end %>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb
decidim-enhanced_textwork-1.0.4 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb
decidim-enhanced_textwork-1.0.3 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb
decidim-enhanced_textwork-1.0.2 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb
decidim-enhanced_textwork-1.0.1 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb
decidim-enhanced_textwork-1.0.0 app/cells/decidim/enhanced_textwork/paragraph_m/footer.erb