decidim-blogs 0.27.10 → 0.28.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/blogs/content_blocks/highlighted_posts/content.erb +17 -0
  3. data/app/cells/decidim/blogs/content_blocks/highlighted_posts_cell.rb +52 -0
  4. data/app/cells/decidim/blogs/post_activity_cell.rb +1 -4
  5. data/app/cells/decidim/blogs/post_cell.rb +9 -2
  6. data/app/cells/decidim/blogs/post_g_cell.rb +31 -0
  7. data/app/cells/decidim/blogs/post_l_cell.rb +35 -0
  8. data/app/cells/decidim/blogs/post_metadata_cell.rb +29 -0
  9. data/app/cells/decidim/blogs/post_metadata_g_cell.rb +14 -0
  10. data/app/cells/decidim/blogs/post_s_cell.rb +15 -0
  11. data/app/commands/decidim/blogs/admin/create_post.rb +1 -0
  12. data/app/commands/decidim/blogs/admin/update_post.rb +10 -1
  13. data/app/controllers/decidim/blogs/admin/posts_controller.rb +2 -2
  14. data/app/controllers/decidim/blogs/posts_controller.rb +16 -4
  15. data/app/forms/decidim/blogs/admin/post_form.rb +2 -1
  16. data/app/helpers/decidim/blogs/admin/posts_helper.rb +11 -1
  17. data/app/helpers/decidim/blogs/application_helper.rb +4 -0
  18. data/app/helpers/decidim/blogs/posts_helper.rb +2 -4
  19. data/app/models/decidim/blogs/post.rb +14 -3
  20. data/app/packs/entrypoints/decidim_blogs.js +3 -0
  21. data/app/packs/stylesheets/blogs.scss +53 -0
  22. data/app/presenters/decidim/blogs/admin_log/post_presenter.rb +2 -2
  23. data/app/views/decidim/blogs/admin/posts/_form.html.erb +19 -13
  24. data/app/views/decidim/blogs/admin/posts/edit.html.erb +16 -6
  25. data/app/views/decidim/blogs/admin/posts/index.html.erb +60 -52
  26. data/app/views/decidim/blogs/admin/posts/new.html.erb +17 -6
  27. data/app/views/decidim/blogs/posts/_actions.html.erb +18 -0
  28. data/app/views/decidim/blogs/posts/index.html.erb +22 -9
  29. data/app/views/decidim/blogs/posts/show.html.erb +37 -47
  30. data/config/locales/ar.yml +2 -20
  31. data/config/locales/bg.yml +0 -86
  32. data/config/locales/ca.yml +16 -18
  33. data/config/locales/cs.yml +17 -17
  34. data/config/locales/de.yml +15 -17
  35. data/config/locales/el.yml +7 -18
  36. data/config/locales/en.yml +15 -17
  37. data/config/locales/es-MX.yml +15 -17
  38. data/config/locales/es-PY.yml +15 -17
  39. data/config/locales/es.yml +15 -17
  40. data/config/locales/eu.yml +16 -18
  41. data/config/locales/fi-plain.yml +15 -17
  42. data/config/locales/fi.yml +15 -17
  43. data/config/locales/fr-CA.yml +15 -17
  44. data/config/locales/fr.yml +15 -17
  45. data/config/locales/ga-IE.yml +0 -12
  46. data/config/locales/gl.yml +0 -21
  47. data/config/locales/hu.yml +15 -23
  48. data/config/locales/id-ID.yml +0 -19
  49. data/config/locales/is-IS.yml +0 -13
  50. data/config/locales/it.yml +0 -24
  51. data/config/locales/ja.yml +14 -17
  52. data/config/locales/ko.yml +0 -38
  53. data/config/locales/lb.yml +0 -24
  54. data/config/locales/lt.yml +12 -18
  55. data/config/locales/lv.yml +0 -21
  56. data/config/locales/nl.yml +0 -21
  57. data/config/locales/no.yml +0 -21
  58. data/config/locales/pl.yml +0 -42
  59. data/config/locales/pt-BR.yml +12 -27
  60. data/config/locales/pt.yml +0 -24
  61. data/config/locales/ro-RO.yml +7 -18
  62. data/config/locales/ru.yml +12 -18
  63. data/config/locales/sk.yml +0 -21
  64. data/config/locales/sq-AL.yml +0 -79
  65. data/config/locales/sr-CS.yml +0 -5
  66. data/config/locales/sv.yml +6 -29
  67. data/config/locales/tr-TR.yml +0 -21
  68. data/config/locales/uk.yml +0 -17
  69. data/config/locales/zh-CN.yml +0 -21
  70. data/config/locales/zh-TW.yml +3 -14
  71. data/db/migrate/20220812122940_add_published_at_to_decidim_blogs_posts.rb +17 -0
  72. data/lib/decidim/api/blogs_type.rb +14 -2
  73. data/lib/decidim/api/post_type.rb +1 -0
  74. data/lib/decidim/blogs/admin_engine.rb +2 -2
  75. data/lib/decidim/blogs/component.rb +4 -60
  76. data/lib/decidim/blogs/engine.rb +16 -1
  77. data/lib/decidim/blogs/seeds.rb +76 -0
  78. data/lib/decidim/blogs/test/factories.rb +9 -19
  79. data/lib/decidim/blogs/version.rb +1 -1
  80. metadata +39 -30
  81. data/app/cells/decidim/blogs/post_m/footer.erb +0 -5
  82. data/app/cells/decidim/blogs/post_m_cell.rb +0 -21
  83. data/app/views/decidim/blogs/posts/_datetime.html.erb +0 -1
  84. data/app/views/decidim/blogs/posts/_posts.html.erb +0 -24
  85. data/app/views/decidim/blogs/posts/_sidebar_blog.html.erb +0 -21
  86. data/config/locales/he-IL.yml +0 -1
  87. data/decidim-blogs.gemspec +0 -36
