decidim-assemblies 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b995e4a8247cb9d1bd70bd09a3cdc84a82a2919e8c08b30467bba8cb1dfdbd1c
4
- data.tar.gz: 4d94113578191fe4d7f9b32250ba63ca2913f046fdbb3e020e8ae043198c10ca
2
+ SHA1:
3
+ metadata.gz: 0e7749620494cd8847906ae96189c8cc1337cdb0
4
+ data.tar.gz: f13481e269ed2027a0abe27b685e98a9a9044c46
5
5
  SHA512:
6
- metadata.gz: 77d232c1d241e48bf59a2930c83b07efea3c6fed75d9029cdb3e167b9226643d89aea01ffba889d3fec028f8f0f45b526e00b80f4ac73e72ce5558d66b22244d
7
- data.tar.gz: 557f0f1034437018cb7bb959f1ddb3a2aa4176a81dec9db2a84adef98860b738206cefb576736cffb3277474e1e573a7649915f133c2bc6129f1ded617f21db9
6
+ metadata.gz: 288d727285549f96b47ecf5a870a123adb758ac445b6b615176a0fb430208bbb924e99bc3f2d7baabb3f04c0b4ab3abee876c24b185a10bf875edf1b03082d33
7
+ data.tar.gz: 0aae63dfa3b6c987b3df8597a115e3f72d5d73ddf3a584c3fac58a21902f2562509c32faa1651d7f831ebace90a2b021879f6bbe764672d84f420a119219e2f3
data/README.md CHANGED
@@ -16,6 +16,7 @@ This plugin provides:
16
16
  * Public views for assembly via a high level section in the main menu.
17
17
 
18
18
  ## Installation
19
+
19
20
  Add this line to your application's Gemfile:
20
21
 
21
22
  ```ruby
@@ -23,12 +24,15 @@ gem 'decidim-assemblies'
23
24
  ```
24
25
 
25
26
  And then execute:
27
+
26
28
  ```bash
27
- $ bundle
29
+ bundle
28
30
  ```
29
31
 
30
32
  ## Contributing
