decidim-blogs 0.13.1 → 0.14.1

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
2
  SHA256:
3
- metadata.gz: 5fb3caae8e13a3e2bed8427553299613d4a10e6777282ada396da013055671e3
4
- data.tar.gz: 25adaf4037517808f2813245c6490a3b4a9e1bf425ee412de3781c6fe7ec15fc
3
+ metadata.gz: 46b3b2140054350a7405f0b39b56536453cac797dbe8234994a448f92a978a61
4
+ data.tar.gz: e6127985445998730f2150ff89bfcb74ee05bf53b101cec90bf64abf344812e4
5
5
  SHA512:
6
- metadata.gz: d867cf9104b8745817a7d5a63492fd90c3c843409f688ac0e924fd262bd06590238847a63ed9b12076c21945bb1832b777205f670b05522159e8e188398a2f31
7
- data.tar.gz: 5dc08a05ec4fb99beeb4a2da2e5bc0aa82aba1a6fcf3453dd038af88f0301a90abb1df3ce9bc838d5b620cdf05fbd542d67660534df96a66c5ea8dcae646a23d
6
+ metadata.gz: cc4cdbfa4e76dd127ed44c01608ea235f18885add6e1224548b3b04dffb55fd77d24663a01c226e6fbf9b841f7a3425f767667c8585bdb833dbee3a04b81efc2
7
+ data.tar.gz: 262a32a5592eb372af8dd59e47a26001dac818079c2289d8f2c858f42c43cd2f195831b3b83c662bb1b5bc6dfb3e8ed61820bac571e7e97aa06baf4fe02b265e
@@ -6,7 +6,7 @@ module Decidim
6
6
  # the default size is the Medium Card (:m)
7
7
  class PostCell < Decidim::ViewModel
8
8
  def show
9
- cell card_size, model
9
+ cell card_size, model, options
10
10
  end
11
11
 
12
12
  private
@@ -5,6 +5,6 @@
5
5
  <%= render partial: "posts" %>
6
6
  </div>
7
7
  <div id="most-commented" class="columns medium-5 mediumlarge-4 large-4">
8
- <%= render partial: "sidebar_blog", locals: {posts: posts_most_commented} %>
8
+ <%= render partial: "sidebar_blog", locals: { posts: posts_most_commented } %>
9
9
  </div>
10
10
  </div>
@@ -5,6 +5,15 @@
5
5
  description: translated_attribute(post.body),
6
6
  url: post_url(post.id)
7
7
  }) %>
8
+
9
+ <%
10
+ edit_link(
11
+ resource_locator(post).edit,
12
+ :update,
13
+ :blogpost,
14
+ blogpost: post
15
+ )
16
+ %>
8
17
  <div class="row">
9
18
  <div class="columns medium-7 mediumlarge-8">
10
19
  <div class="row column view-header">
@@ -16,7 +25,7 @@
16
25
  </div>
17
26
  </div>
18
27
  <div id="most-commented" class="columns medium-5 mediumlarge-4 large-4">
19
- <%= render partial: "sidebar_blog", locals: {posts: posts_most_commented} %>
28
+ <%= render partial: "sidebar_blog", locals: { posts: posts_most_commented } %>
20
29
  </div>
21
30
  </div>
22
31
 
@@ -1,73 +1,73 @@
1
1
  fi:
2
2
  activemodel:
3
3
  models:
4
- decidim/blogs/create_post_event: Uusi blogikirja
4
+ decidim/blogs/create_post_event: Uusi blogiviesti
5
5
  activerecord:
6
6
  models:
7
7
  decidim/blogs/post:
8
- one: Lähettää
8
+ one: Viesti
9
9
  other: Viestejä
10
10
  decidim:
11
11
  blogs:
12
12
  actions:
13
13
  confirm_destroy: Haluatko varmasti poistaa tämän viestin?
14
- destroy: Poistaa
15
- edit: Muokata
14
+ destroy: Poista
15
+ edit: Muokkaa
16
16
  new: Uusi viesti
17
- title: Toimet
17
+ title: Toiminnot
18
18
  admin:
19
19
  models:
20
20
  components:
21
- body: ruumis
21
+ body: Leipäteksti
22
22
  post:
