openpoke/decidim-module-reporting-proposals

Move view overrides to Deface gem

Closed this issue · 0 comments

This module is going to be combined with other modules performing also overrides on ERB files.
In order to prevent collisions, it would be better to use the Deface gem instead of recreating the full erb paths.

  • Add deface to the gemspec file
  • Require deface in engine.rb
  • Substitute overrides for deface files in app/overrides
    • decidim/proposals/proposals/new.html.erb
    • decidim/proposals/admin/proposals/show.html.erb
    • decidim/proposals/admin/proposals/_proposals-tr.html.erb