Skip to content

Commit

Permalink
Backport 'Fix decidim-templates usage' to v0.26 (#12601)
Browse files Browse the repository at this point in the history
* Fix decidim-templates usage

* Fix decidim-templates usage

* Apply review recommendations

* Remove unexisting helper in this version

* Remove unused i18n string

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
  • Loading branch information
andreslucena and alecslupu authored Mar 15, 2024
1 parent d9bdfcd commit f2e8d50
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ PATH
decidim-surveys (0.26.9)
decidim-core (= 0.26.9)
decidim-forms (= 0.26.9)
decidim-templates (= 0.26.9)
decidim-system (0.26.9)
active_link_to (~> 1.0)
decidim-core (= 0.26.9)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ApplicationController < ::DecidimController
helper Decidim::LanguageChooserHelper
helper Decidim::ComponentPathHelper
helper Decidim::SanitizeHelper
helper Decidim::Templates::Admin::ApplicationHelper if Decidim.module_installed?(:templates) && defined?(Decidim::Templates::Admin::ApplicationHelper)

default_form_builder Decidim::Admin::FormBuilder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module HasQuestionnaire
helper_method :questionnaire_for, :questionnaire, :blank_question, :blank_answer_option, :blank_matrix_row,
:blank_display_condition, :question_types, :display_condition_types, :update_url, :public_url, :answer_options_url, :edit_questionnaire_title

if defined? Decidim::Templates::Admin
if defined?(Decidim::Templates::Admin::Concerns::Templatable)
include Decidim::Templates::Admin::Concerns::Templatable
helper Decidim::Templates::Admin::TemplatesHelper

Expand Down
1 change: 0 additions & 1 deletion decidim-generators/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ PATH
decidim-surveys (0.26.9)
decidim-core (= 0.26.9)
decidim-forms (= 0.26.9)
decidim-templates (= 0.26.9)
decidim-system (0.26.9)
active_link_to (~> 1.0)
decidim-core (= 0.26.9)
Expand Down
2 changes: 1 addition & 1 deletion decidim-surveys/decidim-surveys.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Gem::Specification.new do |s|

s.add_dependency "decidim-core", Decidim::Surveys.version
s.add_dependency "decidim-forms", Decidim::Surveys.version
s.add_dependency "decidim-templates", Decidim::Surveys.version

s.add_development_dependency "decidim-admin", Decidim::Surveys.version
s.add_development_dependency "decidim-dev", Decidim::Surveys.version
s.add_development_dependency "decidim-participatory_processes", Decidim::Surveys.version
s.add_development_dependency "decidim-templates", Decidim::Surveys.version
end
1 change: 0 additions & 1 deletion decidim_app-design/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ PATH
decidim-surveys (0.26.9)
decidim-core (= 0.26.9)
decidim-forms (= 0.26.9)
decidim-templates (= 0.26.9)
decidim-system (0.26.9)
active_link_to (~> 1.0)
decidim-core (= 0.26.9)
Expand Down

0 comments on commit f2e8d50

Please sign in to comment.