23
- name: Lähettää
23
+ name: Lähetä
24
24
  posts:
25
25
  create:
26
- invalid: Ongelma tämän viestin luomisessa
27
- success: Lähetys onnistuneesti luotu
26
+ invalid: Tämän viestin luomisessa esiintyi ongelma
27
+ success: Viesti luotu onnistuneesti
28
28
  destroy:
29
- success: Viesti onnistuneesti poistettu
29
+ success: Viesti poistettu onnistuneesti
30
30
  edit:
31
- save: Päivittää
31
+ save: Päivitä
32
32
  index:
33
33
  title: Viestejä
34
34
  new:
35
- create: Luoda
35
+ create: Luo
36
36
  title: Luo viesti
37
37
  update:
38
- invalid: Virhe tallentamassa viestiä on tapahtunut.
39
- success: Viestin tallennettu onnistuneesti
38
+ invalid: Viestin tallennuksessa tapahtui virheitä.
39
+ success: Viesti tallennettu onnistuneesti
40
40
  models:
41
41
  post:
42
42
  fields:
43
- author: kirjailija
44
- body: ruumis
45
- created_at: Luotu osoitteessa
43
+ author: Kirjoittaja
44
+ body: Leipäteksti
45
+ created_at: Luotu
46
46
  title: otsikko
47
47
  posts:
48
48
  show:
49
- view: näkymä
49
+ view: Näytä
50
50
  sidebar_blog:
51
51
  comments: kommentit
52
- most_commented_posts: Eniten kommentoituja viestejä
52
+ most_commented_posts: Eniten kommentoidut viestit
53
53
  read_more: Lue lisää
54
54
  components:
55
55
  blogs:
56
- name: blogi
56
+ name: Blogi
57
57
  settings:
58
58
  global:
59
59
  announcement: Ilmoitus
60
- comments_enabled: Kommentit ovat käytössä
60
+ comments_enabled: Kommentointi käytössä
61
61
  step:
62
62
  announcement: Ilmoitus
63
- comments_blocked: Kommentit on estetty
63
+ comments_blocked: Kommentointi estetty
64
64
  events:
65
65
  blogs:
66
66
  post_created:
67
- email_intro: Viesti "%{resource_title}" on julkaistu kohdassa "%{participatory_space_title}", jota seuraat.
68
- email_outro: Olet saanut tämän ilmoituksen, koska seuraat "%{participatory_space_title}". Voit purkaa sen edellisestä linkistä.
67
+ email_intro: Kohteessa "%{participatory_space_title}", jota seuraat, on julkaistu viesti "%{resource_title}".
68
+ email_outro: Olet saanut tämän ilmoituksen, koska seuraat "%{participatory_space_title}". Voit lopettaa seuraamisen edellisen linkin kautta.
69
69
  email_subject: Uusi viesti julkaistiin %{participatory_space_title}
70
- notification_title: Viesti <a href="%{resource_path}">%{resource_title}</a> on julkaistu %{participatory_space_title}
70
+ notification_title: Kohteessa %{participatory_space_title} on julkaistu viesti <a href="%{resource_path}">%{resource_title}</a>
71
71
  pages:
72
72
  home:
73
73
  statistics:
