Sha256: 7a6c7a51f97f5da9945ea2c546ffc43772d47ee3f7bf81ba23806f51a9680166

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

<div class="<%= card_class %> budget-list__item budget-list__item-cell">
  <div class="budget-list__text flex-horizontal">
    <%= link_to budget_path(budget), class: link_class do %>
      <h5 class="card--list__heading">
        <%= translated_attribute(title) %>
      </h5>
    <% end %>

    <h5>
      <strong>
        <%= budget_to_currency(total_budget) %>
      </strong>
    </h5>

    <%= decidim_sanitize html_truncate(translated_attribute(description), length: 140) %>
  </div>

  <% if !voting_finished? %>
    <div class="budget-list__icon mr-s">
      <% if voted? %>
        <span class="button tiny success card--list__check card--list__check--disabled card--list__check--inline">
          <%= icon "check", class: "icon--small", role: "img", aria_label: t("decidim.budgets.budget_list_item.voting_finished") %>
        </span>
      <% elsif progress? %>
        <span class="button tiny warning card--list__check card--list__check--disabled card--list__check--inline">
          <%= icon "bookmark", class: "icon--small", role: "img", aria_label: t("decidim.budgets.budget_list_item.voting_started") %>
        </span>
      <% end %>
    </div>
  <% end %>

  <div class="budget-list__data">
    <%= link_to budget_path(budget), class: "button button--sc expanded #{button_class} mb-none" do %>
      <span><%= button_text %></span>
      <%= icon "chevron-right", class: "icon--small", role: "img" %>
    <% end %>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-budgets-0.26.0 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.0.rc2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.0.rc1 app/cells/decidim/budgets/budget_list_item/show.erb