<commit_before><% provide :title do %><%= t('budgets.index.title') %><% end %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: budgets_url %>
<% end %>

<div id="budget_heading" class="expanded budget no-margin-top">
  <div class="row" data-equalizer data-equalizer-on="medium">
    <div class="small-12 medium-9 column padding" data-equalizer-watch>

        <h1><%= @budget.name %></h1>

        <%= safe_html_with_links(@budget.description) %>
        <p>
          <%= link_to t("budgets.index.section_header.help"), "#section_help" %>
        </p>
      </div>
      <div class="small-12 medium-3 column info padding" data-equalizer-watch>
        <p>
          <% steps = "(#{@budget.current_phase.step_number}/#{@budget.published_phases.count})" %>
          <strong><%= t('budgets.show.phase') %> <%= steps %></strong>
        </p>
        <h2><%= t("budgets.phase.#{@budget.phase}") %></h2>

        <%= link_to t("budgets.index.section_header.all_phases"), "#all_phases" %>

        <% if @budget.accepting? %>
          <% if current_user %>
            <% if current_user.level_two_or_three_verified? %>
              <%= link_to t("budgets.investments.index.sidebar.create"),
                          new_budget_investment_path(@budget),
                          class: "button margin-top expanded" %>
            <% else %>
              <div class="callout warning margin-top">
                <%= t("budgets.investments.index.sidebar.verified_only",
                    verify: link_to(t("budgets.investments.index.sidebar.verify_account"),
                                    verification_path)).html_safe %>
              </div>
            <% end %>
          <% else %>
            <div class="callout primary margin-top">
              <%= t("budgets.investments.index.sidebar.not_logged_in",
                    sign_in: link_to(t("budgets.investments.index.sidebar.sign_in"),
                    new_user_session_path),
                    sign_up: link_to(t("budgets.investments.index.sidebar.sign_up"),
                    new_user_registration_path)).html_safe %>
            </div>
        <% end %>
      <% end %>


      <% if @budget.finished? || (@budget.balloting? && can?(:read_results, @budget)) %>
        <%= link_to t("budgets.show.see_results"),
                    budget_results_path(@budget, heading_id: @budget.headings.first),
                    class: "button margin-top expanded" %>
      <% end %>
    </div>
  </div>
</div>

<div id="budget_info">
  <div class="row margin-top">
    <div class="small-12 column">

      <div id="groups_and_headings" class="groups-and-headings">
        <% @budget.groups.each do |group| %>
          <h2><%= group.name %></h2>
          <ul class="no-bullet">
            <% group.headings.each do |heading| %>
              <li class="heading small-12 medium-4 large-2">
                <%= link_to budget_investments_path(@budget.id, heading_id: heading.id) do %>
                  <%= heading.name %>
                  <span><%= @budget.formatted_heading_price(heading) %></span>
                <% end %>
              </li>
            <% end %>
          </ul>
        <% end %>
      </div>

      <div id="map">
        <h3><%= t("budgets.index.map") %></h3>
        <%= render_map(nil, "budgets", false, nil, @budgets_coordinates) %>
      </div>

      <p>
        <%= link_to budget_investments_path(@budget.id) do %>
          <small><%= t("budgets.index.investment_proyects") %></small>
        <% end %><br>
        <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unfeasible') do %>
          <small><%= t("budgets.index.unfeasible_investment_proyects") %></small>
        <% end %><br>
        <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unselected') do %>
          <small><%= t("budgets.index.not_selected_investment_proyects") %></small>
        <% end %>
      </p>

      <div id="all_phases">
        <h2><%= t("budgets.index.all_phases") %></h2>
        <%= render "phases" %>
      </div>
    </div>
  </div>

  <div class="row margin-top">
    <div class="small-12 medium-9 column">
      <ul class="no-bullet submenu">
        <li class="inline-block">
          <%= link_to "#other_budgets", class: "active" do %>
            <h2>
              <%= t("budgets.index.finished_budgets") %>
            </h2>
          <% end %>
        </li>
      </ul>

      <div class="budget-investments-list">
        <% @budgets.each do |budget| %>
          <% if budget_published?(budget) %>
            <div class="budget-investment clear">
              <div class="panel">
                <div class="row" data-equalizer data-equalizer-on="medium">
                  <div class="small-9 column" data-equalizer-watch>
                    <h3><%= budget.name %></h3>
                    <%= budget.description %>
                  </div>
                  <div class="small-3 column table" data-equalizer-watch>
                    <div class="table-cell align-middle">
                      <%= link_to t("budgets.index.see_results"),
                                  budget_results_path(budget.id),
                                  class: "button expanded" %>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          <% end %>
        <% end %>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="small-12 column">
      <div id="section_help" class="margin" data-magellan-target="section_help">
        <p class="lead">
          <strong><%= t("budgets.index.section_footer.title") %></strong>
        </p>
        <p><%= t("budgets.index.section_footer.description") %></p>
        <p><%= t("budgets.index.section_footer.help_text_1") %></p>
        <p><%= t("budgets.index.section_footer.help_text_2") %></p>
        <p><%= t("budgets.index.section_footer.help_text_3",
                  org: link_to(setting['org_name'], new_user_registration_path)).html_safe %></p>
        <p><%= t("budgets.index.section_footer.help_text_4") %></p>
      </div>
    </div>
  </div>
</div>
<commit_msg>Some css class improvements at budget list on /budget<commit_after><% provide :title do %><%= t('budgets.index.title') %><% end %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: budgets_url %>
<% end %>