@@ -0,0 +1,77 @@
1
+ hu:
2
+ activemodel:
3
+ models:
4
+ decidim/blogs/create_post_event: Új blogbejegyzés
5
+ activerecord:
6
+ models:
7
+ decidim/blogs/post:
8
+ one: Bejegyzés
9
+ other: Bejegyzések
10
+ decidim:
11
+ blogs:
12
+ actions:
13
+ confirm_destroy: Biztos, hogy törlöd ezt a bejegyzést?
14
+ destroy: Törlés
15
+ edit: Szerkesztés
16
+ new: Új bejegyzés
17
+ title: Műveletek
18
+ admin:
19
+ models:
20
+ components:
21
+ body: Szöveg
22
+ post:
23
+ name: Bejegyzés
24
+ posts:
25
+ create:
26
+ invalid: Probléma történt a bejegyzés létrehozásakor
27
+ success: Bejegyzés létrehozása sikeres
28
+ destroy:
29
+ success: Bejegyzés törlése sikeres
30
+ edit:
31
+ save: Frissítés
32
+ index:
33
+ title: Bejegyzések
34
+ new:
35
+ create: Létrehozás
36
+ title: Bejegyzés létrehozása
37
+ update:
38
+ invalid: Hiba történt a bejegyzés mentése során.
39
+ success: Bejegyzés mentése sikeres
40
+ models:
41
+ post:
42
+ fields:
43
+ author: Szerző
44
+ body: Szöveg
45
+ created_at: 'Létrehozva:'
46
+ title: cím
47
+ posts:
48
+ show:
49
+ view: Nézet
50
+ sidebar_blog:
51
+ comments: hozzászólások
52
+ most_commented_posts: Legtöbb hozzászólással
53
+ read_more: Bővebben
54
+ components:
55
+ blogs:
56
+ name: Blog
57
+ settings:
58
+ global:
59
+ announcement: Közlemény
60
+ comments_enabled: Megjegyzések engedélyezve
61
+ step:
62
+ announcement: Közlemény
63
+ comments_blocked: Megjegyzések letiltva
64
+ events:
65
+ blogs:
66
+ post_created:
67
+ email_intro: 'A(z) "%{resource_title}" című bejegyzés a következő helyen jelent meg: "%{participatory_space_title}".'
68
+ email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{participatory_space_title}". Leiratkozás az előző link segítségével.'
69
+ email_subject: 'Új bejegyzés ehhez: %{participatory_space_title}'
70
+ notification_title: 'A(z) <a href="%{resource_path}">%{resource_title}</a> bejegyzés közzétéve itt: %{participatory_space_title}'
71
+ pages:
72
+ home:
73
+ statistics:
74
+ posts_count: Bejegyzések
75
+ participatory_processes:
76
+ statistics:
77
+ posts_count: Bejegyzések
@@ -10,7 +10,7 @@ pt-BR:
10
10
  decidim:
11
11
  blogs:
12
12
  actions:
13
- confirm_destroy: Tem certeza de que deseja excluir esta postagem?
13
+ confirm_destroy: Deseja mesmo excluir este post?
14
14
  destroy: Excluir
15
15
  edit: Editar
16
16
  new: Nova postagem
@@ -12,7 +12,7 @@ ru:
12
12
  decidim:
13
13
  blogs:
14
14
  actions:
15
- confirm_destroy: Вы действительно хотите удалить этот проект?
15
+ confirm_destroy: Вы действительно хотите удалить этот пост?
16
16
  destroy: Удалить
17
17
  edit: Редактировать
18
18
  new: Создать новый пост
@@ -5,7 +5,7 @@ sv:
5
5
  activerecord:
6
6
  models:
7
7
  decidim/blogs/post:
8
- one: Posta
8
+ one: Inlägg
9
9
  other: inlägg
10
10
  decidim:
11
11
  blogs:
@@ -14,19 +14,19 @@ sv:
14
14
  destroy: Radera
15
15
  edit: Redigera
16
16
  new: Nytt brev
17
- title: Handlingar
17
+ title: Åtgärder
18
18
  admin:
19
19
  models:
20
20
  components:
21
- body: Kropp
21
+ body: Innehåll
22
22
  post:
23
23
  name: Posta
24
24
  posts:
25
25
  create:
26
- invalid: Det har varit ett problem att skapa det här inlägget
27
- success: Post med framgång skapad
26
+ invalid: Det har blivit ett problem att skapa det här inlägget
27
+ success: Inlägg skapades framgångsrikt
28
28
  destroy:
29
- success: Posten har tagits bort
29
+ success: Inlägget har tagits bort
30
30
  edit:
31
31
  save: Uppdatering
32
32
  index:
@@ -35,13 +35,13 @@ sv:
35
35
  create: Skapa
36
36
  title: Skapa inlägg
37
37
  update:
38
- invalid: Det har varit fel när du sparar inlägget.
39
- success: Inlägg sparas framgångsrikt
38
+ invalid: Det har blivit fel när du sparar inlägget.
39
+ success: Inlägget sparades framgångsrikt
40
40
  models:
41
41
  post:
42
42
  fields:
43
43
  author: Författare
44
- body: Kropp
44
+ body: Innehåll
45
45
  created_at: Skapad vid
