Sha256: c56c0b7d7cab4576b8a6bd48807bdac2505a7239a80f0a7f16059da3b896a866

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 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">
        <%= translated_attribute(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

3 entries across 3 versions & 1 rubygems

Version Path
decidim-budgets-0.28.0 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.0.rc5 app/cells/decidim/budgets/budget_list_item/show.erb
decidim-budgets-0.28.0.rc4 app/cells/decidim/budgets/budget_list_item/show.erb