<div id="budget_heading" class="expanded budget no-margin-top">
  <div class="row" data-equalizer data-equalizer-on="medium">
    <div class="small-12 medium-9 column padding" data-equalizer-watch>

        <h1><%= @budget.name %></h1>

        <%= safe_html_with_links(@budget.description) %>
        <p>
          <%= link_to t("budgets.index.section_header.help"), "#section_help" %>
        </p>
      </div>
      <div class="small-12 medium-3 column info padding" data-equalizer-watch>
        <p>
          <% steps = "(#{@budget.current_phase.step_number}/#{@budget.published_phases.count})" %>
          <strong><%= t('budgets.show.phase') %> <%= steps %></strong>
        </p>
        <h2><%= t("budgets.phase.#{@budget.phase}") %></h2>

        <%= link_to t("budgets.index.section_header.all_phases"), "#all_phases" %>

        <% if @budget.accepting? %>
          <% if current_user %>
            <% if current_user.level_two_or_three_verified? %>
              <%= link_to t("budgets.investments.index.sidebar.create"),
                          new_budget_investment_path(@budget),
                          class: "button margin-top expanded" %>
            <% else %>
              <div class="callout warning margin-top">
                <%= t("budgets.investments.index.sidebar.verified_only",
                    verify: link_to(t("budgets.investments.index.sidebar.verify_account"),
                                    verification_path)).html_safe %>
              </div>
            <% end %>
          <% else %>
            <div class="callout primary margin-top">
              <%= t("budgets.investments.index.sidebar.not_logged_in",
                    sign_in: link_to(t("budgets.investments.index.sidebar.sign_in"),
                    new_user_session_path),
                    sign_up: link_to(t("budgets.investments.index.sidebar.sign_up"),
                    new_user_registration_path)).html_safe %>
            </div>
        <% end %>
      <% end %>


      <% if @budget.finished? || (@budget.balloting? && can?(:read_results, @budget)) %>
        <%= link_to t("budgets.show.see_results"),
                    budget_results_path(@budget, heading_id: @budget.headings.first),
                    class: "button margin-top expanded" %>
      <% end %>
    </div>
  </div>
</div>

<div id="budget_info">
  <div class="row margin-top">
    <div class="small-12 column">

      <div id="groups_and_headings" class="groups-and-headings">
        <% @budget.groups.each do |group| %>
          <h2><%= group.name %></h2>
          <ul class="no-bullet">
            <% group.headings.each do |heading| %>
              <li class="heading small-12 medium-4 large-2">
                <%= link_to budget_investments_path(@budget.id, heading_id: heading.id) do %>
                  <%= heading.name %>
                  <span><%= @budget.formatted_heading_price(heading) %></span>
                <% end %>
              </li>
            <% end %>
          </ul>
        <% end %>
      </div>

      <div id="map">
        <h3><%= t("budgets.index.map") %></h3>
        <%= render_map(nil, "budgets", false, nil, @budgets_coordinates) %>
      </div>

      <p>
        <%= link_to budget_investments_path(@budget.id) do %>
          <small><%= t("budgets.index.investment_proyects") %></small>
        <% end %><br>
        <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unfeasible') do %>
          <small><%= t("budgets.index.unfeasible_investment_proyects") %></small>
        <% end %><br>
        <%= link_to budget_investments_path(budget_id: @budget.id, filter: 'unselected') do %>
          <small><%= t("budgets.index.not_selected_investment_proyects") %></small>
        <% end %>
      </p>

      <div id="all_phases">
        <h2><%= t("budgets.index.all_phases") %></h2>
        <%= render "phases" %>
      </div>
    </div>
  </div>

  <div class="row margin-top">
    <div class="small-12 medium-9 column">
      <ul class="no-bullet submenu">
        <li class="inline-block">
          <%= link_to "#other_budgets", class: "active" do %>
            <h2>
              <%= t("budgets.index.finished_budgets") %>
            </h2>
          <% end %>
        </li>
      </ul>

      <div class="budget-investments-list">
        <% @budgets.each do |budget| %>
          <% if budget_published?(budget) %>
            <div class="budget-investment clear">
              <div class="panel">
                <div class="row" data-equalizer data-equalizer-on="medium">
                  <div class="small-12 medium-9 column" data-equalizer-watch>
                    <h3><%= budget.name %></h3>
                    <%= budget.description %>
                  </div>
                  <div class="small-12 medium-3 column table" data-equalizer-watch>
                    <div class="table-cell align-middle">
                      <%= link_to t("budgets.index.see_results"),
                                  budget_results_path(budget.id),
                                  class: "button expanded" %>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          <% end %>
        <% end %>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="small-12 column">
      <div id="section_help" class="margin" data-magellan-target="section_help">
        <p class="lead">
          <strong><%= t("budgets.index.section_footer.title") %></strong>
        </p>
        <p><%= t("budgets.index.section_footer.description") %></p>
        <p><%= t("budgets.index.section_footer.help_text_1") %></p>
        <p><%= t("budgets.index.section_footer.help_text_2") %></p>
        <p><%= t("budgets.index.section_footer.help_text_3",
                  org: link_to(setting['org_name'], new_user_registration_path)).html_safe %></p>
        <p><%= t("budgets.index.section_footer.help_text_4") %></p>
      </div>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.17419093851132686, 'fraction_numerical': 0.006310679611650485, 'mean_word_length': 1.947305674773486, 'pattern_counts': {'":': 0, '<': 339, '<?xml version=': 0, '>': 339, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4490012', 'n_tokens_mistral': 4195, 'n_tokens_neox': 3856, 'n_words': 650}