@@ -1,64 +1,72 @@
1
1
  <% add_decidim_page_title(t(".title")) %>
2
2
  <div class="card">
3
- <div class="card-divider">
4
- <h2 class="card-title">
3
+ <div class="item_show__header">
4
+ <h2 class="item_show__header-title">
5
5
  <%= t(".title") %>
6
- <%= link_to t("actions.new", scope: "decidim.blogs", name: t("models.post.name", scope: "decidim.blogs.admin")), new_post_path, class: "button tiny button--title" if allowed_to? :create, :blogpost %>
6
+ <%= link_to t("actions.new", scope: "decidim.blogs"), new_post_path, class: "button button__sm button__secondary ml-auto" if allowed_to? :create, :blogpost %>
7
+ <%= render partial: "decidim/admin/components/resource_action" %>
7
8
  </h2>
8
9
  </div>
10
+ <div class="table-scroll">
11
+ <table class="table-list">
12
+ <thead>
13
+ <tr>
14
+ <th><%= t("models.post.fields.title", scope: "decidim.blogs") %></th>
15
+ <th><%= t("models.post.fields.body", scope: "decidim.blogs") %></th>
16
+ <th><%= t("models.post.fields.author", scope: "decidim.blogs") %></th>
17
+ <th><%= t("models.post.fields.published_at", scope: "decidim.blogs") %></th>
18
+ <th class="actions"><%= t("actions.title", scope: "decidim.blogs") %></th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ <% posts.created_at_desc.each do |post| %>
9
23
 
