Skip to content

Commit

Permalink
Update cells / Fix specs / Update views
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Jan 7, 2025
1 parent 231ef8e commit 12fc43f
Show file tree
Hide file tree
Showing 33 changed files with 36 additions and 322 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ group :test do
gem "decidim-accountability", DECIDIM_VERSION
gem "decidim-proposals", DECIDIM_VERSION

gem "decidim-ideas", github: "mainio/decidim-module-ideas", branch: "develop"
gem "decidim-ideas", github: "mainio/decidim-module-ideas"
gem "decidim-plans", github: "mainio/decidim-module-plans"
gem "decidim-tags", github: "mainio/decidim-module-tags"
end
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ GIT

GIT
remote: https://github.com/mainio/decidim-module-ideas.git
revision: f24647d2a8565eb6f7cd0862b08b153315bd9633
branch: develop
revision: a074486489394221a0e5bf62d709b195a8520002
specs:
decidim-ideas (0.28.0)
decidim-core (~> 0.28.0)
Expand Down

This file was deleted.

21 changes: 0 additions & 21 deletions app/cells/decidim/budgets/project_l/data.erb

This file was deleted.

20 changes: 20 additions & 0 deletions app/cells/decidim/budgets/project_l/extra_data.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class="budget__card__list-project">
<span class="budget__card__list-project__amount">
<% if project.budget_amount > 0 %>
<%= budget_to_currency(model.budget_amount) %>
<% else %>
-
<% end %>
</span>
<%= cell("decidim/budgets/project_vote_button", model, show_only_added:) %>

<%= link_to resource_path, class: "card__link" do %>
<span aria-hidden="true">
<%= t(".more_info") %>
<%= icon "arrow-right-s-line", role: "img", "aria-hidden": true %>
</span>
<span class="show-for-sr">
<%= t(".more_info_with_title", title: resource_title) %>
</span>
<% end %>
</div>
29 changes: 0 additions & 29 deletions app/cells/decidim/budgets/project_l/inner.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/cells/decidim/budgets/project_l/show.erb

This file was deleted.

24 changes: 0 additions & 24 deletions app/cells/decidim/budgets/project_l_cell.rb

This file was deleted.

25 changes: 0 additions & 25 deletions app/cells/decidim/budgets/project_list_item/project_data.erb

This file was deleted.

31 changes: 0 additions & 31 deletions app/cells/decidim/budgets/project_list_item/project_text.erb

This file was deleted.

22 changes: 0 additions & 22 deletions app/cells/decidim/budgets/project_m/data.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/cells/decidim/budgets/project_m/data_budget.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/cells/decidim/budgets/project_m/footer.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/cells/decidim/budgets/project_m/image.erb

This file was deleted.

19 changes: 0 additions & 19 deletions app/cells/decidim/budgets/project_m/inner.erb

This file was deleted.

7 changes: 0 additions & 7 deletions app/cells/decidim/budgets/project_m/show.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/cells/decidim/budgets/project_m/state.erb

This file was deleted.

11 changes: 0 additions & 11 deletions app/cells/decidim/budgets/project_m/status.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/cells/decidim/budgets/project_m/tags.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/cells/decidim/budgets/project_m/votes_counter.erb

This file was deleted.

19 changes: 0 additions & 19 deletions app/cells/decidim/budgets/project_m/voting_buttons.erb

This file was deleted.

1 change: 1 addition & 0 deletions app/mailers/decidim/budgets/order_summaries_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class OrderSummariesMailer < Decidim::ApplicationMailer
include Decidim::SanitizeHelper

helper Decidim::TranslationsHelper
helper Decidim::SanitizeHelper

# Send an email to an user with the summary of the order.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p><%= t(".votes_summary") %></p>

<% @orders.each do |order| %>
<p><strong><%= translated_attribute(order.budget.title) %></strong></p>
<p><strong><%= decidim_sanitize(translated_attribute(order.budget.title)) %></strong></p>
<% if order.projects.any? %>
<p><%= t(".selected_projects") %></p>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/votes/budgets.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
</button>
</div>

<%= javascript_pack_tag "decidim_budgeting_pipeline_budgets" %>
<%= append_javascript_pack_tag "decidim_budgeting_pipeline_budgets" %>
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/votes/preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
</div>
</div>

<%= javascript_pack_tag "decidim_budgeting_pipeline_preview" %>
<%= append_javascript_pack_tag "decidim_budgeting_pipeline_preview" %>
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/votes/projects.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
</div>
</div>

<%= javascript_pack_tag "decidim_budgeting_pipeline_projects" %>
<%= append_javascript_pack_tag "decidim_budgeting_pipeline_projects" %>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ en:
category_name: Theme
vote_count: Votes
filters:
activity_values:
all: All
favorites: My favorites
budget: Area
budget_amount_max: Maximum budget
budget_amount_min: Minimum budget
Expand Down
3 changes: 0 additions & 3 deletions lib/decidim/budgeting_pipeline/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ class Engine < ::Rails::Engine
Decidim::Budgets::ProjectCell.include(
Decidim::BudgetingPipeline::ProjectCellExtensions
)
Decidim::Budgets::ProjectVoteButtonCell.include(
Decidim::BudgetingPipeline::ProjectVoteButtonCellExtensions
)

# Form extensions
Decidim::Budgets::Admin::ComponentForm.include(
Expand Down
24 changes: 0 additions & 24 deletions spec/cells/decidim/budgets/project_list_item_cell_spec.rb

This file was deleted.

Loading

0 comments on commit 12fc43f

Please sign in to comment.