33
+
31
34
  See [Decidim](https://github.com/decidim/decidim).
32
35
 
33
36
  ## License
37
+
34
38
  See [Decidim](https://github.com/decidim/decidim).
@@ -12,6 +12,7 @@ module Decidim
12
12
  helper Decidim::AttachmentsHelper
13
13
  helper Decidim::IconHelper
14
14
  helper Decidim::WidgetUrlsHelper
15
+ helper Decidim::SanitizeHelper
15
16
 
16
17
  helper_method :collection, :promoted_assemblies, :assemblies, :stats
17
18
 
@@ -3,6 +3,8 @@
3
3
  module Decidim
4
4
  module Assemblies
5
5
  class AssemblyWidgetsController < Decidim::WidgetsController
6
+ helper Decidim::SanitizeHelper
7
+
6
8
  private
7
9
 
8
10
  def model
@@ -23,7 +23,7 @@ module Decidim
23
23
  dependent: :destroy,
24
24
  as: :participatory_space
25
25
 
26
- has_many :features, as: :participatory_space
26
+ has_many :features, as: :participatory_space, dependent: :destroy
27
27
 
28
28
  validates :slug, uniqueness: { scope: :organization }
29
29
  validates :slug, presence: true, format: { with: Decidim::Assembly.slug_format }
@@ -8,7 +8,7 @@
8
8
  <%= link_to assembly_path(assembly), class: "card__link" do %>
9
9
  <h4 class="card__title"><%= translated_attribute assembly.title %></h4>
10
10
  <% end %>
11
- <p class="card__desc"><%= sanitize html_truncate(translated_attribute(assembly.short_description), length: 630, separator: '...') %></p>
11
+ <p class="card__desc"><%= decidim_sanitize html_truncate(translated_attribute(assembly.short_description), length: 630, separator: '...') %></p>
12
12
  </div>
13
13
  <div class="card__footer">
14
14
  <div class="card__support">
@@ -5,7 +5,7 @@
5
5
  <%= link_to assembly_path(promoted_assembly), class: "card__link" do %>
6
6
  <h2 class="card__title"><%= translated_attribute promoted_assembly.title %></h2>
7
7
  <% end %>
8
- <%= sanitize html_truncate(translated_attribute(promoted_assembly.short_description), length: 630, separator: '...') %>
8
+ <%= decidim_sanitize html_truncate(translated_attribute(promoted_assembly.short_description), length: 630, separator: '...') %>
9
9
  <%= link_to assembly_path(promoted_assembly), class: "button secondary small hollow card__button" do %>
10
10
  <%= t("assemblies.promoted_assembly.more_info", scope: "layouts.decidim") %>
11
11
  <% end %>
@@ -1,4 +1,4 @@
1
- <% provide :meta_title, t("assemblies.index.title", scope: "decidim") %>
1
+ <% add_decidim_meta_tags(title: t("assemblies.index.title", scope: "decidim")) %>
2
2
 
3
3
  <main class="wrapper">
4
4
  <% if promoted_assemblies.any? %>
@@ -11,9 +11,9 @@
11
11
  <div class="columns medium-7 mediumlarge-8">
12
12
  <div class="section">
13
13
  <div class="lead">
14
- <%= sanitize translated_attribute(current_assembly.short_description) %>
14
+ <%= decidim_sanitize translated_attribute(current_assembly.short_description) %>
15
15
  </div>
16
- <%= sanitize translated_attribute(current_assembly.description) %>
16
+ <%= decidim_sanitize translated_attribute(current_assembly.description) %>
17
17
  </div>
18
18
  <%= attachments_for current_assembly %>
19
19
  </div>
@@ -1,6 +1,6 @@
1
1
  <% content_for(:header, "false") %>
2
2
  <% content_for(:title, translated_attribute(model.title)) %>
3
- <p class="card__desc"><%= sanitize html_truncate(translated_attribute(model.short_description), length: 630, separator: '...') %></p>
3
+ <p class="card__desc"><%= decidim_sanitize html_truncate(translated_attribute(model.short_description), length: 630, separator: '...') %></p>
4
4
  <% content_for(:footer) do %>
5
5
  <div class="card__support">
6
6
  <span class="card--process__small"></span>
@@ -0,0 +1,29 @@
1
+ <div class="row" id="highlighted-assemblies">
2
+ <h3 class="section-heading"><%= t(".active_assemblies") %></h3>
3
+ <div class="row collapse">
4
+ <div class="row small-up-1 smallmedium-up-2 mediumlarge-up-3
5
+ large-up-4 card-grid">
6
+ <% highlighted_assemblies.each do |assembly| %>
7
+ <div class="column">
8
+ <article class="card card--assembly card--mini">
9
+ <%= link_to decidim_assemblies.assembly_path(assembly), class: "card__link" do %>
10
+ <div class="card__image-top"
11
+ style="background-image:url(<%= assembly.hero_image.url %>)"></div>
12
+ <% end %>
13
+ <div class="card__content">
14
+ <%= link_to decidim_assemblies.assembly_path(assembly), class: "card__link" do %>
15
+ <h4 class="card__title"><%= translated_attribute assembly.title %></h4>
16
+ <% end %>
17
+ </div>
18
+ </article>
19
+ </div>
20
+ <% end %>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <div class="row" id="see-all-assemblies">
25
+ <div class="columns small-centered small-12
26
+ smallmedium-8 medium-6 large-4">
27
+ <%= link_to t(".see_all_assemblies"), decidim_assemblies.assemblies_path, class: "button expanded hollow button--sc home-section__cta" %>
28
+ </div>
29
+ </div>
@@ -12,7 +12,7 @@
12
12
  <ul>
13
13
  <% current_assembly.features.each do |feature| %>
14
14
  <% if feature.manifest.admin_engine %>
15
- <li <% if is_active_link?(manage_feature_path(feature)) %> class="is-active" <% end %>>
15
+ <li <% if is_active_link?(manage_feature_path(feature)) || is_active_link?(decidim_admin_assemblies.edit_feature_path(current_assembly, feature)) || is_active_link?(decidim_admin_assemblies.edit_feature_permissions_path(current_assembly, feature)) %> class="is-active" <% end %>>
16
16
  <%= link_to manage_feature_path(feature) do %>
17
17
  <%= translated_attribute feature.name %>
18
18
  <% if feature.primary_stat.present? %>
@@ -88,6 +88,11 @@ ca:
88
88
  slug_help: 'Els noms curts d''URL s''utilitzen per generar els URL que apunten a aquesta assemblea. Només accepta lletres, números i guions, i ha de començar amb una lletra. Exemple: %{url}'
89
89
  index:
90
90
  title: Assemblees
91
+ pages:
92
+ home:
93
+ highlighted_assemblies:
94
+ active_assemblies: Assemblees actives
95
+ see_all_assemblies: Veure totes les assemblees
91
96
  show:
92
97
  developer_group: Grup promotor
93
98
  local_area: Àrea municipal
@@ -88,6 +88,11 @@ en:
88
88
  slug_help: 'URL slugs are used to generate the URLs that point to this assembly. Only accepts letters, numbers and dashes, and must start with a letter. Example: %{url}'
89
89
  index:
90
90
  title: Assemblies
91
+ pages:
92
+ home:
93
+ highlighted_assemblies:
94
+ active_assemblies: Active assemblies
95
+ see_all_assemblies: See all assemblies
91
96
  show:
92
97
  developer_group: Developer group
93
98
  local_area: Local area
@@ -88,6 +88,11 @@ es:
88
88
  slug_help: 'Los textos cortos de URL se utilizan para generar las URL que apuntan a esta asamblea. Sólo acepta letras, números y guiones, y debe comenzar con una letra. Ejemplo: %{url}'
89
89
  index:
90
90
  title: Asambleas
91
+ pages:
92
+ home:
93
+ highlighted_assemblies:
94
+ active_assemblies: Asambleas activas
95
+ see_all_assemblies: Ver todas las asambleas
91
96
  show:
92
97
  developer_group: Grupo promotor
93
98
  local_area: Áreas municipales
@@ -87,6 +87,11 @@ eu:
87
87
  slug_help: 'URL slugs erabiltzen dira muntatze hau adierazten duten URLak sortzeko. Letrak, zenbakiak eta marratxoak soilik onartzen ditu eta letra batekin hasi behar duzu. Adibidea: %{url}'
88
88
  index:
89
89
  title: Biltzarrak
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Batzar aktiboak
94
+ see_all_assemblies: Ikusi muntaia guztiak
90
95
  show:
91
96
  developer_group: Talde sustatzailea
92
97
  local_area: Udal-alorrak
@@ -87,6 +87,11 @@ fi:
87
87
  slug_help: 'URL-osoittimia käytetään tuottamaan tämän kokoonpanon osoittavat URL-osoitteet. Hyväksyy vain kirjeet, numerot ja viivat, ja se on aloitettava kirjaimella. Esimerkki: %{url}'
88
88
  index:
89
89
  title: osat
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Aktiiviset kokoonpanot
94
+ see_all_assemblies: Katso kaikki kokoonpanot
90
95
  show:
91
96
  developer_group: Kehitysryhmä
92
97
  local_area: Paikallisalue
@@ -87,6 +87,11 @@ fr:
87
87
  slug_help: 'Les identifiants d''URL sont utilisés pour générer les URL qui envoient vers cette assemblée. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
88
88
  index:
89
89
  title: Assemblées
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Assemblées actives
94
+ see_all_assemblies: Voir toutes les assemblées
90
95
  show:
91
96
  developer_group: Groupe d'initiateurs
92
97
  local_area: Localisation
@@ -2,26 +2,26 @@ it:
2
2
  activemodel:
3
3
  attributes:
4
4
  assembly:
5
- banner_image: Immagine banner
6
- copy_categories: Copiare le categorie
5
+ banner_image: Immagine del banner
6
+ copy_categories: Copia le categorie
7
7
  copy_features: Funzioni di copia
8
8
  description: Descrizione
9
- developer_group: Gruppo promotore
9
+ developer_group: Gruppo sviluppatori
10
10
  domain: Dominio
11
- hashtag: hashtag
12
- hero_image: Immagine sulla Home Page
11
+ hashtag: Hashtag
12
+ hero_image: Immagine della Home
13
13
  local_area: Municipi
14
14
  meta_scope: Metadati di ambito
15
15
  participatory_scope: Visibilità/ambito partecipativo
16
16
  participatory_structure: Struttura partecipativa
17
- promoted: Promossa
18
- scope_id: Objetivos
19
- scopes_enabled: Gli ambiti abilitati
20
- short_description: Descrizione breve
17
+ promoted: Promossop
18
+ scope_id: Scopi
19
+ scopes_enabled: Scopi abilitati
20
+ short_description: Breve descrizione
21
21
  slug: URL slug
22
22
  subtitle: Sottotitolo
23
- target: A chi è destinato il processo?
24
- title: Nome
23
+ target: Target
24
+ title: Titolo
25
25
  decidim:
26
26
  admin:
27
27
  assemblies:
@@ -31,7 +31,7 @@ it:
31
31
  destroy:
32
32
  success: Assemblea distrutta con successo.
33
33
  edit:
34
- update: Modifica
34
+ update: Aggiorna
35
35
  form:
36
36
  title: Informazioni generali
37
37
  index:
@@ -87,6 +87,11 @@ it:
87
87
  slug_help: 'Gli slug URL vengono utilizzati per generare gli URL che puntano a questo assembly. Accetta solo lettere, numeri e trattini, e deve iniziare con una lettera. Esempio: %{url}'
88
88
  index:
89
89
  title: assemblee
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Assemblee attive
94
+ see_all_assemblies: Vedere tutti gli assiemi
90
95
  show:
91
96
  developer_group: Gruppo promotore
92
97
  local_area: Municipi
@@ -2,34 +2,34 @@ nl:
2
2
  activemodel:
3
3
  attributes:
4
4
  assembly:
5
- banner_image: Banner afbeelding
6
- copy_categories: Kopieercategorieën
7
- copy_features: Kopieerfuncties
5
+ banner_image: Bannerafbeelding
6
+ copy_categories: Categorieën kopiëren
7
+ copy_features: Functies kopiëren
8
8
  description: Beschrijving
9
9
  developer_group: Ontwikkelaarsgroep
10
10
  domain: Domein
11
11
  hashtag: Hashtag
12
- hero_image: Home image
13
- local_area: Lokale buurt
12
+ hero_image: Afbeelding van de startpagina
13
+ local_area: Lokaal gebied
14
14
  meta_scope: Omvang metadata
15
- participatory_scope: Participatief toepassingsgebied
15
+ participatory_scope: Participatieve scope
16
16
  participatory_structure: Participatieve structuur
17
17
  promoted: gepromoveerd
18
- scope_id: Reikwijdte
18
+ scope_id: Scope
19
19
  scopes_enabled: Scopes ingeschakeld
20
20
  short_description: Korte beschrijving
21
21
  slug: URL slak
22
- subtitle: subtitel
22
+ subtitle: Ondertiteling
23
23
  target: Doel
24
24
  title: Titel
25
25
  decidim:
26
26
  admin:
27
27
  assemblies:
28
28
  create:
29
- error: Er is een fout opgetreden bij het maken van een nieuwe assemblage.
30
- success: Assemblage is succesvol gecreëerd.
29
+ error: Er is een fout opgetreden bij het maken van een nieuwe bijeenkomt.
30
+ success: Bijeenkomst is succesvol gecreëerd.
31
31
  destroy:
32
- success: Assemblage is succesvol vernietigd.
32
+ success: Bijeenkomst is succesvol vernietigd.
33
33
  edit:
34
34
  update: Bijwerken
35
35
  form:
@@ -39,94 +39,99 @@ nl:
39
39
  published: Gepubliceerd
40
40
  new:
41
41
  create: creëren
42
- title: Nieuwe montage
42
+ title: Nieuwe bijeenkomst
43
43
  update:
44
- error: Er is een fout opgetreden bij het bijwerken van deze assemblage.
45
- success: Assemblage is succesvol bijgewerkt.
44
+ error: Er is een fout opgetreden bij het bijwerken van deze bijeenkomt.
45
+ success: Bijeenkomst is succesvol bijgewerkt.
46
46
  assemblies_copies:
47
47
  create:
48
- error: Er was een fout bij het dupliceren van deze assemblage.
49
- success: Assemblage is succesvol gedupliceerd.
48
+ error: Er was een fout bij het dupliceren van deze bijeenkomt.
49
+ success: Bijeenkomst is succesvol gedupliceerd.
50
50
  assembly_copies:
51
51
  new:
52
52
  copy: Kopiëren
53
53
  select: Selecteer welke gegevens u wilt dupliceren
54
- title: Dupliceerde montage
54
+ title: Dupliceer bijeenkomst
55
55
  assembly_publications:
56
56
  create:
57
- error: Er is een fout opgetreden bij het publiceren van deze assemblage.
58
- success: Assemblage is succesvol gepubliceerd.
57
+ error: Er is een fout opgetreden bij het publiceren van deze bijeenkomt.
58
+ success: Bijeenkomst is succesvol gepubliceerd.
59
59
  destroy:
60
- error: Er is een fout opgetreden bij het publiceren van deze assemblage.
61
- success: Assemblage ongepubliceerd succesvol.
60
+ error: Er is een fout opgetreden bij het publiceren van deze bijeenkomt.
61
+ success: Bijeenkomt succesvol ongepubliceerd.
62
62
  menu:
63
- assemblies: Assemblies
63
+ assemblies: Bijeenkomsten
64
64
  assemblies_submenu:
65
- attachments: toebehoren
65
+ attachments: Bijlagen
66
66
  categories: Categorieën
67
67
  features: Kenmerken
68
68
  info: info
69
- moderations: matigingen
69
+ moderations: Moderaties
70
70
  models:
71
71
  assembly:
72
72
  fields:
73
73
  created_at: Gemaakt bij
74
- promoted: Opvallende
74
+ promoted: Gemarkeerd
75
75
  published: Gepubliceerd
76
76
  title: Titel
77
- name: bijeenkomst
77
+ name: Bijeenkomst
78
78
  titles:
79
- assemblies: Assemblies
79
+ assemblies: Bijeenkomsten
80
80
  assemblies:
81
81
  admin:
82
82
  assemblies:
83
83
  form:
84
- slug_help: 'URL-slakjes worden gebruikt om de URL''s die naar dit assemblage wijzen, te genereren. Aanvaardt alleen letters, cijfers en streepjes, en moet beginnen met een brief. Voorbeeld: %{url}'
84
+ slug_help: 'URL-slugs worden gebruikt om de URL''s te genereren die naar deze bijeenkomst verwijzen. Enkel letters, cijfers en streepjes worden toegestaan en deze moet beginnen met een letter. Voorbeeld: %{url}'
85
85
  assembly_copies:
86
86
  form:
87
- slug_help: 'URL-slakjes worden gebruikt om de URL''s die naar dit assemblage wijzen, te genereren. Aanvaardt alleen letters, cijfers en streepjes, en moet beginnen met een brief. Voorbeeld: %{url}'
87
+ slug_help: 'URL-slugs worden gebruikt om de URL''s te genereren die naar deze bijeenkomst verwijzen. Enkel letters, cijfers en streepjes worden toegestaan en deze moet beginnen met een letter. Voorbeeld: %{url}'
88
88
  index:
89
- title: Assemblies
89
+ title: Bijeenkomsten
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Actieve bijeenkomsten
94
+ see_all_assemblies: Bekijk alle bijeenkomsten
90
95
  show:
91
96
  developer_group: Ontwikkelaarsgroep
92
- local_area: Lokale buurt
93
- participatory_scope: Participatief toepassingsgebied
97
+ local_area: Lokaal gebied
98
+ participatory_scope: Participatieve scope
94
99
  participatory_structure: Participatieve structuur
95
- scope: Reikwijdte
100
+ scope: Scope
96
101
  target: Doel
97
102
  statistics:
98
- answers_count: antwoorden
99
- assemblies_count: Assemblies
100
- comments_count: Comments
103
+ answers_count: Antwoorden
104
+ assemblies_count: Bijeenkomsten
105
+ comments_count: Reacties
101
106
  headline: Activiteit
102
107
  meetings_count: Vergaderingen
103
- orders_count: stemmen
104
- pages_count: Pages
108
+ orders_count: Stemmen
109
+ pages_count: Pagina's
105
110
  projects_count: Projecten
106
111
  proposals_count: Voorstellen
107
112
  results_count: Resultaten
108
- surveys_count: onderzoeken
113
+ surveys_count: Enquêtes
109
114
  users_count: Deelnemers
110
- votes_count: stemmen
115
+ votes_count: Stemmen
111
116
  menu:
112
- assemblies: Assemblies
117
+ assemblies: Bijeenkomsten
113
118
  layouts:
114
119
  decidim:
115
120
  assemblies:
116
121
  assembly:
117
122
  take_part: Deelnemen
118
123
  index:
119
- promoted_assemblies: Uitgelichte samenstellingen
124
+ promoted_assemblies: Gemarkeerde bijenkomsten
120
125
  order_by_assemblies:
121
126
  assemblies:
122
- one: "%{count} assemblage"
123
- other: "%{count} gemeentes"
127
+ one: "%{count} bijeenkomst"
128
+ other: "%{count} bijeenkomsten"
124
129
  promoted_assembly:
125
130
  more_info: Meer informatie
126
131
  take_part: Deelnemen
127
132
  assembly_header:
128
- assembly_menu_item: De vergadering
129
- unfold: Ontvouwen
133
+ assembly_menu_item: De bijeenkomst
134
+ unfold: Uitvouwen
130
135
  assembly_widgets:
131
136
  show:
132
137
  take_part: Deelnemen
@@ -87,6 +87,11 @@ pl:
87
87
  slug_help: 'Ślimaki URL służą do generowania adresów URL wskazujących ten zespół. Akceptuje tylko litery, cyfry i myślniki i musi zaczynać się od litery. Przykład: %{url}'
88
88
  index:
89
89
  title: Zespoły
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Aktywne złożenia
94
+ see_all_assemblies: Zobacz wszystkie zespoły
90
95
  show:
91
96
  developer_group: Grupa programistyczna
92
97
  local_area: Okolica
@@ -0,0 +1,137 @@
1
+ pt:
2
+ activemodel:
3
+ attributes:
4
+ assembly:
5
+ banner_image: Imagem da bandeira
6
+ copy_categories: Cópiar categorias
7
+ copy_features: Recursos de cópia
8
+ description: Descrição
9
+ developer_group: Grupo de desenvolvedores
10
+ domain: Domínio
11
+ hashtag: Hashtag
12
+ hero_image: Imagem inicial
13
+ local_area: Área Local
14
+ meta_scope: Metadados do escopo
15
+ participatory_scope: Escopo participativo
16
+ participatory_structure: Estrutura participativa
17
+ promoted: Promovido
18
+ scope_id: Escopo
19
+ scopes_enabled: Escopos ativados
20
+ short_description: Pequena descrição
21
+ slug: Slug de URL
22
+ subtitle: Legenda
23
+ target: Alvo
24
+ title: Título
25
+ decidim:
26
+ admin:
27
+ assemblies:
28
+ create:
29
+ error: Ocorreu um erro ao criar uma nova montagem.
30
+ success: Montagem criada com sucesso.
31
+ destroy:
32
+ success: Assembléia destruída com sucesso.
33
+ edit:
34
+ update: Atualizar
35
+ form:
36
+ title: Informação geral
37
+ index:
38
+ not_published: Não publicado
39
+ published: Publicados
40
+ new:
41
+ create: Crio
42
+ title: Nova montagem
43
+ update:
44
+ error: Ocorreu um erro ao atualizar este assembly.
45
+ success: Assembléia atualizada com sucesso.
46
+ assemblies_copies:
47
+ create:
48
+ error: Ocorreu um erro ao duplicar este assembly.
49
+ success: Montagem duplicada com sucesso.
50
+ assembly_copies:
51
+ new:
52
+ copy: cópia de
53
+ select: Selecione os dados que você gostaria de duplicar
54
+ title: Montagem duplicada
55
+ assembly_publications:
56
+ create:
57
+ error: Ocorreu um erro ao publicar esta montagem.
58
+ success: Assembleia publicada com sucesso.
59
+ destroy:
60
+ error: Ocorreu um erro ao inéditar esta montagem.
61
+ success: Assembléia não publicada com sucesso.
62
+ menu:
63
+ assemblies: Assembléias
64
+ assemblies_submenu:
65
+ attachments: Anexos
66
+ categories: Categorias
67
+ features: Características
68
+ info: Info
69
+ moderations: Moderação
70
+ models:
71
+ assembly:
72
+ fields:
73
+ created_at: Criado em
74
+ promoted: Em destaque
75
+ published: Publicados
76
+ title: Título
77
+ name: Montagem
78
+ titles:
79
+ assemblies: Assembléias
80
+ assemblies:
81
+ admin:
82
+ assemblies:
83
+ form:
84
+ slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa montagem. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
85
+ assembly_copies:
86
+ form:
87
+ slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa montagem. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
88
+ index:
89
+ title: Assembléias
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Conjuntos ativos
94
+ see_all_assemblies: Veja todas as assembléias
95
+ show:
96
+ developer_group: Grupo de desenvolvedores
97
+ local_area: Área Local
98
+ participatory_scope: Escopo participativo
99
+ participatory_structure: Estrutura participativa
100
+ scope: Escopo
101
+ target: Alvo
102
+ statistics:
103
+ answers_count: Respostas
104
+ assemblies_count: Assembléias
105
+ comments_count: Comentários
106
+ headline: Atividade
107
+ meetings_count: Reuniões
108
+ orders_count: Votos
109
+ pages_count: Páginas
110
+ projects_count: Projetos
111
+ proposals_count: Propostas
112
+ results_count: Resultados
113
+ surveys_count: pesquisas
114
+ users_count: Participantes
115
+ votes_count: Votos
116
+ menu:
117
+ assemblies: Assembléias
118
+ layouts:
119
+ decidim:
120
+ assemblies:
121
+ assembly:
122
+ take_part: Participar
123
+ index:
124
+ promoted_assemblies: Montagens destacadas
125
+ order_by_assemblies:
126
+ assemblies:
127
+ one: "Assembly %{count}"
128
+ other: "Conjuntos %{count}"
129
+ promoted_assembly:
130
+ more_info: Mais informações
131
+ take_part: Participar
132
+ assembly_header:
133
+ assembly_menu_item: A montagem
134
+ unfold: Desdobrar
135
+ assembly_widgets:
136
+ show:
137
+ take_part: Participar
@@ -6,7 +6,7 @@ ru:
6
6
  copy_categories: Скопировать категории
7
7
  copy_features: Копировать составляющие
8
8
  description: Описание
9
- developer_group: Группа разработчиков
9
+ developer_group: Группа зачинателей
10
10
  domain: Домен
11
11
  hashtag: Хэштег
12
12
  hero_image: Изображение главной страницы
@@ -71,7 +71,7 @@ ru:
71
71
  assembly:
72
72
  fields:
73
73
  created_at: 'Добавлено:'
74
- promoted: Выдвинутые на первый план
74
+ promoted: Рекомендуемые
75
75
  published: Опубликовано
76
76
  title: Название
77
77
  name: Собрание
@@ -87,8 +87,13 @@ ru:
87
87
  slug_help: 'Сокращенные URL-адреса используются для создания ссылок на это собрание. В них допустимы только буквы, цифры и тире, и они должны начинаться с буквы. Пример: %{url}'
88
88
  index:
89
89
  title: Собрания
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Начатые собрания
94
+ see_all_assemblies: Просмотреть все собрания
90
95
  show:
91
- developer_group: Группа разработчиков
96
+ developer_group: Группа зачинателей
92
97
  local_area: Местность
93
98
  participatory_scope: Охват соучастия
94
99
  participatory_structure: Структура соучастия
@@ -116,7 +121,7 @@ ru:
116
121
  assembly:
117
122
  take_part: Принять участие
118
123
  index:
119
- promoted_assemblies: Выдвинутые на первый план собрания
124
+ promoted_assemblies: Рекомендуемые собрания
120
125
  order_by_assemblies:
121
126
  assemblies:
122
127
  one: "%{count} собрание"
@@ -124,7 +129,7 @@ ru:
124
129
  many: "%{count} собраний"
125
130
  other: "%{count} собраний"
126
131
  promoted_assembly:
127
- more_info: Дополнительные сведения
132
+ more_info: Узнать больше
128
133
  take_part: Принять участие
129
134
  assembly_header:
130
135
  assembly_menu_item: Собрание
@@ -6,7 +6,7 @@ uk:
6
6
  copy_categories: Скопіювати розділи
7
7
  copy_features: Скопіювати складові
8
8
  description: Опис
9
- developer_group: Група розробників
9
+ developer_group: Група зачинальників
10
10
  domain: Домен
11
11
  hashtag: Хештег
12
12
  hero_image: Зображення головної сторінки
@@ -87,8 +87,13 @@ uk:
87
87
  slug_help: 'Cкорочені URL-адреси використовуються для створення посилань на ці збори. В них припустимі лише букви, цифри та тире, і вони мають починатися з букви. Приклад: %{url}'
88
88
  index:
89
89
  title: Збори
90
+ pages:
91
+ home:
92
+ highlighted_assemblies:
93
+ active_assemblies: Започаті збори
94
+ see_all_assemblies: Переглянути всі збори
90
95
  show:
91
- developer_group: Група розробників
96
+ developer_group: Група зачинальників
92
97
  local_area: Місцевість
93
98
  participatory_scope: Терен співучасті
94
99
  participatory_structure: Структура співучасті
@@ -124,7 +129,7 @@ uk:
124
129
  many: "%{count} зборів"
125
130
  other: "%{count} зборів"
126
131
  promoted_assembly:
127
- more_info: Додаткові відомості
132
+ more_info: Дізнатися більше
128
133
  take_part: Взяти участь
129
134
  assembly_header:
130
135
  assembly_menu_item: Збори
@@ -59,6 +59,21 @@ module Decidim
59
59
  active: :inclusive
60
60
  end
61
61
  end
62
+
63
+ initializer "decidim_assemblies.view_hooks" do
64
+ Decidim.view_hooks.register(:highlighted_elements, priority: Decidim::ViewHooks::MEDIUM_PRIORITY) do |view_context|
65
+ highlighted_assemblies = OrganizationPrioritizedAssemblies.new(view_context.current_organization)
66
+
67
+ next unless highlighted_assemblies.any?
68
+
69
+ view_context.render(
70
+ partial: "decidim/assemblies/pages/home/highlighted_assemblies",
71
+ locals: {
72
+ highlighted_assemblies: highlighted_assemblies
73
+ }
74
+ )
75
+ end
76
+ end
62
77
  end
63
78
  end
64
79
  end
@@ -3,12 +3,12 @@
3
3
  require "decidim/faker/localized"
4
4
  require "decidim/dev"
5
5
 
6
- FactoryGirl.define do
6
+ FactoryBot.define do
7
7
  sequence(:assembly_slug) do |n|
8
8
  "#{Faker::Internet.slug(nil, "-")}-#{n}"
9
9
  end
10
10
 
11
- factory :assembly, class: Decidim::Assembly do
11
+ factory :assembly, class: "Decidim::Assembly" do
12
12
  title { Decidim::Faker::Localized.sentence(3) }
13
13
  slug { generate(:assembly_slug) }
14
14
  subtitle { Decidim::Faker::Localized.sentence(1) }
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-assemblies version.
5
5
  module Assemblies
6
6
  def self.version
7
- "0.7.4"
7
+ "0.8.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-assemblies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-23 00:00:00.000000000 Z
13
+ date: 2017-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.4
21
+ version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.7.4
28
+ version: 0.8.0
29
29
  - !ruby/object:Gem::Dependency
30
- name: decidim-dev
30
+ name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.7.4
35
+ version: 0.8.0
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.7.4
42
+ version: 0.8.0
43
43
  - !ruby/object:Gem::Dependency
44
- name: decidim-admin
44
+ name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.7.4
49
+ version: 0.8.0
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.7.4
56
+ version: 0.8.0
57
57
  description: Assemblies plugin for decidim
58
58
  email:
59
59
  - josepjaume@gmail.com
@@ -120,6 +120,7 @@ files:
120
120
  - app/views/decidim/assemblies/assemblies/index.html.erb
121
121
  - app/views/decidim/assemblies/assemblies/show.html.erb
122
122
  - app/views/decidim/assemblies/assembly_widgets/show.html.erb
123
+ - app/views/decidim/assemblies/pages/home/_highlighted_assemblies.html.erb
123
124
  - app/views/layouts/decidim/_assembly_header.html.erb
124
125
  - app/views/layouts/decidim/admin/assemblies.html.erb
125
126
  - app/views/layouts/decidim/admin/assembly.html.erb
@@ -133,6 +134,7 @@ files:
133
134
  - config/locales/it.yml
134
135
  - config/locales/nl.yml
135
136
  - config/locales/pl.yml
137
+ - config/locales/pt.yml
136
138
  - config/locales/ru.yml
137
139
  - config/locales/uk.yml
138
140
  - db/migrate/20170727190859_add_assemblies.rb
@@ -168,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
170
  version: '0'
169
171
  requirements: []
170
172
  rubyforge_project:
171
- rubygems_version: 2.7.1
173
+ rubygems_version: 2.6.13
172
174
  signing_key:
173
175
  specification_version: 4
174
176
  summary: Assemblies plugin for decidim