Sha256: f45eb2a8b1d2def4b30f492ab898fa738939cee80c492af77f210fc3bba2cd00

Contents?: true

Size: 1.44 KB

Versions: 17

Compression:

Stored size: 1.44 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 %>
      <h3 class="card--list__heading">
        <%= translated_attribute(title) %>
      </h3>
    <% end %>

    <div class="heading5">
      <strong>
        <%= budget_to_currency(total_budget) %>
      </strong>
    </div>

    <%= 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

17 entries across 17 versions & 1 rubygems

Version Path
decidim-budgets-0.26.10 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.9 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.5 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.8 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.4 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.3 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.7 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.5 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.1 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.4 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.0 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.3 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.0.rc2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.27.0.rc1 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.26.1 app/cells/decidim/budgets/budget_list_item/show.erb