10
- <div class="card-section">
11
- <div class="table-scroll">
12
- <table class="table-list">
13
- <thead>
14
- <tr>
15
- <th><%= t("models.post.fields.title", scope: "decidim.blogs") %></th>
16
- <th><%= t("models.post.fields.body", scope: "decidim.blogs") %></th>
17
- <th><%= t("models.post.fields.author", scope: "decidim.blogs") %></th>
18
- <th><%= t("models.post.fields.created_at", scope: "decidim.blogs") %></th>
19
- <th class="actions"><%= t("actions.title", scope: "decidim.blogs") %></th>
20
- </tr>
21
- </thead>
22
- <tbody>
23
- <% posts.created_at_desc.each do |post| %>
24
-
25
- <tr data-id="<%= post.id %>">
26
- <td>
24
+ <tr data-id="<%= post.id %>">
25
+ <td>
26
+ <% if allowed_to? :update, :blogpost, blog_post: post %>
27
+ <%= link_to translated_attribute(post.title), edit_post_path(post) %><br>
28
+ <% else %>
27
29
  <%= translated_attribute(post.title) %><br>
28
- </td>
29
- <td>
30
- <%= decidim_sanitize_editor post_description_admin(post) %>
31
- </td>
32
- <td>
33
- <%= post.try(:author).try(:name) %>
34
- </td>
35
- <td>
36
- <%= l post.created_at, format: "%d/%m/%Y - %H:%M" %>
37
- </td>
38
- <td class="table-list__actions">
39
- <% if allowed_to? :update, :blogpost, blog_post: post %>
40
- <%= icon_link_to "pencil", edit_post_path(post), t("actions.edit", scope: "decidim.blogs"), class: "action-icon--edit" %>
41
- <% end %>
30
+ <% end %>
31
+ </td>
32
+ <td>
33
+ <%= decidim_sanitize_editor post_description_admin(post) %>
34
+ </td>
35
+ <td>
36
+ <%= post.try(:author).try(:name) %>
37
+ </td>
38
+ <% publish_data = publish_data(post.published_at) %>
39
+ <td>
40
+ <%= content_tag :span, class: "padding-3", data: { tooltip: true, disable_hover: false, click_open: false }, title: publish_data[:popup] do
41
+ publish_data[:icon]
42
+ end %>
43
+ <%= l post.published_at, format: :decidim_short %>
44
+ </td>
45
+ <td class="table-list__actions">
46
+ <% if allowed_to? :update, :blogpost, blog_post: post %>
47
+ <%= icon_link_to "pencil-line", edit_post_path(post), t("actions.edit", scope: "decidim.blogs"), class: "action-icon--edit" %>
48
+ <% end %>
42
49
 
43
- <% if allowed_to? :update, :blogpost, blog_post: post %>
44
- <%= icon_link_to "folder", post_attachment_collections_path(post), t("actions.attachment_collections", scope: "decidim.meetings"), class: "action-icon--attachment_collections" %>
45
- <% end %>
50
+ <% if allowed_to? :update, :blogpost, blog_post: post %>
51
+ <%= icon_link_to "folder-line", post_attachment_collections_path(post), t("actions.attachment_collections", scope: "decidim.meetings"), class: "action-icon--attachment_collections" %>
52
+ <% end %>
46
53
 
47
- <% if allowed_to? :update, :blogpost, blog_post: post %>
48
- <%= icon_link_to "paperclip", post_attachments_path(post), t("actions.attachments", scope: "decidim.meetings"), class: "action-icon--attachments" %>
49
- <% end %>
54
+ <% if allowed_to? :update, :blogpost, blog_post: post %>
55
+ <%= icon_link_to "attachment-line", post_attachments_path(post), t("actions.attachments", scope: "decidim.meetings"), class: "action-icon--attachments" %>
56
+ <% end %>
50
57
 
51
- <%= resource_permissions_link(post) %>
58
+ <%= icon_link_to "eye-line", resource_locator(post).path, t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %>
52
59
 
53
- <% if allowed_to? :destroy, :blogpost, blog_post: post %>
54
- <%= icon_link_to "circle-x", post_path(post), t("actions.destroy", scope: "decidim.blogs"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.blogs") } %>
55
- <% end %>
56
- </td>
57
- </tr>
58
- <% end %>
59
- </tbody>
60
- </table>
61
- <%= paginate posts, theme: "decidim" %>
62
- </div>
60
+ <%= resource_permissions_link(post) %>
61
+
62
+ <% if allowed_to? :destroy, :blogpost, blog_post: post %>
63
+ <%= icon_link_to "delete-bin-line", post_path(post), t("actions.destroy", scope: "decidim.blogs"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.blogs") } %>
64
+ <% end %>
65
+ </td>
66
+ </tr>
67
+ <% end %>
68
+ </tbody>
69
+ </table>
63
70
  </div>
64
- <div>
71
+ </div>
72
+ <%= decidim_paginate posts %>
@@ -1,8 +1,19 @@
1
1
  <% add_decidim_page_title(t(".title")) %>
2
- <%= decidim_form_for(@form, html: { class: "form new_post" }) do |f| %>
3
- <%= render partial: "form", object: f, locals: { title: t(".title") } %>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t(".title") %>
5
+ </h2>
6
+ </div>
4
7
 
5
- <div class="button--double form-general-submit">
6
- <%= f.submit t(".create") %>
7
- </div>
8
- <% end %>
8
+ <div class="item__edit item__edit-1col">
9
+ <div class="item__edit-form">
10
+ <%= decidim_form_for(@form, html: { class: "form-defaults form new_post" }) do |f| %>
11
+ <%= render partial: "form", object: f %>
12
+ <div class="item__edit-sticky">
13
+ <div class="item__edit-sticky-container">
14
+ <%= f.submit t(".create"), class: "button button__sm button__secondary" %>
15
+ </div>
16
+ </div>
17
+ <% end %>
18
+ </div>
19
+ </div>
@@ -0,0 +1,18 @@
1
+ <div class="blog__actions">
2
+ <div class="blog__actions-left">
3
+ <% if endorsements_enabled? %>
4
+ <%= endorsement_buttons_cell(post) %>
5
+ <% end %>
6
+
7
+ <%= cell "decidim/comments_button", nil %>
8
+ </div>
9
+
10
+ <div class="blog__actions-right">
11
+ <%= follow_button_for(post, false, button_classes: "button button__sm button__text-secondary") %>
12
+
13
+ <%= cell "decidim/share_button", nil %>
14
+ <%= cell "decidim/report_button", post %>
15
+ </div>
16
+ </div>
17
+
18
+ <%= cell "decidim/endorsers_list", post, layout: :full %>
@@ -1,14 +1,27 @@
1
- <%= render partial: "decidim/shared/component_announcement" %>
1
+ <% add_decidim_page_title component_name %>
2
+ <%= append_javascript_pack_tag "decidim_blogs" %>
3
+ <%= append_stylesheet_pack_tag "decidim_blogs" %>
2
4
 
3
- <div class="row column">
4
- <div id="blogs" class="columns medium-7 mediumlarge-8">
5
+ <% content_for :aside do %>
6
+ <h1 class="title-decorator"><%= component_name %></h1>
7
+ <% end %>
8
+
9
+ <%= render layout: "layouts/decidim/shared/layout_two_col" do %>
10
+
11
+ <%= render partial: "decidim/shared/component_announcement" %>
12
+
13
+ <section id="blogs" class="layout-main__section layout-main__heading">
5
14
  <% if posts.empty? %>
6
15
  <%= cell("decidim/announcement", t("empty", scope: "decidim.blogs.posts.index")) %>
7
16
  <% else %>
8
- <%= render partial: "posts" %>
17
+ <h2 class="h5 md:h3 decorator"><%= t("count", scope: "decidim.blogs.posts.index", count: posts.length) %></h2>
9
18
  <% end %>
10
- </div>
11
- <div id="most-commented" class="columns medium-5 mediumlarge-4 large-4">
12
- <%= render partial: "sidebar_blog", locals: { posts: posts_most_commented } %>
13
- </div>
14
- </div>
19
+
20
+ <% paginate_posts.each do |post| %>
21
+ <%= card_for post, size: :l %>
22
+ <% end %>
23
+
24
+ <%= decidim_paginate paginate_posts %>
25
+ </section>
26
+
27
+ <% end %>
@@ -1,10 +1,10 @@
1
1
  <% provide(:title, translated_attribute(post.title)) %>
2
2
 
3
3
  <% add_decidim_meta_tags({
4
- title: translated_attribute(post.title),
5
- description: translated_attribute(post.body),
6
- url: post_url(post.id)
7
- }) %>
4
+ title: translated_attribute(post.title),
5
+ description: translated_attribute(post.body),
6
+ url: post_url(post.id)
7
+ }) %>
8
8
 
9
9
  <%
10
10
  edit_link(
@@ -15,48 +15,38 @@
15
15
  )
16
16
  %>
17
17
 
18
- <div class="row column view-header">
19
- <div class="m-bottom">
20
- <%= link_to :posts, class: "small hollow" do %>
21
- <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
22
- <%= t(".back") %>
23
- <% end %>
24
- </div>
25
- <h2 class="heading2"><%= translated_attribute post.title %></h2>
26
-
27
- <% post_presenter = Decidim::Blogs::PostPresenter.new(post) %>
28
- <%= cell "decidim/author", post_presenter.author, from: post %>
29
- </div>
30
- <div class="row">
31
- <% if show_endorsements_card? %>
32
- <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9">
33
- <div class="card">
34
- <div class="card__content">
35
- <div class="row collapse buttons__row">
36
- <% if endorsements_enabled? %>
37
- <div class="column small-9 collapse">
38
- <%= endorsement_buttons_cell(post) %>
39
- </div>
40
- <% end %>
41
- <div class="column collapse <%= endorsements_enabled? ? "small-3" : "" %>">
42
- <%= link_to "#comments", class: "button small compact hollow button--nomargin expanded" do %>
43
- <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= post.comments_count %>
44
- <% end %>
45
- </div>
46
- </div>
47
- <br>
48
- <%= follow_button_for(post) %>
49
- </div>
50
- </div>
18
+ <%= append_javascript_pack_tag "decidim_blogs" %>
19
+ <%= append_stylesheet_pack_tag "decidim_blogs" %>
20
+
21
+ <%= render layout: "layouts/decidim/shared/layout_center", locals: { columns: 8 } do %>
22
+
23
+ <section class="layout-main__section layout-main__heading">
24
+ <div class="flex justify-center">
25
+ <h1 class="title-decorator my-12"><%= translated_attribute post.title %></h1>
26
+ </div>
27
+
28
+ <% if post.photo.present? %>
29
+ <div class="blog__image grow">
30
+ <%= image_tag post.photo.big_url, alt: post.photo.description || post.photo.title || t("alt", scope: "decidim.application.photo") %>
51
31
  </div>
52
- <% end %>
53
- <div class="columns mediumlarge-8 <%= "mediumlarge-pull-4" if show_endorsements_card? %>">
54
- <div class="section">
55
- <%= decidim_sanitize_editor_admin translated_attribute(post.body) %>
32
+ <% end %>
33
+
34
+ <div class="layout-author">
35
+ <%= cell "decidim/author", post_presenter.author, from: post, context_actions: [:date], layout: :compact %>
36
+ </div>
37
+ </section>
38
+
39
+ <section class="layout-main__section">
40
+ <div class="editor-content">
41
+ <%= decidim_sanitize_editor_admin translated_attribute post.body %>
56
42
  </div>