46
46
  title: titel
47
47
  posts:
@@ -53,21 +53,21 @@ sv:
53
53
  read_more: Läs mer
54
54
  components:
55
55
  blogs:
56
- name: blogg
56
+ name: Blogg
57
57
  settings:
58
58
  global:
59
- announcement: Meddelande
59
+ announcement: Notis
60
60
  comments_enabled: Kommentarer aktiverade
61
61
  step:
62
- announcement: Meddelande
63
- comments_blocked: Kommentarer blockerad
62
+ announcement: Notis
63
+ comments_blocked: Kommentarer blockerade
64
64
  events:
65
65
  blogs:
66
66
  post_created:
67
67
  email_intro: Posten "%{resource_title}" har publicerats i "%{participatory_space_title}" som du följer.
68
- email_outro: Du har fått den här meddelandet eftersom du följer "%{participatory_space_title}". Du kan följa det från föregående länk.
68
+ email_outro: Du har fått det här meddelandet eftersom du följer "%{participatory_space_title}". Du kan avfölja det från föregående länken.
69
69
  email_subject: Nytt inlägg publicerat i %{participatory_space_title}
70
- notification_title: Posten <a href="%{resource_path}">%{resource_title}</a> har publicerats i %{participatory_space_title}
70
+ notification_title: Inlägget <a href="%{resource_path}">%{resource_title}</a> har publicerats i %{participatory_space_title}
71
71
  pages:
72
72
  home:
73
73
  statistics:
@@ -12,7 +12,7 @@ uk:
12
12
  decidim:
13
13
  blogs:
14
14
  actions:
15
- confirm_destroy: Ви дійсно бажаєте видалити цей задум?
15
+ confirm_destroy: Ви дійсно бажаєте видалити цей проект?
16
16
  destroy: Видалити
17
17
  edit: Редагувати
18
18
  new: Створити новий допис
@@ -8,6 +8,7 @@ module Decidim
8
8
  isolate_namespace Decidim::Blogs::Admin
9
9
 
10
10
  paths["db/migrate"] = nil
11
+ paths["lib/tasks"] = nil
11
12
 
12
13
  routes do
13
14
  resources :posts
@@ -7,7 +7,7 @@ require "decidim/participatory_processes/test/factories"
7
7
  FactoryBot.define do
8
8
  factory :post_component, parent: :component do
9
9
  name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :blogs).i18n_name }
10
- manifest_name :blogs
10
+ manifest_name { :blogs }
11
11
  participatory_space { create(:participatory_process, :with_steps, organization: organization) }
12
12
  end
13
13
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-pages version.
5
5
  module Blogs
6
6
  def self.version
7
- "0.13.1"
7
+ "0.14.1"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-blogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.13.1
19
+ version: 0.14.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.13.1
26
+ version: 0.14.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.13.1
33
+ version: 0.14.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.13.1
40
+ version: 0.14.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.13.1
47
+ version: 0.14.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.13.1
54
+ version: 0.14.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: httparty
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,56 +100,56 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.13.1
103
+ version: 0.14.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 0.13.1
110
+ version: 0.14.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: decidim-assemblies
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.13.1
117
+ version: 0.14.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.13.1
124
+ version: 0.14.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: decidim-dev
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.13.1
131
+ version: 0.14.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.13.1
138
+ version: 0.14.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: decidim-participatory_processes
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.13.1
145
+ version: 0.14.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.13.1
152
+ version: 0.14.1
153
153
  description: A Blog component for decidim's participatory spaces.
154
154
  email:
155
155
  - isaac.mg@coditramuntana.com
@@ -195,6 +195,7 @@ files:
195
195
  - config/locales/fi.yml
196
196
  - config/locales/fr.yml
197
197
  - config/locales/gl.yml
198
+ - config/locales/hu.yml
198
199
  - config/locales/it.yml
199
200
  - config/locales/nl.yml
200
201
  - config/locales/pl.yml
@@ -232,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
233
  version: '0'
233
234
  requirements: []
234
235
  rubyforge_project:
235
- rubygems_version: 2.7.6
236
+ rubygems_version: 2.7.7
236
237
  signing_key:
237
238
  specification_version: 4
238
239
  summary: Decidim blogs module