Skip to content

OpenSourcePolitics/decidim-module-emitter

Repository files navigation

Decidim::Emitter

Module Decidim Emitter allows to create Emitters (meaning a logo and a name) to link with the current Participatory Processes

Usage

Emitter will be available as a Component for a Participatory Space.

Features

  • Create Emitters
  • Link Emitters to Participatory Processes
  • Display Emitters on Participatory Processes
  • Display Emitters on Participatory Processes index
  • Display Emitters on Homepage content blocks
  • Display Emitters on Participatory Processes cards
  • Copy, Update Participatory processes

Participatory process homepage content blocks Highlighted on index of Participatory processes Active Participatory processes Backoffice edit Participatory process

Installation

Add this line to your application's Gemfile:

gem "decidim-emitter"

Or using Github

gem "decidim-emitter", github: "OpenSourcePolitics/decidim-emitter"

And then execute:

bundle

Configure Emitter

Configuration allows to skip extends made by the module using initializer

Create config/initializers/decidim_emitter.rb and add the following:

# frozen_string_literal: true

Decidim::Emitter.configure do |config|
  config.exclude_extends = [:participatory_process, :participatory_process_form, :participatory_process_create, :participatory_process_copy, :participatory_process_update]
end

Next improvements

  • Move emitter to a dedicated model and use a DB relation to link it to Participatory Processes

Contributing

Contributions are welcome !

We expect the contributions to follow the Decidim's contribution guide.

Security

Security is very important to us. If you have any issue regarding security, please disclose the information responsibly by sending an email to security [at] opensourcepolitics [dot] eu and not by creating a GitHub issue.

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.

About

Link Emitter name and logo to a Decidim Participatory Process

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages