Sha256: 84ea291cce5b546a5b6678dff15006e1be6dfc4a09b236738553f505d5165168

Contents?: true

Size: 1.68 KB

Versions: 10

Compression:

Stored size: 1.68 KB

Contents

<div class="<%= card_class %> card__highlight">
  <div class="card__highlight-text md:w-[70%] p-0">
    <%= link_to resource_path, class: "p-4" do %>
      <h3 class="h3 text-secondary inline-block align-middle">
        <%= decidim_escape_translated(title) %>
      </h3>
      <% if voted? %>
        <%= icon "check-double-line", class: "inline-block align-middle fill-success ml-2 h-[1.5em] w-[1.5em]" %>
      <% end %>
      <div class="my-2">
        <%= decidim_sanitize html_truncate(translated_attribute(description), length: 70) %>
      </div>
      <% unless voted? %>
        <div class="divide-x-2 divide-gray-3">
          <%= render :projects_count %>
          <%= render :vote_action if voting_context? %>
        </div>
      <% end %>
    <% end %>
    <% if voted? %>
      <div class="divide-x-2 divide-gray-3 p-4 pt-0">
        <%= render :projects_count %>
        <%= render :vote_action if voting_context? %>
      </div>
    <% end %>
  </div>
  <% if voting_context? %>
    <%= link_to resource_path, class: "budget__card__highlight-vote" do %>
      <div class="budget__card__highlight-vote__header">
        <span class="budget__card__highlight-vote__text">
          <%= t("name", scope: "decidim.budgets.admin.models.budget") %>
        </span>
        <span class="budget__card__highlight-vote__number">
          <%= budget_to_currency(total_budget) %>
        </span>
      </div>
      <%= button_tag class: "button button__sm #{button_class} #{voted? ? "button__transparent-secondary" : "button__secondary"} budget__card__highlight-vote__button" do %>
        <span><%= button_text %></span>
        <%= icon "arrow-right-line" %>
      <% end %>
    <% end %>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-budgets-0.29.1 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.4 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.29.0 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.3 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.29.0.rc4 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.29.0.rc3 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.29.0.rc2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.29.0.rc1 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.2 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.1 app/cells/decidim/budgets/budget_list_item/show.erb