57
- <%= cell "decidim/endorsers_list", post %>
58
- </div>
59
- </div>
60
- <%= attachments_for post %>
61
- <%= comments_for post %>
62
- <%= cell("decidim/flag_modal", post) %>
43
+
44
+ <%= attachments_for post %>
45
+
46
+ <%= render partial: "actions" %>
47
+ </section>
48
+
49
+ <section class="layout-main__section">
50
+ <%= comments_for post %>
51
+ </section>
52
+ <% end %>
@@ -28,15 +28,7 @@ ar:
28
28
  new: منشور جديد
29
29
  title: أفعال
30
30
  admin:
31
- models:
32
- post:
33
- name: بريد
34
31
  posts:
35
- create:
36
- invalid: حدثت مشكلة أثناء إنشاء هذا المنشور
37
- success: تم النشر بنجاح
38
- destroy:
39
- success: تم حذف المشاركة بنجاح
40
32
  edit:
41
33
  save: تحديث
42
34
  title: تعديل المنشور
@@ -47,31 +39,21 @@ ar:
47
39
  title: إنشاء وظيفة
48
40
  update:
49
41
  invalid: حدثت مشكلة في حفظ المشاركة.
50
- success: تم حفظ النشر بنجاح
51
42
  admin_log:
52
43
  post:
53
44
  create: "%{user_name} أنشأ منشور المدونة %{resource_name} في %{space_name}"
54
45
  delete: "%{user_name} حذف منشور المدونة%{resource_name} من %{space_name}"
55
46
  update: "%{user_name} حدث منشور المدونة %{resource_name} في %{space_name}"
56
47
  last_activity:
57
- new_post_at_html: "<span>وظيفة جديدة في %{link}</span>"
48
+ new_post: 'منشور جديد:'
58
49
  models:
59
50
  post:
60
51
  fields:
61
52
  author: مؤلف
62
53
  body: الجسم
63
- created_at: أنشئت في
64
54
  official_blog_post: المنشور الرسمي
55
+ published_at: موعد النشر
65
56
  title: العنوان
66
- posts:
67
- show:
68
- back: العودة إلى القائمة
69
- comments: التعليقات
70
- view: رأي
71
- sidebar_blog:
72
- comments: تعليقات
73
- most_commented_posts: الأكثر تعليقًا عليها
74
- read_more: قراءة المزيد
75
57
  components:
76
58
  blogs:
77
59
  actions:
@@ -1,12 +1,6 @@
1
1
  ---
2
2
  bg:
3
3
  activemodel:
4
- attributes:
5
- post:
6
- body: Основен текст
7
- decidim_author_id: Автор
8
- published_at: Час на публикуване
9
- title: Заглавие
10
4
  models:
11
5
  decidim/blogs/create_post_event: Нова блог публикация
12
6
  activerecord:
@@ -17,84 +11,4 @@ bg:
17
11
  decidim:
18
12
  blogs:
19
13
  actions:
20
- author_id: Създаване на публикация като
21
14
  confirm_destroy: Сигурни ли сте, че желаете да изтриете тази публикация?
22
- destroy: Изтрий
23
- edit: Редактирай
24
- new: Нова публикация
25
- title: Активности
26
- admin:
27
- models:
28
- post:
29
- name: Публикация
30
- posts:
31
- create:
32
- invalid: Възникна проблем при създаването на тази публикация
33
- success: Публикацията беше създадена успешно
34
- destroy:
35
- success: Публикацията беше изтрита успешно
36
- edit:
37
- save: Актуализация
38
- title: Редактиране на поста
39
- index:
40
- title: Публикации
41
- new:
42
- create: Създаване
43
- title: Създай публикация
44
- update:
45
- invalid: Възникна проблем при запазването на публикацията.
46
- success: Публикацията беше запазена успешно
47
- admin_log:
48
- post:
49
- create: "%{user_name} създаде публикацията в блога %{resource_name} в %{space_name}"
50
- delete: "%{user_name} изтри публикацията в блога %{resource_name} от %{space_name}"
51
- update: "%{user_name} актуализира публикацията в блога %{resource_name} в %{space_name}"
52
- last_activity:
53
- new_post_at_html: "<span>Нова публикация на %{link}</span>"
54
- models:
55
- post:
56
- fields:
57
- author: Автор
58
- body: Основен текст
59
- created_at: Създадена на
60
- official_blog_post: Официална публикация
61
- title: Заглавие
62
- posts:
63
- index:
64
- empty: Все още няма постове.
65
- show:
66
- back: Назад към списъка
67
- comments: Коментари
68
- view: Преглед
69
- sidebar_blog:
70
- comments: коментари
71
- most_commented_posts: Най-коментирани публикации
72
- read_more: Прочетете повече
73
- components:
74
- blogs:
75
- actions:
76
- comment: Коментар
77
- create: Създаване
78
- destroy: Изтрий
79
- endorse: Подкрепете
80
- update: Актуализация
81
- name: Блог
82
- settings:
83
- global:
84
- announcement: Обявление
85
- comments_enabled: Коментарите са разрешени
86
- comments_max_length: Максимална дължина на коментарите (Оставете 0 за стойност по подразбиране)
87
- step:
88
- announcement: Обявление
89
- comments_blocked: Коментарите са блокирани
90
- endorsements_blocked: Подкрепата е блокирана
91
- endorsements_enabled: Подкрепата е активирана
92
- events:
93
- blogs:
94
- post_created:
95
- email_intro: Публикацията „%{resource_title}“ е публикувана в(ъв)%{participatory_space_title}“, което следвате.
96
- email_outro: Получавате това известие, защото следвате "%{participatory_space_title}". Може да премахнете следването чрез предходния линк.
97
- email_subject: Публикувана е нова публикация в(ъв) %{participatory_space_title}
98
- notification_title: Публикацията <a href="%{resource_path}">%{resource_title}</a> е публикувана в(ъв) %{participatory_space_title}
99
- statistics:
100
- posts_count: Постове
@@ -24,52 +24,50 @@ ca:
24
24
  new: Nova publicació
25
25
  title: Accions
26
26
  admin:
27
- models:
28
- post:
29
- name: Publicar
30
27
  posts:
31
28
  create:
32
- invalid: S'ha produït un error en crear aquesta publicació
33
- success: Publicació creada correctament
29
+ invalid: S'ha produït un error en crear aquesta publicació.
30
+ success: Publicació creada correctament.
34
31
  destroy:
35
- success: La publicació s'ha eliminat correctament
32
+ success: La publicació s'ha eliminat correctament.
36
33
  edit:
37
34
  save: Actualitza
38
35
  title: Editar publicació
39
36
  index:
37
+ not_published_yet: No publicada encara.
40
38
  title: Publicacions
41
39
  new:
42
40
  create: Crear
43
41
  title: Crea una publicació
44
42
  update:
45
43
  invalid: S'ha produït un error en guardar la publicació.
46
- success: S'ha desat la publicació correctament
44
+ success: S'ha desat la publicació correctament.
47
45
  admin_log:
48
46
  post:
49
47
  create: "%{user_name} ha creat el post %{resource_name} al blog de %{space_name}"
50
48
  delete: "%{user_name} ha eliminat el post %{resource_name} del blog de %{space_name}"
51
49
  update: "%{user_name} ha actualitzat el post %{resource_name} en el blog de %{space_name}"
50
+ content_blocks:
51
+ highlighted_posts:
52
+ last_published: Darrera publicació
53
+ name: Publicacions
54
+ see_all: Veure totes les publicacions
52
55
  last_activity:
53
- new_post_at_html: "<span>Nova publicació a %{link}</span>"
56
+ new_post: 'Nova publicació:'
54
57
  models:
55
58
  post:
56
59
  fields:
57
60
  author: Autora
58
61
  body: Cos
59
- created_at: Creat el
60
62
  official_blog_post: Post oficial
63
+ published_at: Hora de publicació
61
64
  title: Títol
62
65
  posts:
63
66
  index:
67
+ count:
68
+ one: "%{count} publicació"
69
+ other: "%{count} publicacions"
64
70
  empty: Encara no hi ha cap publicació.
65
- show:
66
- back: Tornar al llistat
67
- comments: Comentaris
68
- view: Veure
69
- sidebar_blog:
70
- comments: comentaris
71
- most_commented_posts: Publicacions més comentades
72
- read_more: Llegeix més
73
71
  components:
74
72
  blogs:
75
73
  actions:
@@ -93,7 +91,7 @@ ca:
93
91
  blogs:
94
92
  post_created:
95
93
  email_intro: La publicació "%{resource_title}" s'ha publicat al "%{participatory_space_title}", el qual segueixes.
96
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
94
+ email_outro: Has rebut aquesta notificació perquè estàs seguint "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
97
95
  email_subject: Nova publicació publicada a %{participatory_space_title}
98
96
  notification_title: La publicació <a href="%{resource_path}">%{resource_title}</a> ha estat publicada a %{participatory_space_title}
99
97
  statistics:
@@ -26,52 +26,52 @@ cs:
26
26
  new: Nový příspěvek
27
27
  title: Akce
28
28
  admin:
29
- models:
30
- post:
31
- name: Příspěvek
32
29
  posts:
33
30
  create:
34
- invalid: Při vytváření tohoto příspěvku došlo k potížím
35
- success: Příspěvek byl úspěšně vytvořen
31
+ invalid: Při vytváření tohoto příspěvku nastal problém.
32
+ success: Příspěvek byl úspěšně vytvořen.
36
33
  destroy:
37
- success: Příspěvek byl úspěšně odstraněn
34
+ success: Příspěvek byl úspěšně smazán.
38
35
  edit:
39
36
  save: Aktualizovat
40
37
  title: Upravit příspěvek
41
38
  index:
39
+ not_published_yet: Zatím nezveřejněno.
42
40
  title: Příspěvky
43
41
  new:
44
42
  create: Vytvořit
45
43
  title: Vytvořit příspěvek
46
44
  update:
47
45
  invalid: Při ukládání příspěvku došlo k chybám.
48
- success: Příspěvek byl úspěšně uložen
46
+ success: Příspěvek byl úspěšně uložen.
49
47
  admin_log:
50
48
  post:
51
49
  create: "%{user_name} vytvořil příspěvek %{resource_name} v %{space_name}"
52
50
  delete: "%{user_name} odstranil příspěvek %{resource_name} z %{space_name}"
53
51
  update: "%{user_name} aktualizoval příspěvek %{resource_name} v %{space_name}"
52
+ content_blocks:
53
+ highlighted_posts:
54
+ last_published: Naposledy publikováno
55
+ name: Příspěvky
56
+ see_all: Zobrazit všechny příspěvky
54
57
  last_activity:
55
- new_post_at_html: "<span>Nový příspěvek v %{link}</span>"
58
+ new_post: 'Nový příspěvek:'
56
59
  models:
57
60
  post:
58
61
  fields:
59
62
  author: Autor
60
63
  body: Tělo
61
- created_at: Vytvořeno v
62
64
  official_blog_post: Oficiální příspěvek
65
+ published_at: Čas zveřejnění
63
66
  title: Název
64
67
  posts:
65
68
  index:
69
+ count:
70
+ one: "%{count} příspěvek"
71
+ few: "%{count} příspěvky"
72
+ many: "%{count} příspěvků"
73
+ other: "%{count} příspěvků"
66
74
  empty: Zatím nejsou žádné příspěvky.
67
- show:
68
- back: Zpět na seznam
69
- comments: Komentáře
70
- view: Zobrazit
71
- sidebar_blog:
72
- comments: komentáře
73
- most_commented_posts: Nejvíce komentované příspěvky
74
- read_more: Přečtěte si více
75
75
  components:
76
76
  blogs:
77
77
  actions: